I am trying to use arcobjects with vb.net to validate a topology (already defined). I am caught even when I use the sample provided by ESRI.
The code I use for accessing a topology is:
Dim topoUiD As UID = New UIDClass
topoUiD.Value = "esriEditorExt.TopologyExtension"
Dim topologyExt As ITopologyExtension = CType(m_application.FindExtensionByCLSID(topoUiD), ITopologyExtension)
Dim topology As ITopology
topology = CType(topologyExt.CurrentTopology, ITopology)
The code I use for selecting errors is as follow:
topologyExt.ClearActiveErrors(esriTEEventHint.esriTENone)
topologyExt.DelayEvents(True)
While Not ((topoError = eErrorFeat.Next) Is Nothing)
topologyExt.AddActiveError(topoError, esriTEEventHint.esriTENone)
End While
topologyExt.DelayEvents(False)
I get the following errors:
(1) ITopologyExtension is not declared
(2) esriTEEventHint is not declared
I want to check what is missing in the code? Is it the arcObjects library, if yes, what library should be used.
I am a beginner in arcObjects. Please help me on it, thanks.