Angular transform
Niklas_Axelsson
Member Posts: 1 EDU
I am using addInstance to generate a number of parts in a Part Studio. I am also using "transform" to get different positions of the instances in the xyz-coordinate system. I am wondering if there is a way to use transform to get an angular repositioning of the Instance. In this example I want to rotate a part around the z-axis.
/Niklas
/Niklas
0
Best Answer
-
@Niklas_Axelsson
The `rotationAround(...)` function is useful for this:
https://cad.onshape.com/FsDoc/library.html#rotationAround-Line-ValueWithUnits
In the standard library documentation you can do a search for "return Transform" to find all the functions that create transformation matrices.Jake Rosenfeld - Modeling Team5
Answers
-
@Niklas_Axelsson
The `rotationAround(...)` function is useful for this:
https://cad.onshape.com/FsDoc/library.html#rotationAround-Line-ValueWithUnits
In the standard library documentation you can do a search for "return Transform" to find all the functions that create transformation matrices.Jake Rosenfeld - Modeling Team5

