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.
Is it possible to limit the BoundingType enum options for an extrude?
Aaron_Hoover
Member Posts: 35 EDU
One joint I'm working on is essentially a miter with a double dovetail or butterfly key that holds it together. The key is extruded and Boolean subtracted from the two parts that form the miter corner. I'd like to limit the extrude options to just 'Blind' and "Up to Face' ('Up to Next' is doing a weird thing where only half of the key, on one side of the miter joint gets extruded.) I'd like to limit the dropdown in the UI to only include those two options. Is there an easy way to do this?
Tagged:
0
Best Answers
-
NeilCooke Moderator, Onshape Employees Posts: 5,683Yes - just create your own enum and use that:
export enum myBoundingType<br>{<br> annotation {"Name" : "Blind"}<br> BLIND,<br> annotation {"Name" : "Up to face"}<br> UP_TO_SURFACE<br>}
Senior Director, Technical Services, EMEAI6 -
ilya_baran Onshape Employees, Developers, HDM Posts: 1,212Note that since the enum values match those in BoundingType, if you need to pass your bounding type to for instance, opExtrude, you can convert directly to BoundingType using as:
definition.myBounds as BoundingType
Ilya Baran \ VP, Architecture and FeatureScript \ Onshape Inc6
Answers