Advertisement
Guest User

Untitled

a guest
Feb 28th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. arcpy.RepairGeometry_management(fc,"DELETE_NULL")
  2. arcpy.AddSpatialIndex_management(fc)
  3. arcpy.Integrate_management(fc,0.01)
  4.  
  5. import arcpy
  6. import os
  7.  
  8. from arcpy import env
  9. mxd = arcpy.mapping.MapDocument("CURRENT")
  10. df = mxd.activeDataFrame
  11. arcpy.env.overwriteOutput=True
  12. path = r"D:DataFile.gdbfd"
  13. topologya = path + "\Topol"
  14. arcpy.CreateTopology_management(path,"Topol")
  15. arcpy.AddFeatureClassToTopology_management(topologya,"lines")
  16. arcpy.ValidateTopology_management(topologya)
  17. arcpy.Delete_management(topologya)
  18.  
  19. arcpy.RefreshTOC()
  20. arcpy.RefreshActiveView()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement