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.
Exporting to dxf from FeatureScript
eli_4
Member Posts: 1 ✭
I'm generating several slightly varied sketches using FeatureScript. Is there a way to make the script export each sketch as a dxf? I'd rather not right click each one to export it after.
0
Answers
GET /api/partstudios/d/:did/[wvm]/:wvm/e/:eid/sketches/:sid/tessellatedentities this is not quite the same data as would be in a DXF however, notably curves will be straight lines controlled by tolerance values supplied when making the API call.
Further information can be found by registered developers in the API explorer - if you're not already registered as a developer begin by signing in at https://dev-portal.onshape.com with the same credentials you use at https://cad.onshape.com.
I have logged an internal request to provide an API to export a sketch as a DXF file.
In-line with the question above, I am planning to export into STL file format using FeatureScript.
Is it possible to call Onshape REST APIs (or any other web based end-point) using FeatureScript?
After that we might be able to provide options to export in various custom formats from FeatureScript itself.
Thanks.
Has the API been updated since this thread was last active? I'm looking to export all planar faces of an object as DXF from an external source (or internal source to start).