Creating Topologies
To create a new topology, get the Topologies object for the project. Select the drawing objects to include in the topology. Call Topologies.Create(). Get a reference to the newly created topology using Topologies.Item(), which takes a string parameter.
Once a topology has been created, it must be opened using TopologyModel.Open(). When the topology is no longer needed, close it with TopologyModel.Close().