ArcObjects Library Reference  (Schematic)    

Using the INgProjectAnalyst to retrieve any intialized trace algorithm - Example

Here is a sample code that can be used to easily retrieve any type of trace analyst algorithm:


[Visual Basic 6.0]
Private WithEvents m_NgProject As esriSchematic.NgProject Private m_INgProject As esriSchematic.INgProject ... Dim pProjectAnalyst As INgProjectAnalyst Dim pAlgo As ISchematicAlgorithm Dim pAnalystSearched As ISchematicAnalystFindConnected Dim pAnalystFindConnected As ISchematicAnalystFindConnected ... On Error Resume Next Set pProjectAnalyst = m_NgProject For Each pAlgo In pProjectAnalyst.Traces Set pAnalystSearched = pAlgo If Not pAnalystSearched Is Nothing Then Set pAnalystFindConnected = pAnalystSearched Exit For End If Next pAlgo ...

[Visual Basic .NET, C#, C++]
No example is available for Visual Basic .NET, C#, or C++. To view a Visual Basic 6.0 example, click the Language Filter button Language Filter in the upper-left corner of the page.