southpaw243

Add topology to map document using python?

Discussion created by southpaw243 on Oct 19, 2011
I would like to use a python script to add a topology and its associated layers to a map document and update the associated layers' symbology with a lyr file.  I can figure out which layers go with the topology using Describe, but am getting errors trying to add the topology itself to the map:

>>> mxd = arcpy.mapping.MapDocument("CURRENT")
>>> df = arcpy.mapping.ListDataFrames(mxd,"Layers")[0]
>>> arcpy.mapping.AddLayer(df,"tile_110og_Topology","BOTTOM")
Runtime error <type 'exceptions.AssertionError'>:


Is this even possible?

Thanks

Mark

Outcomes