Anuncios

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

leeminardi
en respuesta a: Anonymous

The "rotation" property you refer to is a bit of a mystery to me. I rotated a block by 90° about the Y axis and the rotation property showed 270.  I then rotated the block by 90° about the X axis and the Rotation property was 0!  

 

Rotations in 3D can be difficult to determine and confusing to express in clear term.  The order in which rotations are done will affect the final orientation.  When working in 3D and I want to know the orientation of a 3D  Block I find it best to use the VLISP function nentsel.  For example, in the image below I have rotated a block to an isometric orientation (rotate3d about Y by 45° then about X by 35.2644°). Nentsel outputs the 4 row by 3 column transformation matrix of the block.  The first vector  (11.3197 3.52974 0.0) is the pick point for selecting the block.  It is followed by the matrix where the first vector (0.707107 -0.408248 -0.57735)  is a unit vector of the x axis of the block in world coordinates. The next vector  (6.66134e-16 0.816496 -0.57735) is the unit Y axis.  It is followed by the z vector and then a vector defining the location of the block.

 

image.png

lee.minardi