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.
I am using translation to export partStudio to STL but unit millimeter not working ?
momin_raza
Member Posts: 8 ✭
This is my payload.
{
formatName: "STL",
storeInDocument: false,
specifyUnits: true,
unit: "millimeter",
resolution: "fine",
chordTolerance: 0.06,
angularTolerance: 0.04,
maximumChordLength: 0.1,
flatten: true,
flattenAssemblies: true,
scale: "1.0",
useYAxisAsUp: true,
excludeHiddenEntities: true,
distanceTolerance: 0.06
}
I'm getting an error when opening the stl exported file in Orca Slicer it's not in millimeters.
Best Answer
-
Caden_Armstrong
Member Posts: 393 PRO
Should be able to, generally anything documented is allowed:
https://cad.onshape.com/glassworks/explorer/#/Document/export2Jsonwww.smartbenchsoftware.com --- Renaissance --- fs.place
Experts in Onshape Automation - Custom Features and Integrated Applications0
Answers
the field is "units" not "unit"
Experts in Onshape Automation - Custom Features and Integrated Applications
@Caden_Armstrong field units also not working in the API explores its unit.
API explorer part studio create translation
In the screenshot, you can see its unit but units also do not work for me.
Thanks
its not work with units as well.
in API Explorer it's unit, not units.
I was looking at the /api/documents/…/export endpoint.
That endpoint can support "units", and typically I use it over the /translations endpoint.
Experts in Onshape Automation - Custom Features and Integrated Applications
Caden can we use that end point using the OAuth2 Access token?
@Caden_Armstrong thank you can we use document export end point with OAuth2 Access token ?
Should be able to, generally anything documented is allowed:
https://cad.onshape.com/glassworks/explorer/#/Document/export2Json
Experts in Onshape Automation - Custom Features and Integrated Applications
@Caden_Armstrong thanks works