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 to export sketch as DXF using the API

oskar_weigl033oskar_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!
Tagged:
Sign In or Register to comment.