I have a geodatabase with many polyline feature classes all with different names. I would like to write a code in python ArcGIS 10.1 to use a geoprossing tool on all classes in the gdb. How would this be done?
Would the same logic work for a folder of shapefiles?
For this question lets say I want to use
Create Random Points 500 metres apart on all polylines in this gdb.
import arcpy from arcpy import env arcpy.env.workspace = "E:\Example.gdb" arcpy.CreateRandomPoints_Management (
I asked a similar question on Stack Overflow, except using VBA to loop through a folder of excel workbooks.