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.
Sheet metal flat pattern through the API
shawncrocker
Member Posts: 8 ✭✭
I thought I had seen this as an end point in glassworks but I now seem to be unable to find it listed. Is there some way to access and export sheet metal flat patterns through the API?
0
Answers
Thanks for this answer! I hadn't noticed it until now as I am suddenly in need of actually getting flats now.
@caden_armstrong2
How can I export the flat pattern as dwg/dxf after finding the related IDs of the Flattened View. I couldn't find the endpoint for that.
You are supposed to be able to use this end point. https://cad.onshape.com/glassworks/explorer/#/Document/export2Json. I played around with it a few months ago but there are a lot of parameters and I was not sure what they all do. I couldn't get it to work right off. I ended up getting busy with other stuff and have not have a pressing need to get to the bottom of getting it working for our purposes. For us actually, exporting the flat pattern as a .step file works just as good. Our nesting software accepts .steps. If you end up getting the export of the .dwg/.dxf working, can you post here the key to getting it up and running. Below is a copy/paste from some assistance I received from the support team on what to put in the body but I just have not dug into it yet and tested.
I think originally I was not getting it to work because I wasn't sure what to put in the "view" key. According to support, those numbers represent the top view of the flat pattern. Apparently now, we can just use the word "top" instead and it is supposed to work. Good Luck!
Edit:
I see that paste got converted into something. Here it is as text.