Create, Modify, and Copy Dimension Styles
Work with Dimension Styles
Dimension in Model Space and Paper Space
Override the Dimension Style
Each dimension has the capability
of overriding settings in the dimension style for that dimension.
The following properties are available for most dimension objects:
-
AltRoundDistance
-
Specifies the rounding of
alternate units.
-
AngleFormat
-
Specifies the unit format
for angular dimensions.
-
Arrowhead1Block, Arrowhead2Block
-
Specifies the block to use
as the custom arrowhead for the dimension line.
-
Arrowhead1Type, Arrowhead2Type
-
Specifies the type of arrowhead
for the dimension line.
-
ArrowheadSize
-
Specifies the size of dimension
line arrowheads, leader line arrowheads, and hook lines.
-
CenterMarkSize
-
Specifies the size of the
center mark for radial and diameter dimensions.
-
CenterType
-
Specifies the type of center
mark for radial and diameter dimensions.
-
DecimalSeparator
-
Specifies the character to
be used as the decimal separator in decimal dimension and tolerance
values.
-
DimensionLineColor
-
Specifies the color of the
dimension line for a dimension, leader, or tolerance object.
-
DimensionLineWeight
-
Specifies the lineweight
for the dimension lines.
-
DimLine1Suppress, DimLine2Suppress
-
Specifies the suppression
of the dimension lines.
-
DimLineInside
-
Specifies the display of
dimension lines inside the extension lines only.
-
ExtensionLineColor
-
Specifies the color for dimension
extension lines.
-
ExtensionLineExtend
-
Specifies the distance the
extension line extends beyond the dimension line.
-
ExtensionLineOffset
-
Specifies the distance the
extension lines are offset from the origin points.
-
ExtensionLineWeight
-
Specifies the lineweight
for the extension lines.
-
ExtLine1EndPoint, ExtLine2EndPoint
-
Specifies the endpoint of
extension lines.
-
ExtLine1StartPoint, ExtLine2StartPoint
-
Specifies the start point
of extension lines.
-
ExtLine1Suppress, ExtLine2Suppress
-
Specifies the suppression
of extension lines.
-
Fit
-
Specifies the placement of
text and arrowheads inside or outside extension lines.
-
ForceLineInside
-
Specifies if a dimension
line is drawn between the extension lines even when the text is placed
outside the extension lines.
-
FractionFormat
-
Specifies the format of fractional
values in dimensions and tolerances.
-
HorizontalTextPosition
-
Specifies the horizontal
justification for dimension text.
-
LinearScaleFactor
-
Specifies a global scale
factor for linear dimensioning measurements.
-
PrimaryUnitsPrecision
-
Specifies the number of decimal
places displayed for the primary units of a dimension or tolerance.
-
SuppressLeadingZeros, SuppressTrailingZeros
-
Specifies the suppression
of leading and trailing zeros in dimension values.
-
SuppressZeroFeet, SuppressZeroInches
-
Specifies the suppression
of a zero foot and zero inch measurement in dimension values.
-
TextColor
-
Specifies the color of the
text for dimension and tolerance objects.
-
TextGap
-
Specifies the distance between
the dimension text and the dimension line when you break the dimension
line to accommodate dimension text.
-
TextHeight
-
Specifies the height for
the dimension or tolerance text.
-
TextInside
-
Specifies if the dimension
text is to be drawn inside the extension lines.
-
TextInsideAlign
-
Specifies the position of
dimension text inside the extension lines for all dimension types except
ordinate.
-
TextMovement
-
Specifies how dimension text
is drawn when text is moved.
-
TextOutsideAlign
-
Specifies the position of
dimension text outside the extension lines for all dimension types except
ordinate.
-
TextPosition
-
Specifies the dimension text
position.
-
TextPrecision
-
Specifies the precision of
angular dimension text.
-
TextPrefix
-
Specifies the dimension value
prefix.
-
TextRotation
-
Specifies the rotation angle
of the dimension text.
-
TextSuffix
-
Specifies the dimension value
suffix.
-
ToleranceDisplay
-
Specifies if tolerances are
displayed with the dimension text.
-
ToleranceHeightScale
-
Specifies a scale factor
for the text height of tolerance values relative to the dimension
text height.
-
ToleranceJustification
-
Specifies the vertical justification
of tolerance values relative to the nominal dimension text.
-
ToleranceLowerLimit
-
Specifies the minimum tolerance
limit for dimension text.
-
TolerancePrecision
-
Specifies the precision of
tolerance values in primary dimensions.
-
ToleranceSuppressLeadingZeros
-
Specifies the suppression
of leading zeros in tolerance values.
-
ToleranceSuppressTrailingZeros
-
Specifies the suppression
of trailing zeros in dimension values.
-
ToleranceUpperLimit
-
Specifies the maximum tolerance
limit for dimension text.
-
UnitsFormat
-
Specifies the unit format
for all dimensions except angular.
-
VerticalTextPosition
-
Specifies the vertical position
of text in relation to the dimension line.
Enter a user-defined suffix
for an aligned dimension
This example creates an aligned dimension in model
space and uses the TextSuffix property to allow the user to change
the text suffix for the dimension.
Sub Ch5_AddTextSuffix()
Dim dimObj As AcadDimAligned
Dim point1(0 To 2) As Double
Dim point2(0 To 2) As Double
Dim location(0 To 2) As Double
Dim suffix As String
' Define the dimension
point1(0) = 0: point1(1) = 5: point1(2) = 0
point2(0) = 5: point2(1) = 5: point2(2) = 0
location(0) = 5: location(1) = 7: location(2) = 0
' Create an aligned dimension object in model space
Set dimObj = ThisDrawing.ModelSpace. _
AddDimAligned(point1, point2, location)
ThisDrawing.Application.ZoomAll
' Allow the user to change the text suffix for the dimension
suffix = InputBox("Enter a new text suffix for the dimension" _
, "Set Dimension Suffix", ":SUFFIX")
' Apply the change to the dimension
dimObj.TextSuffix = suffix
ThisDrawing.Regen acAllViewports
End Sub