Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- Be respectful, on topic and if you see a problem, Flag it.
If you would like to contact our Community Manager personally, feel free to send a private message or an email.
Face relative coordinates for a sketch
marena_richardson
Member Posts: 20 EDU
I have a feature script feature where the user has selected a face, such as one side of a cube. I want to draw a sketch on that face. I can draw a sketch on that face but it still originates from world coordinates. How can I make the center of my sketch the center of the face I am drawing on?
0
Comments
newPlane = plane(oldPlane.origin, oldPlane.normal, newXDirection);
Planes have right-handed coordinate systems, so you can't get symmetric sketch by manipulating sketch planes only. If the faces are in the same plane, you can use MIRROR constraint in the same sketch. You probably will be using sketches to make extrude. It might be easier to build the body you are looking to build and then mirror and transform it.
I think it's easier to just have the sketch normal point opposite the face normal -- the default extrude direction will be wrong, but that doesn't seem like a big deal. The other possibility, like I said above, is using opTransform or opPattern on the sketch itself, which can take transforms with negative determinant.