![]() #For loop to iterate through all layers in dataframeįor lyr in (mxd,"",df):Īrcpy.AddMessage("\n Skipping " layerName)Īrcpy.AddMessage("\n Processing: " layerName) ![]() Mxd = (arcpy.GetParameterAsText(0))ĭf = (mxd, "Frame")Ī = arcpy.GetParameterAsText(1) ![]() #References users Map document - get parameter input from prompt #Script to split one layer (OSMM/OSVML) into parts, parts defined by another layer. Here is my code: arcpy.AddMessage("\n Checking Script for Errors.") The idea is that the script will cycle through the layer files, select the polyline parts that sit within X meters and export them to a separate folder. I have a large polyline dataset that I am trying to split up by several separate polygon layer files. I've been banging my head against a wall trying to get arcpy.SelectLayerByLocation_managerment to work and cannot find a solution - I am using ArcMap/Catalog 10.2.
0 Comments
Leave a Reply. |