How to export sketch as DXF using the API

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:

Answers

  • michał_wójcik493
    michał_wójcik493 Member Posts: 2 ✭
    Bump. I could also use such an endpoint on the API.
  • matthew_mueller295
    matthew_mueller295 Member Posts: 6 EDU
    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?