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
-
If 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 --- Renaissance --- Kestrel -- SmartLink
Experts in Onshape Automation - Custom Features and Integrated Applications0
Answers
-
If 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 --- Renaissance --- Kestrel -- SmartLink
Experts in Onshape Automation - Custom Features and Integrated Applications0 -
Thanks for the help! I found inside JSON-file all need information of drawing's sheets.
0
