Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Input_shp = "C:TempLine.shp"
- Cursor = arcpy.SearchCursor(Input_shp)
- for Feature in Cursor:
- Midpoint = Feature.shape.positionAlongLine(0.50,True).firstPoint
- print Midpoint.X
- print Midpoint.Y
- toolbox_ETgeowizards = arcpy.GetParameterAsText(0) # Location ET Toolbox (Type: Toolbox)
- arcpy.ImportToolbox(toolbox_ETgeowizards)
- ...
- arcpy.ET_GPPolylineToPoints(pInFeatureClass, sOutFileName, sExportOption, bRemoveDuplicates)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement