Scope: Schematic editor
Object: Component Object
Prerequisites: None
Returns a collection of Connection Objects associated with component.
Component.GetConnections() As IVdObjs
None
As IVdObjs. The collection of Connection Objects.
A component may be connected to another by attaching nets (Net Object) to the component pins. A Connection Object is associated with each component pin (ComponentPin Object).
This example shows all nets attached to the component.
For Each Conn In Comp.GetConnections
Set Net = Conn.Net
Set CmpPin = Conn.CompPin
If Not Net Is Nothing Then
MsgBox "Net Attached to " & CmpPin.Pin.Label.TextString
End If
Next