It appears that I ran into the same question. Did you figure out how to do it using arcpy?
import arcpy topology_path = 'path1' layerfile_path = 'path2' mxd = arcpy.mapping.MapDocument('current') df = arcpy.mapping.ListDataFrames(mxd)[0] layer = arcpy.mapping.Layer(layerfile_path) arcpy.mapping.AddLayer(df, layer)
arcpy.env.workspace
arcpy.mapping.MakeFeatureLayer
arcpy.mapping.Layer
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.