Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:
  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. 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.

How can I programmatically create a plane at an arbitrary orientation using the Onshape REST API?

Hi everyone:

I’m working with the Onshape REST API to programmatically generate sketches and extrudes. I’ve successfully used the API to:

  • Create sketches on standard planes (e.g., "Front")
  • Define circles, rectangles, and line segments
  • Extrude sketches into 3D geometry

Now I want to define a new reference plane — for example, a plane normal to a line, located at a specific end-point. I need this plane so I can define a sketch on it and extrude it.

Another option would be to extrude a sketch (circle or square) along a line-segment.

I can't seem to find documentation on how I would go about this outside of the examples (for a circle and extrude) in the API docs.

Comments

Sign In or Register to comment.