Hi all,
How can i get rotation value from textelement.It returns the value only in matrix3d.How can i get it in degrees like,,90,120,-45,-126...etc
Aravinthkumar: How can I get rotation value from TextElement. It returns the value only in Matrix3d. How can I get it in degrees?
Post questions about MicroStation VBA to the VBA Forum.
MicroStation is a 3D environment. A Matrix3d describes an element's orientation in three dimensions. A matrix is a better vehicle for carrying orientation than a simple angle because, in 3D, you need at least two rotations, and angular rotations are non-commutative. That is, a rotation about the Z-axis followed by a rotation about the Y-axis has a different result to a rotation about the Y-axis followed by a rotation about the Z-axis.
There are ways to extract angular rotation from a Matrix3d. In general, angles are measure in radians in programming languages. Degrees are for human consumption — in this case, MicroStation VBA provides conversion methods. Lookup the Radians and Degrees methods in VBA Help.
Regards, Jon Summers LA Solutions
Method 'Matrix3dIsXYRotation' can return a radian from a Matrix3d, and method 'Degree' can convert a radian to a degree.
HTH,
Yongan