question

Martin K5 avatar image
0 Likes"
Martin K5 asked Martin K5 commented

Is it possible to deactivate selection in Dashboard?

Hi,

I would like to ask if it is possible to deactivate selected object in dasboard?

I am reffering to this thread: How to refresh GUI window? - FlexSim Community where I wanted to refresh GUI class object in dashboard to see some applied changes.

The question is that when I run the recommended code the changes are updated but the GUI object is "selected" and I do not know how to deselect it. The model is attached in the accepted answer in the mentioned thread.


Would anyone know?


Thank you,

Martin

FlexSim 23.0.0
codeguiactivateselect objectdeactivate
· 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.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Martin K5, was Jason Lightfoot'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 comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Jason Lightfoot avatar image
1 Like"
Jason Lightfoot answered Martin K5 commented

Try adding:

function_s(dash,"hideSizers");
· 5
5 |100000

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

Martin K5 avatar image Martin K5 commented ·
I have tried to add this command but it does not help to solve the issue. Have you also tried that?


Thank you,


Martin

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦ Martin K5 commented ·

Yes it worked for me - can you upload your current model and script?

0 Likes 0 ·
Martin K5 avatar image Martin K5 Jason Lightfoot ♦ commented ·

Yes, of course. Here is the model. You can change the color in treenode and then run the script.

colorgt-demo-jk.fsm

0 Likes 0 ·
colorgt-demo-jk.fsm (26.7 KiB)
Show more comments

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.