question

Sebastian Lang avatar image
0 Likes"
Sebastian Lang asked Ben Wilson answered

Is there a command to change the focus from GUI view to model view?

Hi,

I am facing the following problem: I've build a GUI with some buttons. Every button has a script, which should be executed after pressing the corresponding button. I just noticed that each script will be only executed after pressing the button and after clicking on the model view. More precisely, it seems to be necessary that I loose the focus of the GUI and focus instead the model to execute the script.

So my questions are:

1) Is there a command to change the focus from GUI to model view (and also back from model view to GUI)?

Or

2) Is there a way to execute the scripts correctly without changing the focus?

Thanks in advance and nice regards!

Sebastian

FlexSim 17.0.2
guiscripting
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

·
Sebastian Lang avatar image
1 Like"
Sebastian Lang answered

Ok, I just found the solution by myself. The command

 repaintall();

refreshs the model view immediately

5 |100000

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

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.