From ArcMap ModelBuilder to Python Script - a Brief Demo

แชร์
ฝัง
  • เผยแพร่เมื่อ 12 พ.ย. 2024

ความคิดเห็น • 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.

  • @mdkashif2560
    @mdkashif2560 3 หลายเดือนก่อน

    Thanks! It is really helpful.

  • @kassandrac5230
    @kassandrac5230 4 ปีที่แล้ว

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

  • @wilori
    @wilori 7 ปีที่แล้ว

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

  • @waqarfatima593
    @waqarfatima593 3 ปีที่แล้ว

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

  • @hassanalmurshedi9821
    @hassanalmurshedi9821 6 ปีที่แล้ว +1

    Thanks Dr. Dan, your demo extremely helpful

  • @guningogoi3733
    @guningogoi3733 5 ปีที่แล้ว +1

    Interesting ! Really useful & many thanks

  • @deanrunyanassociates8846
    @deanrunyanassociates8846 4 ปีที่แล้ว +1

    Thank you thank you, very well done

  • @raysaeidi-razavi873
    @raysaeidi-razavi873 2 ปีที่แล้ว

    Helpful. Thanks.

  • @tingneyucsekac6623
    @tingneyucsekac6623 3 ปีที่แล้ว

    Very Interesting

  • @RakeshKumar-zx6zn
    @RakeshKumar-zx6zn 4 ปีที่แล้ว

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

  • @primajump
    @primajump 11 ปีที่แล้ว

    Hey,
    Thanks a bunch. Very well demonstrated

  • @bhupendrakumar2277
    @bhupendrakumar2277 5 ปีที่แล้ว

    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.

  • @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

  • @ayokunleadebisi3469
    @ayokunleadebisi3469 4 ปีที่แล้ว

    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

  • @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...

  • @IAKhan-km4ph
    @IAKhan-km4ph 4 ปีที่แล้ว

    Superb!

  • @RakeshKumar-zx6zn
    @RakeshKumar-zx6zn 4 ปีที่แล้ว

    Any possibility to change esriaddin to py scripts?

  • @ibrahimalzahrani1854
    @ibrahimalzahrani1854 6 ปีที่แล้ว

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

  • @IAKhan-km4ph
    @IAKhan-km4ph 4 ปีที่แล้ว

    Would you please guide in github and R as well.

  • @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 5 ปีที่แล้ว

      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 5 ปีที่แล้ว

      You use getparameters() for python scripts in toolboxes.

    • @jinnd319
      @jinnd319 5 ปีที่แล้ว

      Yeah you do the parameter thing he showed you

  • @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 ?

  • @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... !