www.kxcad.net Home > Electronic Index > Altium(Protel) Index
Overview
Dimension objects are used for dimensional details of a PCB board in either imperial or metric units and can be placed on any layer. To create an original Dimension objects, use the IPCB_OriginalDimension class which is used in P99SE and earlier versions.
Protel DXP introduced several new dimension styles - Linear, Angular, Radial, Leader, Datum, Baseline, Center, Linear Diameter and Radial Diameter objects
The IPCB_Dimension interface is the ancestor interface for IPCB_OriginalDimension, IPCB_LinearDImension, IPCB_AngularDimension, IPCB_RadialDimension, IPCB_LeaderDimension, IPCB_DatumDimension, IPCB_BaselineDimension, IPCB_CenterDimension, IPCB_LinearDiameterDimension, IPCB_RadialDiameterDimension interfaces.
Important Notes
The DimensionKind property determines the type a dimension object is.
A dimension object especially a baseline or a leader dimension has multiple reference points. The references (a reference consists of a record of an object along with its x and y coordinate point, an anchor and is a start or end marker). A reference point is either the start or end marker and the length of two reference points is the dimensional length.
IPCB_Dimension Methods
Procedure MoveTextByXY (AX,
AY : TCoord);
Procedure MoveTextToXY (AX,
AY : TCoord);
Procedure RotateAroundXY (AX,
AY : TCoord;
Angle : TAngle);
Procedure References_Add (R : TDimensionReference);
Procedure References_Delete (Index : Integer);
Procedure References_DeleteLast;
Function References_IndexOf (P : IPCB_Primitive;
Index : Integer) : Integer;
Function References_Validate : Boolean;
IPCB_Dimension Properties
DimensionKind : TDimensionKind
TextX : TCoord
TextY : TCoord
X1Location : TCoord
Y1Location : TCoord
Size : TCoord
LineWidth : TCoord
TextHeight : TCoord
TextWidth : TCoord
TextFont : TFontID
TextLineWidth : TCoord
TextPosition : TDimensionTextPosition
TextGap : TCoord
TextFormat : TString
TextDimensionUnit : TDimensionUnit
TextPrecision : Integer
TextPrefix : TString
TextSuffix : TString
TextValue : TReal
ArrowSize : TCoord
ArrowLineWidth : TCoord
ArrowLength : TCoord
ArrowPosition : TDimensionArrowPosition
ExtensionOffset : TCoord
ExtensionLineWidth : TCoord
ExtensionPickGap : TCoord
Style : TUnitStyle
References [I : Integer] : TDimensionReference
References_Count : Integer // Read only
See also
IPCB_Primitive interface
TDimensionTextPosition enumerated values
TDimensionUnit enumerated values
TDimensionArrowPosition enumerated values
TDimensionReference enumerated values
TUnitStyle enumerated values