Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

rotate an object 2

Status
Not open for further replies.

lwf

Mechanical
Aug 9, 2007
19
0
0
US
what is the command to rotate a built object for a certain angle? Thank you.
 
Replies continue below

Recommended for you

You can use vtran command. You have to define new local coordinate systems and transfer your object to it.

For example

! define coordinates of the rotation point
xrot=0.5
yrot=0.5
zrot=0.5
! define rotation angle
xang=15
yang=0
zang=0

local,11,,xrot,yrot,zrot
local,12,,xrot,yrot,zrot,xang,yang,zang

csys,11
vtran,12,1,,,,,1

 
Hello,

there is one small problem with jiligeo's input code:

If xang has to be a rotation about the x axis, yang about y, z and about z, then angle sequence is:

local,12,,,,,zang,xang,yang

Regards
Alex
 
Status
Not open for further replies.
Back
Top