question

Steven Chen avatar image
0 Likes"
Steven Chen asked Steven Chen commented

How can we hide objects and their names simultaneously?

As we know, the show/hide feature can help us with hiding objects, but their names remain on the 3D model. Therefore, we would like to know how to hide objects and their names simultaneously.

1645458249478.png

FlexSim 22.0.1
hide and unhide objectshidehide names
1645458249478.png (101.2 KiB)
· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Steven Chen, was Regan Blackett's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·
shanice.c avatar image shanice.c commented ·

Hello@Steven Chen, may I ask do you have many objects to hide? If not many objects to be hided, maybe you could try simply uncheck both "Show name" and "Show 3D Shape". Once I need to show that object in the future, I would look for that object from Tree, and check both "Show name" and "Show 3D Shape" again.
1645758195599.png

1645758496730.png

0 Likes 0 ·
1645758195599.png (469.5 KiB)
1645758496730.png (133.2 KiB)

1 Answer

Regan Blackett avatar image
1 Like"
Regan Blackett answered Steven Chen commented

Click the code edit button for the OnPress, and scroll down to line 50 in the pick option code. Insert this:

switch_hidelabel(itemsToHide[i], !checked);

right below it. That should give you what you are looking for.

edit: the code style is inserting extra characters for a line number in my answer, do not include the "1." shown above.

· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Steven Chen avatar image Steven Chen commented ·

Thank you! It's heplhul.

0 Likes 0 ·