Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- arcpy.RepairGeometry_management(fc,"DELETE_NULL")
- arcpy.AddSpatialIndex_management(fc)
- arcpy.Integrate_management(fc,0.01)
- import arcpy
- import os
- from arcpy import env
- mxd = arcpy.mapping.MapDocument("CURRENT")
- df = mxd.activeDataFrame
- arcpy.env.overwriteOutput=True
- path = r"D:DataFile.gdbfd"
- topologya = path + "\Topol"
- arcpy.CreateTopology_management(path,"Topol")
- arcpy.AddFeatureClassToTopology_management(topologya,"lines")
- arcpy.ValidateTopology_management(topologya)
- arcpy.Delete_management(topologya)
- arcpy.RefreshTOC()
- arcpy.RefreshActiveView()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement