Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng on being selected by the Eng-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
Joined
Aug 9, 2007
Messages
19
Location
US
what is the command to rotate a built object for a certain angle? Thank 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
 
Thank both of you. Have a good weekend!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top