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.
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
-
What are you trying to achieve? Its possible to do what you are looking for, but depending on what your end goal is, there might be a better way.
www.smartbenchsoftware.com --- Renaissance --- Kestrel -- SmartLink
Experts in Onshape Automation - Custom Features and Integrated Applications0
Categories
- All Categories
- 10.2K Community Support
- 4.6K General
- 194 Account and subscriptions
- 353 Data management
- 1.6K Product Feedback
- 215 New in Onshape
- 14 Onshape Labs
- 75 CAM Studio
- 35 PCB Studio
- 107 Simulation
- 209 Onshape Mobile
- 315 App Store & Partners Apps
- 8.2K Using Onshape
- 1.8K Drawings
- 2.3K FeatureScript
- 324 Learning Center
- 253 Education Community
