IPCB_Connection interface
A connection line between two points on a PCB document, either a ratsnest connection or a broken net marker.
public interface IPCB_Connection : IPCB_Primitive
Namespace: PCB · Assembly: Altium.SDK.Interfaces
Inherits: IPCB_Primitive
Remarks
Each end of the connection has its own coordinates (X1, Y1 and X2, Y2) and its own layer (Layer1 and Layer2), so the two ends can be on different layers. Mode tells whether the connection is a ratsnest connection or a broken net marker.
A new connection has both ends at (0, 0) on TV6_Layer.eV6_MultiLayer, and its Mode is TConnectionMode.eRatsNestConnection.
Properties
| Property | Type | Access | Description |
|---|---|---|---|
| Layer1 | TV6_Layer | get; set | The layer of the connection's first end, (X1, Y1). |
| Layer2 | TV6_Layer | get; set | The layer of the connection's second end, (X2, Y2). |
| Mode | TConnectionMode | get; set | Whether the connection is a ratsnest connection or a broken net marker. |
| X1 | int | get; set | The X coordinate of the connection's first end, in internal units (10,000 per mil). |
| X2 | int | get; set | The X coordinate of the connection's second end, in internal units (10,000 per mil). |
| Y1 | int | get; set | The Y coordinate of the connection's first end, in internal units (10,000 per mil). |
| Y2 | int | get; set | The Y coordinate of the connection's second end, in internal units (10,000 per mil). |
Layer1
The layer of the connection's first end, (X1, Y1).
TV6_Layer GetState_Layer1();
void SetState_Layer1(TV6_Layer argValue);
Type: TV6_Layer · Access: read/write
The accessors are extension methods of IPCB_ConnectionHelper (using PCB;).
Layer2
The layer of the connection's second end, (X2, Y2).
TV6_Layer GetState_Layer2();
void SetState_Layer2(TV6_Layer argValue);
Type: TV6_Layer · Access: read/write
The accessors are extension methods of IPCB_ConnectionHelper (using PCB;).
Mode
Whether the connection is a ratsnest connection or a broken net marker.
TConnectionMode GetState_Mode();
void SetState_Mode(TConnectionMode argValue);
Type: TConnectionMode · Access: read/write
The accessors are extension methods of IPCB_ConnectionHelper (using PCB;).
See also: TConnectionMode
X1
The X coordinate of the connection's first end, in internal units (10,000 per mil).
int GetState_X1();
void SetState_X1(int argValue);
Type: int · Access: read/write
X2
The X coordinate of the connection's second end, in internal units (10,000 per mil).
int GetState_X2();
void SetState_X2(int argValue);
Type: int · Access: read/write
Y1
The Y coordinate of the connection's first end, in internal units (10,000 per mil).
int GetState_Y1();
void SetState_Y1(int argValue);
Type: int · Access: read/write
Y2
The Y coordinate of the connection's second end, in internal units (10,000 per mil).
int GetState_Y2();
void SetState_Y2(int argValue);
Type: int · Access: read/write
Methods
| Method | Returns | Description |
|---|---|---|
| IsRedundant | bool | Returns whether the connection is redundant. |
| RotateAroundXY | void | Rotates the connection about a point by an angle. |
IsRedundant
Returns whether the connection is redundant.
bool IsRedundant();
Returns: bool
Returns true when both ends are the same point on the same layer.
RotateAroundXY
Rotates the connection about a point by an angle.
void RotateAroundXY(int argX, int argY, double argngle);
| Parameter | Type | Passing | Description |
|---|---|---|---|
argX | int | value | The X coordinate of the point to rotate about, in internal units (10,000 per mil). |
argY | int | value | The Y coordinate of the point to rotate about, in internal units (10,000 per mil). |
argngle | double | value | The rotation angle, in degrees. |
Returns: nothing (void)
Both ends are rotated about the point; their layers do not change. To rotate the connection without moving it, pass its midpoint (midway between X1 and X2, and between Y1 and Y2) as the point.
Inherited members
- From IPCB_Primitive: AllowGlobalEdit, BeginModify, Board, BoundingRectangle, BoundingRectangleChildren, BoundingRectangleForPainting, BoundingRectangleForSelection, CancelModify, Component, Coordinate, DescriptorString, DetailString, Dimension, DrawAsPreview, DRCError, Enabled, Enabled_Direct, Enabled_vComponent, Enabled_vCoordinate, Enabled_vDimension, Enabled_vNet, Enabled_vPolygon, EnableDraw, EndModify, Export_ToParameters, FlipXY, GraphicallyInvalidate, Handle, Identifier, InBoard, InComponent, InCoordinate, Index, InDimension, InNet, InPolygon, InSelectionMemory, IsAssyTestPoint_Bottom, IsAssyTestPoint_Top, IsElectricalPrim, IsFreePrimitive, IsHidden, IsKeepout, IsPreRoute, IsSaveable, IsTenting, IsTenting_Bottom, IsTenting_Top, IsTestPoint_Bottom, IsTestPoint_Top, Layer, MiscFlag1, MiscFlag2, MiscFlag3, Moveable, MoveByXY, MoveToXY, Net, ObjectID, ObjectIDString, PadCacheRobotFlag, PasteMaskExpansion, Polygon, PolygonOutline, PowerPlaneClearance, PowerPlaneConnectStyle, PowerPlaneReliefExpansion, Preview, ReliefAirGap, ReliefConductorWidth, ReliefEntries, Replicate, RequiredParamterSpace, RotateBy, Selected, SolderMaskExpansion, SwapLayerPairs, TearDrop, UnionIndex, UniqueId, UniqueID, Used, UserRouted, V7Layer, ViewableObjectID