ALCEngine.FindEdge



FindEdge(lElementID As Long,bsPicture As String) As ALCEdge

Parameters

lElementID As Long
ID of the element in the picture.
bsPicture As String
String that defines the picture in which the ALC element is used.
ED
avaliable
RT
avaliable

Remarks

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).

Sample:


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


See Also

ALCEngine, ALCEdge