Fit and movement values define the structure and behavior of a dimension entity when its dimension text box and dimension lines are moved.
The Dimtmove value specifies the method of movement for a dimension text box and dimension lines relative to one to another, and also defines the entity behavior, leader visibility, and interpretation of the text position. Dimtmove is an integer value and can have the following values:
If the dimension text box is placed outside of extension lines, a leader line is drawn, which extends the dimension line from an extension line to the dimension text box margin. If there is not enough space between the extension lines, the text and arrowheads are placed according to the Dimatfit value. The text position is the center of the dimension text box for all dimension entities.
This is the initial value.
For aligned linear and rotated linear dimension entities:
For two-line angular, three-point angular, and arc-length dimension entities:
For radial, radial large, and diametric dimension entities:
For ordinate dimension entities:
The text position is the start point of the leader line for aligned and rotated linear dimension entities; the center of the dimension text box for angular, ordinate, radial large, and arc-length dimension entities; and the start point of the dimension line for diametric and radial dimension entities.
For aligned linear and rotated linear dimension entities:
For two-line angular, three-point angular, and arc-length dimension entities:
For radial, radial large, and diametric dimension entities:
For ordinate dimension entities:
The text position is the center of the dimension text box for all dimension entities.
For aligned linear and rotated linear dimension entities:
For two-line angular, three-point angular, and arc-length dimension entities:
For radial, radial large, and diametric dimension entities:
For ordinate dimension entities:
To get the Dimtmove value, use the dimtmove() method, which returns the Dimtmove value as an OdInt16 value.
For example:
odPrintConsoleString(L"\nDimtmove value is %d", pDimension->dimtmove());
To set a new Dimtmove value, use the setDimtmove() method, which requires one OdInt16 parameter to specify the new Dimtmove value.
For example:
pDimension->setDimtmove(1);
The Dimatfit value controls the placement of the dimension text box and arrowheads relative to extension lines. The fit defines the behavior of a dimension entity when there is not enough space between the extension lines to place the text and arrowheads.
The Dimatfit value is not available for ordinate dimension entities but is applicable to all another dimension entities.
The fit is an OdInt16 value and can have the following values:
When enough space is available between extension lines to draw the text and arrowheads together, the text and arrowheads are placed inside of the extension lines and the Dimatfit value is ignored. When space is available for neither text nor arrowheads, text and arrowheads are moved together outside of extension lines and the Dimatfit value is ignored.
To get the Dimatfit value, use the dimatfit() method, which returns the Dimatfit value as an OdInt16 value.
For example:
odPrintConsoleString(L"\nDimatfit value is %d", pDimension->dimatfit());
To set a new Dimatfit value, use the setDimatfit() method, which requires one OdInt16 value as a new Dimatfit value. For example:
pDimension->setDimatfit(1);
Working with Common Dimension Entity
Working with General Dimension Methods
Working with Dimension Tolerances
Working with Primary Unit Measurements
Working with Alternate Unit Measurements
Marking the Center of Dimensions
Copyright © 2002 – 2021. Open Design Alliance. All rights reserved.
|