Add topology to map document using python?

238
0
10-19-2011 07:04 AM
MarkJohnson
New Contributor III
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
0 Kudos
0 Replies