AcDbRadialDimension( const AcGePoint3d& center, const AcGePoint3d& chordPoint, double leaderLength, const ACHAR * dimText = NULL, AcDbObjectId dimStyle = AcDbObjectId::kNull );
This constructor uses the parameters passed in to initialize the dimension. In addition, the rest of the AcDbDimension, AcDbEntity, etc. default constructor initializations are performed.
If the text is inside the curve being dimensioned, then the dimension line is drawn from the center to the chordPoint, with a break for the annotation text.
If the dimension text is outside the curve being dimensioned, then the dimension line is drawn from the center, on through the chordPoint and out the leaderLength distance past the chordPoint where it does a short horizontal dogleg (if appropriate) to the annotation text.
A copy of the dimText string is used by the dimension.
The dimText string needs to contain any desired MText formatting characters. The substring "<>" may be used anywhere within the string as a marker to indicate that the default text should be displayed there in place of the "<>" (it is possible to have more than one set of "<>" in the text string, but only the first set is interpreted as the default text place holder).
If dimText is NULL, then when the dimension is closed, the dimension text string is set to an empty string and the default dimension text (that is, a text string automatically generated based on the dimStyle, dimVar settings, and the actual measurement of the angle) is used.
If dimStyle is left as AcDbObjectId::kNull, then the object ID of the current default dimStyle within the AutoCAD editor is used.
center (the curve center point) is used for DXF group code 10.
chordPoint (the point on the curve) is used for DXF group code 15.
leaderLength is used for DXF group code 40.
dimText (the dimension annotation text) is used for DXF group code 1.
The name string within the dimension style specified by dimStyle is used for DXF group code 3.
Parameters | Description |
---|---|
center | Input center point (in WCS coordinates) of curve being dimensioned |
chordPoint | Input point (in WCS coordinates) on the curve being dimensioned |
leaderLength | Input leader length |
dimText | Input text string to use as the dimension annotation |
dimStyle | Input object ID of AcDbDimStyleTableRecord to use |