GetConnections Method (Component Object)

Scope: Schematic editor

Object: Component Object

Prerequisites: None

Returns a collection of Connection Objects associated with component.

Usage

Component.GetConnections() As IVdObjs

Arguments

None

Return Values

As IVdObjs. The collection of Connection Objects.

Description

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

Examples

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