How to Query World Axes
marena_richardson
Member Posts: 20 EDU
I am trying to rotate a part 90 degrees around standard world coordinate system axes (x, y, z). I know how to use opTransform and rotationAround to do that, but I am not sure how to query for the world axes.
0
Comments
-
The world axes aren't created as entities in a default part studio – just the origin and the default planes. However, if I understand what you're asking correctly, you don't need to create an axis entity.
rotationAround()takes in aLineobject, which can be constructed from just data. You can make a rotation around the x axis like so:var xAxis is Line = line(vector(0, 0, 0) * inch, vector(1, 0, 0)); var transform is Transform = rotationAround(xAxis, 90 * degree);
1 -
Yep, that's what I was asking. Thanks!
0

