question

Tomi Kosunen avatar image
0 Likes"
Tomi Kosunen asked Tomi Kosunen commented

How to check if object is visible or not?

Object shape can be set to in/visible with command switch_hideshape(object, 1); How can I check, if the object is visible or invisible? It must be somewhere in the tree, but I cannot find it.

FlexSim 21.2.4
switch_hideshape
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

·
José Antonio MD avatar image
1 Like"
José Antonio MD answered Tomi Kosunen commented

Hello @Tomi Kosunen,

You can use "switch_hideshape(object ,-1)". This function returns a value 1 if the object is invisible and 0 if it is visible.

I hope I have been helpful.


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

Tomi Kosunen avatar image Tomi Kosunen commented ·

Thanks @José Antonio MD I should read the manual more carefully.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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