Share

AcDbMText::rotation

C++

double rotation() const;

Description

Returns the angle between the X axis of the OCS for the normal vector of the current AutoCAD editor's UCS and the projection of the MText object's direction vector onto the plane of the AutoCAD editor's current UCS. The rotation value is in radians, with positive angles as counterclockwise when looking down the UCS normal towards the UCS origin.

Note that the direction vector need not be orthogonal to the normal vector, although calling setRotation() will create a direction vector that is orthogonal. If the direction vector is non-orthogonal, rotation() will fail (returning 0.0).

Links

AcDbMText Class

Was this information helpful?