|
ED
|
avaliable
|
RT
|
avaliable
|
This method returns a procedural element (generator, source, switch, disconnector, drain, transformator, link) from a specific picture with a specific ID (ID of the element in the picture).
Sub FindEdge() Dim zAlcEngine As ALCEngine 'Object from type ALCEngine Dim zAlcEdge As ALCEdge 'Child object from type ALCEngine 'Get ALCEngine data from the project Set zAlcEngine = MyWorkspace.ActiveDocument.ALCEngine 'Returns an ALC procedural element with a specific ID (element ID in the picture) from a specific picture Set zAlcEdge = zAlcEngine.FindEdge("BILD3", 17) 'Show the ALC ID if the element MsgBox "Source ID of the element = " & zAlcEdge.SourceID End Sub