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.
API call that includes info on if a part is sheet metal or not
shawn_crocker
Member, OS Professional Posts: 865 PRO
in General
I have tried using the body details end point and metadata but I am not seeing anything in those that I can use to definitively gate a yes or no if it is sheet metal. Anyone know if there is a way to do this without relying on putting information into part properties?
Tagged:
0
Best Answer
-
Caden_Armstrong Member Posts: 164 PROYou can do it with the /parts/d/{did}/{wvm}/wvmid} endpoint with the url param for includeFlatParts=true
Flat parts will be "isFlattenedBody" set to true.
They will also have a property "unflattenedPartId" which corresponds to the part id for the folded part.www.smartbenchsoftware.com --- fs.place --- Renaissance
Custom FeatureScript and Onshape Integrated Applications1
Answers
/partstudios/d/{did}/{wvm}/{wvmid}/e/{eid}/featurescript
and in the FS evaluate qActiveSheetMetalFilter with the parts in question.
Flat parts will be "isFlattenedBody" set to true.
They will also have a property "unflattenedPartId" which corresponds to the part id for the folded part.
Custom FeatureScript and Onshape Integrated Applications
Ah yes. Thanks. That will give enough info for a solid if statment.