Class Hierarchy
AcRxObject AcGiDrawable AcDbObject AcDbEntity AcDbDimension AcDbOrdinateDimension
C++
class AcDbOrdinateDimension : public AcDbDimension;
File
dbdim.h
Description
The AcDbOrdinateDimension class represents the ordinate dimension type within AutoCAD.
Ordinate dimensions measure the "horizontal" (X axis) or "vertical" (Y axis) distance from a specified origin point to some other specified point.
AcDbOrdinateDimensions measure the distance from the their origin point to their definingPoint along the X or Y axis (as specified by the appropriate member function). They display a leader line from the definingPoint to the leaderEndPoint, with the annotation text located appropriately near the end of the leader.
Remarks
When a newly created dimension entity is first closed, an anonymous block (an AcDbBlockTableRecord that contains all the appropriate line, arc, arrowhead solids, text, etc., and with *D as the block name prefix) will automatically be created for it to reference for display.
When an AcDbOrdinateDimension object is closed it will automatically calculate a text position based on the annotation text extents and the leaderEndPoint. This will replace any pre-existing text position settings. So any text position settings made via the AcDbDimension::setTextPosition() method will never be used. Instead you will need to change the leaderEndPoint value to move the text.
Links
AcDbOrdinateDimension Constructor, AcDbOrdinateDimension Methods
See Also
AcDbObject, AcDbEntity