From ArcMap ModelBuilder to Python Script - a Brief Demo

Поділитися
Вставка
  • Опубліковано 19 січ 2025

КОМЕНТАРІ • 42

  • @lizz1038
    @lizz1038 10 років тому +4

    Nicely done - I actually understood the process without stopping and replaying anything.

  • @srikanthsada9953
    @srikanthsada9953 2 роки тому

    The demonstration is really cool. Perfect teacher.

  • @wilori
    @wilori 7 років тому

    Excellent demonstration, I use it as a refresher since it has been a while.

  • @kassandrac5230
    @kassandrac5230 4 роки тому

    Thank you soooo much! I feel like I am getting it.. slowly but surely!

  • @waqarfatima593
    @waqarfatima593 3 роки тому

    Thanks! It helped me alot. Keep making videos like these 👍

  • @guningogoi3733
    @guningogoi3733 5 років тому +1

    Interesting ! Really useful & many thanks

  • @hassanalmurshedi9821
    @hassanalmurshedi9821 6 років тому +1

    Thanks Dr. Dan, your demo extremely helpful

  • @mdkashif2560
    @mdkashif2560 6 місяців тому

    Thanks! It is really helpful.

  • @deanrunyanassociates8846
    @deanrunyanassociates8846 4 роки тому +1

    Thank you thank you, very well done

  • @RakeshKumar-zx6zn
    @RakeshKumar-zx6zn 4 роки тому

    Is there any possibility to find all polygon vartax angle on polygon bend

  • @bhupendrakumar2277
    @bhupendrakumar2277 6 років тому

    Hi It was meaningful demonstration.
    I do have a problem I want to build a tool using model builder and python script that will semi automate the process of breaking a bigger shape file into multiple line segments wherever the smaller lines intersect bigger one.

  • @raysaeidi-razavi873
    @raysaeidi-razavi873 2 роки тому

    Helpful. Thanks.

  • @ayokunleadebisi3469
    @ayokunleadebisi3469 5 років тому

    I will like to ask you if you can help with my script tools. My script tools when run does not add to my table of contents in ArcMap and also does not show in my geodatabase. What could be the problem and what can I do? Please reply ASAP. Thanks

  • @BalaiSabo
    @BalaiSabo 8 років тому

    Thanks Dan Ames, that was a short and straight forward tutorial. Would you mind to create the other tutorial related to adding some loop in the script please? Thank you

  • @RakeshKumar-zx6zn
    @RakeshKumar-zx6zn 4 роки тому

    Any possibility to change esriaddin to py scripts?

  • @wouldyoureturntomonke2452
    @wouldyoureturntomonke2452 2 роки тому

    Hello sir,
    Thank you, I did it successfully,
    but I got a question regarding the processing time that takes longer.
    runtime before converting to script: 1 min
    runtime after converting to script: 2 min
    Regarding this, do you have some insight into why is this happening?
    Thanks.

    • @hydromap9869
      @hydromap9869  2 роки тому

      No sorry, I really don't know why the python script version takes longer. I'm assuming it has to do with the overhead of the python interpreter and the arcpy module interface, versus ArcGIS's built in optimizations using ModelBuilder...

  • @ibrahimalzahrani1854
    @ibrahimalzahrani1854 6 років тому

    thanks a lot this is really helpful, and plz if you could share another demo but for raster analysis,

  • @tingneyucsekac6623
    @tingneyucsekac6623 3 роки тому

    Very Interesting

  • @primajump
    @primajump 11 років тому

    Hey,
    Thanks a bunch. Very well demonstrated

  • @loganhall5580
    @loganhall5580 9 років тому +1

    I know this is an old post...
    But what if you wanted the script to prompt the user for the buffer value?
    say you wanted the script to allow the user to set a 5mi or 50mi buffer. How can you manipulate the script for user prompt as the input?
    Is that just another parameter in the model that has to be set prior to exporting the python script?
    Thanks!
    And great tutorial!

    • @jinnd319
      @jinnd319 6 років тому

      You can prompt the user in the script with `raw_input = ("Enter buffer value: ")`
      This will show up in a python window wherever you execute the script. In arc thus would be the python window. In idle this will be in the idle window that pops up when you run the script.

    • @jinnd319
      @jinnd319 6 років тому

      You use getparameters() for python scripts in toolboxes.

    • @jinnd319
      @jinnd319 6 років тому

      Yeah you do the parameter thing he showed you

  • @IAKhan-km4ph
    @IAKhan-km4ph 4 роки тому

    Superb!

  • @gisseeker7762
    @gisseeker7762 5 років тому

    Can you explain the last two lines of script ?
    # Process: Intersect
    clipfeatures = rivers_Buffer + ";" + cities_shp
    arcpy.Intersect_analysis(clipfeatures,CitiesNearRivers, "All", "", "INPUT")

    • @hydromap9869
      @hydromap9869  5 років тому

      The second to last line builds a string with the names of the feature layers or shape files to use in the intersect function. In arcpy, when you have any function that requires multiple input files or layers, you usually separate them by a semicolon. The last line performs the intersection and saves the result.

    • @gisseeker7762
      @gisseeker7762 5 років тому

      @@hydromap9869 why are you concatenating by + sign?
      rivers_Buffer + ";" + cities_shp

    • @gisseeker7762
      @gisseeker7762 5 років тому

      What concatenation have to do with the intersection ?

  • @IAKhan-km4ph
    @IAKhan-km4ph 4 роки тому

    Would you please guide in github and R as well.

  • @r1188rhhh
    @r1188rhhh 6 років тому

    can u please explain the code inside " script arguments "

    • @DrDan_PhD
      @DrDan_PhD 6 років тому

      arcpy.GetParametersAsText() is used to retrieve input parameters from the user interface dialog that we created earlier in the demo. This way the user can type something in the dialog box and hit run, our script retrieves that information and uses it.

    • @r1188rhhh
      @r1188rhhh 6 років тому

      Dan Ames thanks for the reply.what the usage of "if" statement below arcpy.getparameterastext...

    • @hydromap9869
      @hydromap9869  6 років тому +1

      It just means that if the script doesn't find any parameters then use the given shapefile. It's a default. Enjoy.

    • @r1188rhhh
      @r1188rhhh 6 років тому

      Dan Ames thanks..doubt cleared

  • @신대용-k1x
    @신대용-k1x 10 років тому +3

    Wow. your demonstration is so good. but i can understand so little things. because i can't speak english. haha.

  • @tartonpillon
    @tartonpillon 8 років тому

    Thanks a lot....! Excellent demo... !