Skip to main content
View as Markdown

IPCB_PinPair interface

A pin pair (xSignal) on a PCB document, together with the signal path that connects its pins.

public interface IPCB_PinPair

Namespace: PCB · Assembly: Altium.SDK.Interfaces

Remarks​

The pin pairs of a board are reached through IPCB_Board.PinPairsManager, with PinPairsCount and PinPairs of IPCB_PinPairsManager. An xSignal class is an IPCB_ObjectClass whose MemberKind is TClassMemberKind.eClassMemberKind_Signal; a pin pair is a member of the class when IsMember returns true for the pin pair's Name.

The signal path is the shortest path between the pins through the board's connectivity, including unrouted connection lines. The lengths, the delay and the primitives of the path are calculated on first use and again after the pin pair has gone out of date; Rebuild recalculates them at once.

Properties​

PropertyTypeAccessDescription
Coloruintget; set
DelayTotaldoublegetThe total propagation delay along the signal path.
LengthlonggetThe total length of the signal path between the pins, in internal units (10,000 per mil), routed and unrouted.
Namestringget; setThe name of the pin pair, which is the xSignal name.
NodeCountintgetThe number of pins (nodes) of the pin pair.
OverrideColorForDrawboolget; set
PrimitivesCountintgetThe number of primitives on the pin pair's signal path.
RoutedLengthlonggetThe routed length of the signal path, in internal units (10,000 per mil).
UnroutedLengthlonggetThe length of the unrouted connection lines on the signal path, in internal units (10,000 per mil).

Color​

No description yet.

uint GetState_Color();
void SetState_Color(uint argValue);

Type: uint · Access: read/write

DelayTotal​

The total propagation delay along the signal path.

double GetState_DelayTotal();

Type: double · Access: read-only

Parts of the path inside components are not counted. The value is -1 when the pin pair has no signal path.

Length​

The total length of the signal path between the pins, in internal units (10,000 per mil), routed and unrouted.

long GetState_Length();

Type: long · Access: read-only

The length includes the pin package length of the pads at the ends of the path and of pads next to a component on the path; parts of the path inside components are not counted. The value is -1 when the pin pair has no signal path.

Name​

The name of the pin pair, which is the xSignal name.

string GetState_Name();
void SetState_Name(string argNewName);

Type: string · Access: read/write

NodeCount​

The number of pins (nodes) of the pin pair.

int GetState_NodeCount();

Type: int · Access: read-only

Reading the value does not recalculate the pin pair. Rebuild replaces the pins with those on the recalculated signal path, so the value can change after it.

OverrideColorForDraw​

No description yet.

bool GetState_OverrideColorForDraw();
void SetState_OverrideColorForDraw(bool argValue);

Type: bool · Access: read/write

PrimitivesCount​

The number of primitives on the pin pair's signal path.

int GetState_PrimitivesCount();

Type: int · Access: read-only

RoutedLength​

The routed length of the signal path, in internal units (10,000 per mil).

long GetState_RoutedLength();

Type: long · Access: read-only

The value is Length minus UnroutedLength, so it is 0 when the pin pair has no signal path.

UnroutedLength​

The length of the unrouted connection lines on the signal path, in internal units (10,000 per mil).

long GetState_UnroutedLength();

Type: long · Access: read-only

The value is -1 when the pin pair has no signal path.

Methods​

MethodReturnsDescription
CastToPrimitiveIPCB_Primitive
GetPinPairItemDisplayNamestringReturns the display name of a primitive, which is its DescriptorString.
GetPrimitivesIPCB_PrimitiveReturns a primitive on the pin pair's signal path, by index.
RebuildvoidRecalculates the pin pair's signal path, the list of primitives on it, its lengths and its delay.

CastToPrimitive​

No description yet.

IPCB_Primitive CastToPrimitive();

Returns: IPCB_Primitive

Extension method of IPCB_PinPairHelper (using PCB;).

GetPinPairItemDisplayName​

Returns the display name of a primitive, which is its DescriptorString.

string GetPinPairItemDisplayName(IPCB_Primitive argPrim);
string GetPinPairItemDisplayName(object argPrim);
ParameterTypePassingDescription
argPrimIPCB_PrimitivevalueThe primitive to name, for example one returned by GetPrimitives.

Returns: string

The first overload is an extension method of IPCB_PinPairHelper (using PCB;) with typed parameters; the second is declared by the interface.

Returns an empty string when no primitive is given.

GetPrimitives​

Returns a primitive on the pin pair's signal path, by index.

IPCB_Primitive GetPrimitives(int argIndex);
ParameterTypePassingDescription
argIndexintvalueThe zero-based index of the primitive.

Returns: IPCB_Primitive

Extension method of IPCB_PinPairHelper (using PCB;).

Returns null when the index is outside the range 0 to PrimitivesCount - 1.

Rebuild​

Recalculates the pin pair's signal path, the list of primitives on it, its lengths and its delay.

void Rebuild();

Returns: nothing (void)

Returned by​

IPCB_PinPairsManager.CreateFromPins, IPCB_PinPairsManager.CreateFromPinsDescriptors, IPCB_PinPairsManager.GetPinPairOf, IPCB_PinPairsManager.PinPairs

Accepted by​

IPCB_PinPairsManager.Delete