Anuncios

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

klaus.gibbe
en respuesta a: Anonymous

There are several possibilities to do the rotation.

 

a)

select to objects you want to rotate by curves/models/features.item(i).select(true, false) and then rotate all selected objects in a document by

doc.XFormRotate(...)

 

or b)

select object(s) of a specific type like curve.select(true, false) and rotate all selected curves only by

doc.curves.Selected.XFormRotate(...)

 

 

One other thing to think about is the position of the rotation axis. You want to rotate around Y axis.

Where is the origin of the rotation axis?
Maybe you should do something like this:

doc.XFormRotate(false,false,0,angle,eXFT_RotateCenterYAxis, posX, 0, posZ,null)

where posX/Z is the origin of the y axis.