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.
APIs for drawings
MBartlett21
Member, OS Professional, Developers Posts: 2,039 ✭✭✭✭✭
Is there a way to use the Onshape API with drawings (export to pdf, create drawings, etc.)
Tagged:
1
Best Answers
-
lougallo Member, Moderator, Onshape Employees, Developers, csevp Posts: 2,005Not yet. It is in the plan but not yet released.Lou Gallo / PD/UX - Support - Community / Onshape, Inc.5
-
MBartlett21 Member, OS Professional, Developers Posts: 2,039 ✭✭✭✭✭@lougallo
Thank you for the API for exporting drawings!1 -
mthiesmeyer Onshape Employees Posts: 115Hi @mbartlett21,
You can specify the name of the exported file with the `destinationName` field in your POST parameters.
Best,
Mike6 -
mthiesmeyer Onshape Employees Posts: 115@mbartlett21,
1.) You can specify the extension in the name or you can let it be generated automatically based on the specified format.
2.) You can control outputted pdf text style using the `selectablePdfText` boolean POST parameter. It looks like that parameter and `destinationName` managed to escape our documentation, I have written a bug for this.
The lack of views appears to be a bug, could you please file a support ticket?
Best,
Mike
5 -
mthiesmeyer Onshape Employees Posts: 115@mbartlett21
I appear to have gotten ahead of myself and forgot which version we are running on production
You can control the pdf text output with the 'textAsGeometry' parameter, where:
true = non-selectable text
false = selectable text5
Answers
Thank you for the API for exporting drawings!
IR for AS/NZS 1100
Is there any way to specify the name of the export?
IR for AS/NZS 1100
You can specify the name of the exported file with the `destinationName` field in your POST parameters.
Best,
Mike
Do I specify the extension in the name, or will it be added automatically?
Also: It seems the documentation for this is missing.
IR for AS/NZS 1100
For some reason, exporting from the API makes the font different and selectable and there are no views:
The document is at https://cad.onshape.com/documents/ef81aa710b1f54522a53efef/w/bc41a65ea8d6dd5707c4488e/e/a2a29141b6db443f476ca508
Is there an option to disable text selection through the API?
IR for AS/NZS 1100
1.) You can specify the extension in the name or you can let it be generated automatically based on the specified format.
2.) You can control outputted pdf text style using the `selectablePdfText` boolean POST parameter. It looks like that parameter and `destinationName` managed to escape our documentation, I have written a bug for this.
The lack of views appears to be a bug, could you please file a support ticket?
Best,
Mike
Done: request no 147339
IR for AS/NZS 1100
The `selectablePdfText` parameter doesn't seem to work :-(
IR for AS/NZS 1100
I appear to have gotten ahead of myself and forgot which version we are running on production
You can control the pdf text output with the 'textAsGeometry' parameter, where:
true = non-selectable text
false = selectable text