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

mskeels
mskeels Member Posts: 6 ✭

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