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.

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:

  1. 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.