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
-
Yes - 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, EMEA6 -
Note 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
-
Yes - 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, EMEA6 -
Note 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


