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
-
Bump. I could also use such an endpoint on the API.0
-
I'm in the same boat. I can only get the sketch geometry info with the /sketch ending on the URL. I can export an stl with the API, so seems like I should also export a vector file. Any thoughts?
0