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.
Multipage drawing translation into separate JPG-files
OKT_trial_23
Member Posts: 3 PRO
It's possible through API translate multisheet drawings into separate JPEG-files (and download them) where JPEG-name will be derived from associated sheet name? Any API that gives information about the number of sheets in a drawing, the order of the sheets and the names of the sheets?
0
Best Answer
-
Caden_Armstrong Member Posts: 164 PROIf you are only looking in glassworks, its not clear, but there is an endpoint documented in the developer documentation that does provide the sheets (in order) with names from a drawing. Its the "Export Drawing as Json" endpoint.
The result is a JSON with Sheets and Views, and the sheet information includes the names of the sheets.
https://onshape-public.github.io/docs/api-adv/translation/#export-a-drawing-as-a-json
www.smartbenchsoftware.com --- fs.place --- Renaissance
Custom FeatureScript and Onshape Integrated Applications0
Answers
The result is a JSON with Sheets and Views, and the sheet information includes the names of the sheets.
https://onshape-public.github.io/docs/api-adv/translation/#export-a-drawing-as-a-json
Custom FeatureScript and Onshape Integrated Applications