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 to export sketch as DXF using the API
oskar_weigl033
Member Posts: 1 ✭
Hi, I am looking to use the API to hook up a python script to optimize some electric motor geometry. I need to run some simulations on a 2D DXF output of the geometry.
How can I use the API to export a sketch to .DXF?
I found some endpoints that facilitate STL and Parasolid export, and I found some stuff to do with exporting Drawings as DXF. But I need a sketch, since it needs to be correctly referenced to the origin.
I'm looking for the API equivalent of this action, which does exactly what I need:
Thanks!
How can I use the API to export a sketch to .DXF?
I found some endpoints that facilitate STL and Parasolid export, and I found some stuff to do with exporting Drawings as DXF. But I need a sketch, since it needs to be correctly referenced to the origin.
I'm looking for the API equivalent of this action, which does exactly what I need:
Thanks!
2
Answers