I use ArcMap 10.4 and I cannot export or copy any python sniplet from the toolboxes. How to get the code that matches the tools?

2145
1
Jump to solution
06-17-2016 06:35 AM
PaulHacker2
New Contributor II

I intend to do MANY recursive operations to match quit a few GDBs and I need to run it that way instead of spending the day doing them one at a time? Is there a library that has the Python/ArcGIS code behind the toolbox folder?

Thanks.

0 Kudos
1 Solution

Accepted Solutions
DanPatterson_Retired
MVP Esteemed Contributor

The actual code is not available, but you can access existing tools using arcpy.  For example look at the code snippet for Clip—Help | ArcGIS for Desktop

and here is the help for arcpy

What is ArcPy?—Help | ArcGIS for Desktop and if you intend to work in Pro ArcGIS Pro ArcPy Reference—ArcGIS Pro | ArcGIS for Desktop

View solution in original post

0 Kudos
1 Reply
DanPatterson_Retired
MVP Esteemed Contributor

The actual code is not available, but you can access existing tools using arcpy.  For example look at the code snippet for Clip—Help | ArcGIS for Desktop

and here is the help for arcpy

What is ArcPy?—Help | ArcGIS for Desktop and if you intend to work in Pro ArcGIS Pro ArcPy Reference—ArcGIS Pro | ArcGIS for Desktop

View solution in original post

0 Kudos