ArcGIS Developer Help  (EditorExt)    

TopologyExtension CoClass

Extension for working with topology.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Interfaces

Interfaces Description
IActiveViewEvents (esriCarto) Provides access to events that occur when the state of the active view changes.
IConnectionPointContainer Supports connection points for connectable objects.
IEditEvents (esriEditor) Provides access to editor events. Implement it to listen for specific events that occur during an edit session.
IEditEvents2 (esriEditor) Provides access to more editor events. Implement it to listen for specific events that occur during an edit session.
IEditEvents3 (esriEditor) Provides access to more editor events. Implement it to listen for specific events that occur during an edit session.
IExtension (esriSystem) Provides access to members that define an extension.
IObjectClassEvents (esriGeoDatabase) Provides access to events that occur with an object class.
IPersistStream (esriSystem)
ITopologyExtension Provides access to members that control a topology.

Event Interfaces

Interfaces Description
ITopologyExtensionEvents (default) Provides access to events that occur when working with a topology.

Remarks

The TopologyExtension CoClass is the main component used when working with a topology inside ArcMap.  From the TopologyExtension you can access the current MapTopology, work with the set of active topology errors, or listen for topology-related events.

In order to use the TopologyExtension you must be inside an edit session.

To get a reference to the TopologyExtension extension, use IApplication::FindExtensionByCLSID or IApplication::FindExtensionByName.

[Visual Basic 6.0]

The following VBA code example shows the former method being used to acquire a reference of type ITopologyExtension to the TopologyExtension object.

Sub GetTopologyExtension()
  Dim pTopologyExtension as ITopologyExtension
  Dim pUID As New UID
  pUID.Value = "esriEditorExt.TopologyExtension"
  Set pTopologyExtension = Application.FindExtensionByCLSID(pUID)
End Sub

Working with Events

[Visual Basic 6.0]

When working with TopologyExtension's default outbound interface in Visual Basic 6 declare variables as follows:

Private WithEvents pTopologyExtension as TopologyExtension

 


Feedback Send feedback on this page