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
PRO
Is there a way to use the Onshape API with drawings (export to pdf, create drawings, etc.)
Tagged:
1
Best Answers
-
Not yet. It is in the plan but not yet released.Lou Gallo
Sr. Director of Product Definition. UX and Support5 -
@lougallo
Thank you for the API for exporting drawings!1 -
Hi @mbartlett21,
You can specify the name of the exported file with the `destinationName` field in your POST parameters.
Best,
Mike6 -
@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 -
@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
-
Not yet. It is in the plan but not yet released.Lou Gallo
Sr. Director of Product Definition. UX and Support5 -
@lougallo
Thank you for the API for exporting drawings!1 -
@lougallo
Is there any way to specify the name of the export?0 -
Hi @mbartlett21,
You can specify the name of the exported file with the `destinationName` field in your POST parameters.
Best,
Mike6 -
@mthiesmeyer
Do I specify the extension in the name, or will it be added automatically?
Also: It seems the documentation for this is missing.
0 -
@mthiesmeyer
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?
0 -
@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 -
0
-
@mthiesmeyer
The `selectablePdfText` parameter doesn't seem to work :-(0 -
@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


