11-06-2018
05:33 AM
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar
11-06-2018
05:33 AM
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.