Optional
attrs: Partial<AcDbDimStyleTableRecordAttrs>Optional
defaultAttrs: Partial<AcDbDimStyleTableRecordAttrs>Gets the attributes object for this AcDbObject.
The AcCmObject instance containing all attributes
Gets the database in which this object is resident.
When an object isn't added to a database, this property returns the current working database. After it is added to a database, it will be set automatically. You should never set this value manually.
The database this object belongs to
Sets the database for this object.
This is typically set automatically when the object is added to a database. Manual setting should be avoided unless you know what you're doing.
The database to associate with this object
Dimension angular decimal places. This property controls the number of precision places displayed in angular dimensions.
Dimension angular zero-in. This property controls the display of alternate units in dimensions.
Dimension alternate dimension. This property controls the number of decimal places in alternate units. If DIMALT is turned on, DIMALTD sets the number of digits displayed to the right of the decimal point in the alternate measurement.
Alternate dimensioning. The default value of DIMALT is set to 0 for DIMALTF (Dimension Alternate Text Format), which means that alternate dimensions are not displayed by default. When DIMALT is set to 1, it indicates that alternate dimensioning is enabled, and you can use DIMALTF to specify the format of the alternate dimension text. You can set it to various values depending on how you want the alternate dimensions to be displayed.
Dimension alternate rounding. This property controls rounds off the alternate dimension units.
Dimension alternate tolerance decimal places. This property controls the number of decimal places for the tolerance values in the alternate units of a dimension.
Dimension alternate tolerance zero suppress. This property controls suppression of zeros in tolerance values.
To suppress leading or trailing zeros, add the following values to one of the preceding values:
Dimension alternate unit format. This property controls the units format for alternate units of all dimension substyles except Angular. The value of this property include:
Dimension alternate unit zero suppress. This property controls the suppression of zeros for alternate unit dimension values. DIMALTZ values 0-3 affect feet-and-inch dimensions only.
Dimension append postfix. This property specifies a text prefix or suffix (or both) to the alternate dimension measurement for all types of dimensions except angular. For instance, if the current units are Architectural, DIMALT is on, DIMALTF is 25.4 (the number of millimeters per inch), DIMALTD is 2, and DIMAPOST is set to "mm", a distance of 10 units would be displayed as 10"[254.00mm]. To turn off an established prefix or suffix (or both), set it to a single period (.).
Dimension arrow size. This property controls the size of the arrowheads used in dimensions. You can modify this value to adjust the size of arrowheads based on your drawing's requirements.
Dimension angular tolerance fit. This property determines how dimension text and arrows are arranged when space is not sufficient to place both within the extension lines.
Dimension angular units. This property controls the units format for angular dimensions.
Dimension zero-in for angular dimensions.
Dimension arrowhead block. This property controls the arrowhead block displayed at the ends of dimension lines.
Dimension arrowhead block for the first arrow. This property controls the arrowhead for the first end of the dimension line when DIMSAH is on.
Dimension arrowhead block for the second arrow. This property controls the arrowhead for the second end of the dimension line when DIMSAH is on.
Dimension center mark size. This property controls the size of the center marks or centerlines for circles and arcs in dimensions. A positive value specifies the size of the center mark, while a negative value specifies the size of the centerline. If set to 0, no center mark or centerline is drawn.
Dimension color. This property controls colors to dimension lines, arrowheads, and dimension leader lines. For BYBLOCK, enter 0. For BYLAYER, enter 256.
Dimension extension line color. This property controls colors to extension lines, center marks, and centerlines. For BYBLOCK, enter 0. For BYLAYER, enter 256.
Dimension text color. This property controls colors to dimension text. For BYBLOCK, enter 0. For BYLAYER, enter 256.
Dimension decimal places. This property controls the number of decimal places displayed for the primary units of a dimension. Its initial value is 4 for imperial unit or 2 for metric unit. The precision is based on the units or angle format you have selected. Specified value is applied to angular dimensions when DIMADEC is set to -1.
Dimension line extension. This property controls how far the dimension line is extended beyond the extension lines. By default, the dimension line ends at the extension lines, but you can adjust this value to extend the dimension line beyond them.
Dimension line Increment. This property controls the spacing between the dimension lines when you create multiple parallel dimensions using the baseline dimensioning method.
Dimension decimal separator. This property is used to specifies a single-character decimal separator to use when creating dimensions whose unit format is decimal.
Dimension extension line extension. This property controls how far beyond the dimension line the extension lines extend. You can adjust this value to control the length of the extension line past the dimension line.
Dimension extension line offset. This property controls the offset distance from the origin point to where the extension line starts. You can adjust it to control how far the extension line is set back from the object being dimensioned.
Dimension fit. This property controls how dimension text fits within the dimension line. The value of this property include:
Dimension fraction format. This property controls the fraction format when DIMLUNIT is set to 4 (Architectural) or 5 (Fractional).
Dimension gap. This property controls the distance between the dimension line and the extension lines. You can adjust this value to create more space or less space between these elements in your dimensions.
Dimension text justification. This property controls the horizontal positioning of dimension text.
Dimension leader block. This property specifies the arrow type for leaders. To return to the default, closed-filled arrowhead display, enter a single period (.). For a list of arrowhead entries, see DIMBLK. Note: Annotative blocks cannot be used as custom arrowheads for dimensions or leaders.
Dimension linear factor. This property controls the scaling factor for linear dimensions. If you want to adjust the size of linear dimensions without changing the actual dimension text height or other dimension settings, you can modify this value. A setting of 1.0 means that dimensions are displayed at their actual size.
Dimension limit. This property determines whether to generate dimension limits as the default text. Setting DIMLIM to On turns DIMTOL off.
Dimension linear units. This property controls units for all dimension types except angular. The value of this property include:
Dimension line weight. This property controls lineweight to dimension lines.
Dimension line weight for extension lines. This property controls lineweight to extension lines.
Dimension postfix. This property specifies a text prefix or suffix (or both) to the dimension measurement. For example, to establish a suffix for millimeters, set DIMPOST to mm; a distance of 19.2 units would be displayed as 19.2 mm. If tolerances are turned on, the suffix is applied to the tolerances as well as to the main dimension. Use <> to indicate placement of the text in relation to the dimension value. For example, enter <>mm to display a 5.0 millimeter radial dimension as "5.0mm". If you entered mm <>, the dimension would be displayed as "mm 5.0". Use the <> mechanism for angular dimensions.
Dimension rounding. This property controls the rounding of dimension distances to a specified value. When set to 0.0, no rounding occurs, and the dimension is displayed with its exact value. You can set it to a non-zero value to round dimensions to a specific increment.
Dimension suppress arrowheads. This property controls the display of dimension line arrowhead blocks.
Dimension scale. This property controls the scale factor for dimensioning objects. If you need to adjust the scale of your dimensions, you can change this value to better fit your drawing's scale.
Suppress first dimension line. This property controls suppression of the first dimension line and arrowhead. When turned on, suppresses the display of the dimension line and arrowhead between the first extension line and the text.
Suppress second dimension line. This property controls suppression of the second dimension line and arrowhead. When turned on, suppresses the display of the dimension line and arrowhead between the second extension line and the text.
Dimension suppress extension line 1. This property controls whether to suppresses display of the first extension line.
Dimension suppress extension line 2. This property controls whether to suppresses display of the second extension line.
Dimension suppress offset x-direction. This property controls whether to suppresses arrowheads if not enough space is available inside the extension lines. If not enough space is available inside the extension lines and DIMTIX is on, setting DIMSOXD to On suppresses the arrowheads. If DIMTIX is off, DIMSOXD has no effect.
Dimension text above dimension line. This property the vertical position of text in relation to the dimension line.
Dimension tolerance decimal places. This property controls the number of decimal places to display in tolerance values for the primary units in a dimension. This property has no effect unless DIMTOL is set to On. The default for DIMTOL is Off.
Dimension text factor. This property is used to scale the height of dimension text based on the current DIMTXT value. If you set DIMTFAC to a value greater than 1.0, the dimension text will be larger than the default height specified by DIMTXT. Conversely, setting it to a value less than 1.0 will make the text smaller.
Dimension text inside horizontal. This property controls the position of dimension text inside the extension lines for all dimension types except Ordinate.
Dimension text inside extension lines. This property controls the position of dimension text relative to the extension lines.
Dimension minus tolerance. This property controls the lower tolerance limit for dimensions. When set to 0.0, no minus tolerance is applied by default. You can set this to a different value if you need to specify a negative tolerance for your dimensions.
Dimension text movement. This property is used to set dimension text movement rules.
Dimension to first extension line. This property controls whether a dimension line is drawn between the extension lines even when the text is placed outside. For radius and diameter dimensions, a dimension line is drawn inside the circle or arc when the text, arrowheads, and leader are placed outside.
Dimension text outside horizontal. This property controls the position of dimension text outside the extension lines.
Dimension tolerance. This property determines whether to appends tolerances to dimension text. Setting DIMTOL to on (1) turns DIMLIM off (0).
Dimension tolerance justification. This property sets the vertical justification for tolerance values relative to the nominal dimension text. This property has no effect unless DIMTOL is set to On. The default for DIMTOL is Off.
Dimension text post. This property controls the tolerance value added after the dimension text, typically used for specifying tolerance values in dimensions. The default setting of 0.0 means that no additional tolerance is applied by default.
Dimension tick size. When set to 0.0, no tick marks are displayed, and the default arrowheads are used for dimension lines. If you set it to a positive value, it will display tick marks instead of arrowheads, with the value controlling the size of the ticks.
Dimension text vertical position. This property controls the vertical position of dimension text relative to the dimension line. A value of 0.0 means that the dimension text is placed directly on the dimension line. You can adjust this value to change the vertical offset of the dimension text above or below the dimension line.
Dimension text style. This property specifies the text style of the dimension.
Dimension text height. This property controls the height of the dimension text. You can adjust this value to change the size of the text in your dimensions to fit the scale and appearance of your drawing.
Dimension tolerance zero suppress. This property controls the suppression of zeros in tolerance values. Values 0-3 affect feet-and-inch dimensions only.
Dimension linear units. This property controls the format in which linear dimensions are displayed. The value of this property include:
Dimension update. This property controls options for user-positioned text.
Dimension zero-in. This property controls the suppression of zeros in the primary unit value.
Gets or sets the name of the symbol table record.
This property corresponds to DXF group code 2 and is used for identifying and referencing the symbol table record.
The name of the symbol table record
Gets the object ID.
AutoCAD uses 64-bit integers to represent handles, which exceed the maximum integer value of JavaScript. Therefore, strings are used to represent object handles.
The object ID as a string
Sets the object ID.
The new object ID
Gets the object ID of the owner of this object.
The owner object ID
Sets the object ID of the owner of this object.
The new owner object ID
Gets the value of the specified attribute.
This method will throw an exception if the specified attribute doesn't exist. Use getAttrWithoutException() if you want to handle missing attributes gracefully.
The name of the attribute to retrieve
The value of the specified attribute
Gets the value of the specified attribute without throwing an exception.
This method returns undefined if the specified attribute doesn't exist, making it safer for optional attributes.
The name of the attribute to retrieve
The value of the specified attribute, or undefined if it doesn't exist
Sets the value of an attribute.
The name of the attribute to set
Optional
val: AcDbDimStyleTableRecordAttrs[A]The value to assign to the attribute
Objects of this class represent the records found in the dimension style table. Each of these records contains the information necessary to generate a specific appearance (that is, text above, in, or below the line; arrows, slashes, or dots at the end of the dimension line, and so on) for dimensions that reference it.