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.
REST API - Exporting to STEP works, but exporting to OBJ does not
Hello there ! π
I'm trying to export my sheet metal part using the REST API, exporting it to a STEP file works fine using the following method :
β’ Initiate the exporting procedure using /api/v6/assemblies/d/{}/w/{}/e/{}/translations
and payload = { "allowFaultyParts": True, "angularTolerance": 0.001, "formatName": "STEP", "storeInDocument": True, }
β’ Wait for the /api/v8/translations/{requestId} requestState to be DONE
β’ Download the STEP using /api/v8/translations/{requestId}
It works great, but now changing ββformatNameββ to ββOBJββ gives me the following error "Invalid resolution parameters were specified"
What changes to the payload should I make to make it work with OBJ ?
Thank you in advance !
Best Answer
-
Each file format requires different inputs. Same as the user interface shows different options.
For OBJ Files you need to include resolution="fine". other values are "coarse","medium", and then I think you can do custom with some other additional properties such as distanceTolerance, maximumChordLength, angular tolerance.www.smartbenchsoftware.com ---Β RenaissanceΒ --- KestrelΒ -- SmartLink
Experts in Onshape Automation - Custom Features and Integrated Applications1
Answers
-
Each file format requires different inputs. Same as the user interface shows different options.
For OBJ Files you need to include resolution="fine". other values are "coarse","medium", and then I think you can do custom with some other additional properties such as distanceTolerance, maximumChordLength, angular tolerance.www.smartbenchsoftware.com ---Β RenaissanceΒ --- KestrelΒ -- SmartLink
Experts in Onshape Automation - Custom Features and Integrated Applications1 -
Indeed, after adding the resolution paramater, it works perfectly, thank you so much ! π
0
