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.
Display of enum for feature type in custom features
lemon1324
Member, Developers Posts: 225 EDU
Is it possible to get a feature-type enum to display as "tabs" rather than a drop-down like it does for the native boolean operation?
I was able to do this in a custom feature if I declared a BooleanOperationType enum and imported onshape/std/booleanoperationtype.gen.fs at the top, but not if I defined my own operation type enum. In both cases it was the first enum in the feature definition and as far as I can tell I had equivalent code. I didn't see anything in the documentation either. What am I missing?
I was able to do this in a custom feature if I declared a BooleanOperationType enum and imported onshape/std/booleanoperationtype.gen.fs at the top, but not if I defined my own operation type enum. In both cases it was the first enum in the feature definition and as far as I can tell I had equivalent code. I didn't see anything in the documentation either. What am I missing?
Arul Suresh
PhD, Mechanical Engineering, Stanford University
PhD, Mechanical Engineering, Stanford University
Tagged:
0
Best Answer
-
kevin_o_toole_1 Onshape Employees, Developers, HDM Posts: 565Yes, currently BooleanOperationType, NewBodyOperationType, and a few other enums are special-cased in our UI to behave this way. It's not a style that can be applied to any enum (for now). This isn't a totally trivial change since those enums' text is specially designed to fit on one row, and we need to figure out how to keep the dialog looking clean if and when that text overflows.
5
Answers