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
| Property | Type | Access | Description |
|---|---|---|---|
| Angle | double | get; set | The 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
| Method | Returns | Description |
|---|---|---|
| Cross_Horizontal_Track | IPCB_Track | Returns the track that draws the horizontal arm of the cross. |
| Cross_Vertical_Track | IPCB_Track | Returns 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
- From IPCB_Dimension: ArrowLength, ArrowLineWidth, ArrowPosition, ArrowSize, Bold, DimensionKind, ExtensionLineWidth, ExtensionOffset, ExtensionPickGap, FontName, Italic, LineWidth, MoveTextByXY, MoveTextToXY, References, References_Add, References_Count, References_Delete, References_DeleteLast, References_IndexOf, References_Validate, ResetPrefixIfNeeded, RotateAroundXY, Size, Style, TextDimensionUnit, TextFont, TextFormat, TextGap, TextHeight, TextLineWidth, TextPosition, TextPrecision, TextPrefix, TextSuffix, TextValue, TextWidth, TextX, TextY, UseTTFonts, X1Location, Y1Location
- From IPCB_Group: AddPCBObject, FastSetState_XSizeYSize, FreePrimitives, GetPrimitiveAt, GetPrimitiveCount, GroupIterator_Create, GroupIterator_Destroy, LayerUsed, PrimitiveLock, RemovePCBObject, ReplicateWithChildren, SetState_LayersUsedArray, SetState_XSizeYSize, XLocation, YLocation
- 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