Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:
  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. 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.

UI hint for collapsing booleans

jelte_steur814jelte_steur814 Member Posts: 186 PRO
In the native Extrude feature, there are these boolean annotations with a blank 'group' arrow in front of it. when the boolean is selected, the 'group' expands.

What UIHint can I use to get that same behaviour? when I group parameters, there is always a group name taking up a line and when collapsed, hiding the first boolean.

Comments

  • EvanReeseEvanReese Member, Mentor Posts: 2,144 ✭✭✭✭✭
    edited May 30
    It's not a UIHint. It's a "driving parameter" field. Look here for the info. https://cad.onshape.com/FsDoc/uispec.html

    annotation { "Name" : "Additional Options" }
    definition.additionalOptions is boolean;
    
    if (definition.additionalOptions)
    {
        annotation { "Group Name" : "Options", "Collapsed By Default" : false, "Driving Parameter" : "additionalOptions" }
        {
            annotation { "Name" : "Option" }
            definition.option is string;
        }
    }

    Evan Reese
  • jelte_steur814jelte_steur814 Member Posts: 186 PRO
    edited June 3
    Thanks @Evan_Reese. Got it to work

Sign In or Register to comment.