ramakrishna90589
Automotive
Hi All,
i have an assembly and i want collect component rotation angles about X, Y & Z.
i searched for this in Eng-tips forum and i got following code to get component rotation matrix.
and i want to is there any way to get component angles rather than rotation matrix.
Thanks in Advance.
i have an assembly and i want collect component rotation angles about X, Y & Z.
i searched for this in Eng-tips forum and i got following code to get component rotation matrix.
Code:
Dim RotMat as Matrix3x3
Dim child As Component
Dim LW As ListingWindow = theSession.ListingWindow
LW.Open()
child.GetPosition(pt, RotMat)
lw.WriteLine ( "|" & child.displayname() & "," & _
"" & pt.x & ", " & pt.y & ", " & pt.z & "," & _
"" & "" & _
RotMat.xx & ", " & RotMat.yx & ", " & RotMat.zx & "," & _
RotMat.xy & ", " & RotMat.yy & ", " & RotMat.zy & "," & _
RotMat.xz & ", " & RotMat.yz & ", " & RotMat.zz )
and i want to is there any way to get component angles rather than rotation matrix.
Thanks in Advance.