arcpy.CalculateField_management("Line.shp", "FromXY", "(!SHAPE.firstpoint!)", "PYTHON") arcpy.CalculateField_management("Line.shp", "ToXY", "(!SHAPE.lastpoint!)", "PYTHON")
arcpy.CalculateField_management("Line.shp", "FromX", "(!SHAPE.firstpoint.X!)", "PYTHON") arcpy.CalculateField_management("Line.shp", "FromY", "(!SHAPE.firstpoint.Y!)", "PYTHON") arcpy.CalculateField_management("Line.shp", "FromZ", "(!SHAPE.firstpoint.Z!)", "PYTHON") arcpy.CalculateField_management("Line.shp", "ToX", "(!SHAPE.lastpoint.X!)", "PYTHON") arcpy.CalculateField_management("Line.shp", "ToY", "(!SHAPE.lastpoint.Y!)", "PYTHON") arcpy.CalculateField_management("Line.shp", "ToZ", "(!SHAPE.lastpoint.Z!)", "PYTHON")
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.