Radial dimensions measure and represent the radius of a circle, circular arc, or polyline arc segment as a dimension entity in primary and alternate units. To define the placement, the radial dimension entity requires the center point of the circle or arc to be measured, a chord point on the circle or arc to which the dimension line is drawn, a text point that defines the placement of the dimension text box, and the normal that orients a dimension in WCS. The circle or arc to be measured is the definition circle or definition arc.
The radial dimension entity can be rotated, scaled, and oriented in WCS. Additionally, the center of a radial dimension entity can be marked.
A radial dimension entity consists of the following elements (no extension lines):
The common structure of the radial dimension entity is defined by the text movement and the text position relative to the definition circle or arc (inside or outside).
Dimension text can be moved, but the result of movement can vary depending on the Dimtmove value. Dimtmove can be set to one of the following values:
When the dimension text box is placed inside of the definition circle or arc, the dimension line is drawn from the center to the chord point.
When the dimension text box is placed outside of the definition circle or arc, the dimension line is drawn from the text point to the chord point towards the center point.
The chord point and center point can be connected by a forced line. If the forced line is absent, the center can be marked. If the dimension line is placed inside the circle or arc, the forced line and center mark are not drawn.
For working with radial dimension objects, use the OdDbRadialDimension class, which represents a radial dimension entity, and manipulate its properties. The OdDbRadialDimensionPtr class is the typified smart pointer to an instance of this entity, and it is used for storing and passing a reference to the radial dimension object.
To create and initialize a new instance of a radial dimension entity, see Overview of Specific Entities.
The main methods of the OdDbRadialDimension class are listed below:
The next example demonstrates how to work with a radial dimension entity.
//Create a circle to be dimensioned
OdDbCirclePtr pCircle = OdDbCircle::createObject();
pCircle->setDatabaseDefaults(bBTR->database());
bBTR->appendOdDbEntity(pCircle);
pCircle->setCenter(OdGePoint3d(3.0, -3.0, 0));
pCircle->setRadius(1.0);
// Create a Radial Dimension
OdDbRadialDimensionPtr pDimension = OdDbRadialDimension::createObject();
// Set dimension defaults
pDimension->setDatabaseDefaults(bBTR->database());
bBTR->appendOdDbEntity(pDimension);
// Set dimension parameters
pDimension->setCenter(pCircle->center());
OdGeVector3d chordVector(pCircle->radius(), 0.0, 0.0);
chordVector.rotateBy(OdaToRadian(30.0), OdGeVector3d::kZAxis);
pDimension->setChordPoint(pDimension->center() + chordVector);
pDimension->setLeaderLength(0.2);
pDimension->useDefaultTextPosition();
Overview of Angular Dimensions
Overview of Arc-Length Dimensions
Overview of Diametric Dimensions
Copyright © 2002 – 2022. Open Design Alliance. All rights reserved.
|