Skip to main content
View as Markdown

IPCB_CenterDimension interface

A center dimension on a PCB document, which marks the center of an arc or circle with a cross.

public interface IPCB_CenterDimension : IPCB_Dimension

Namespace: PCB · Assembly: Altium.SDK.Interfaces

Inherits: IPCB_Primitive → IPCB_Group → IPCB_Dimension

Remarks​

A new center dimension has one reference. When its primitives are regenerated, the cross is centered on the center of the arc that this reference refers to, or on the reference point when the reference refers to no object, and the dimension's location is set to that center.

The cross is drawn with two tracks, Cross_Vertical_Track and Cross_Horizontal_Track, on the dimension's layer with the width LineWidth. Each track is Size long (60 mil by default) and the cross is rotated by Angle.

While the referenced arc is not selected, MoveByXY does not move the dimension.

Properties​

PropertyTypeAccessDescription
Angledoubleget; setThe rotation of the cross, in degrees, counterclockwise from the horizontal.

Angle​

The rotation of the cross, in degrees, counterclockwise from the horizontal.

double GetState_Angle();
void SetState_Angle(double argValue);

Type: double · Access: read/write

The default is 0, at which the arms of the cross are horizontal and vertical. Rotating or mirroring the dimension also rotates or mirrors this angle.

Methods​

MethodReturnsDescription
Cross_Horizontal_TrackIPCB_TrackReturns the track that draws the horizontal arm of the cross.
Cross_Vertical_TrackIPCB_TrackReturns the track that draws the vertical arm of the cross.

Cross_Horizontal_Track​

Returns the track that draws the horizontal arm of the cross.

IPCB_Track Cross_Horizontal_Track();

Returns: IPCB_Track

Extension method of IPCB_CenterDimensionHelper (using PCB;).

When Angle is not 0, the arm is rotated by that angle.

Cross_Vertical_Track​

Returns the track that draws the vertical arm of the cross.

IPCB_Track Cross_Vertical_Track();

Returns: IPCB_Track

Extension method of IPCB_CenterDimensionHelper (using PCB;).

When Angle is not 0, the arm is rotated by that angle.

Inherited members​