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.
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
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
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.
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...
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!
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.
Can you explain the last two lines of script ? # Process: Intersect clipfeatures = rivers_Buffer + ";" + cities_shp arcpy.Intersect_analysis(clipfeatures,CitiesNearRivers, "All", "", "INPUT")
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.
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.
Nicely done - I actually understood the process without stopping and replaying anything.
The demonstration is really cool. Perfect teacher.
Thanks! It is really helpful.
Thank you soooo much! I feel like I am getting it.. slowly but surely!
Excellent demonstration, I use it as a refresher since it has been a while.
Thanks! It helped me alot. Keep making videos like these 👍
Thanks Dr. Dan, your demo extremely helpful
Interesting ! Really useful & many thanks
Thank you thank you, very well done
Helpful. Thanks.
Very Interesting
Is there any possibility to find all polygon vartax angle on polygon bend
Hey,
Thanks a bunch. Very well demonstrated
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.
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
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
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.
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...
Superb!
Any possibility to change esriaddin to py scripts?
thanks a lot this is really helpful, and plz if you could share another demo but for raster analysis,
Would you please guide in github and R as well.
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!
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.
You use getparameters() for python scripts in toolboxes.
Yeah you do the parameter thing he showed you
Can you explain the last two lines of script ?
# Process: Intersect
clipfeatures = rivers_Buffer + ";" + cities_shp
arcpy.Intersect_analysis(clipfeatures,CitiesNearRivers, "All", "", "INPUT")
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.
@@hydromap9869 why are you concatenating by + sign?
rivers_Buffer + ";" + cities_shp
What concatenation have to do with the intersection ?
can u please explain the code inside " script arguments "
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.
Dan Ames thanks for the reply.what the usage of "if" statement below arcpy.getparameterastext...
It just means that if the script doesn't find any parameters then use the given shapefile. It's a default. Enjoy.
Dan Ames thanks..doubt cleared
Wow. your demonstration is so good. but i can understand so little things. because i can't speak english. haha.
me, too hahah
lah ini bisa
@@fajararifianto8 speak english please! i dont understand
@@fajararifianto8 wkwkwk
Thanks a lot....! Excellent demo... !