How to delete GUI instances?

How to delete GUI instances?

london_mt
Not applicable
1,102 Views
10 Replies
Message 1 of 11

How to delete GUI instances?

london_mt
Not applicable

[ FlexSim 18.2.3 ]

I have a GUI in Model/Tools/GUIs/GUI 1.

I want to delete this GUI.

How do I do this?

Thank you,

Jarek

0 Likes
Accepted solutions (1)
1,103 Views
10 Replies
Replies (10)
Message 2 of 11

SCHamoen
Advisor
Advisor

@London MT If you go to toolbox, find the gui and do a right click, can't you just delete it?

16683-deletegui.png

Message 3 of 11

london_mt
Not applicable

Hi @steven.hamoen,

The toolbox of my model doesn't add the Graphical User Interfaces in the navigation tree. I only have a GUI in the Modeltree:

16684-capture-flexsimforum.png

I also can't go back to the GUI builder once I close the GUI.

When I create a new model and I make a GUI, it does appear in the Toolbox just like in your picture.

Cheers

Jarek

0 Likes
Message 4 of 11

SCHamoen
Advisor
Advisor

@London MT Hi Jarek, can't you simply right click on the node and delete it?

Message 5 of 11

london_mt
Not applicable

@steven.hamoen ,

I can click on the folder "GUIs" and delete it, but then I delete all my GUIs. If I right-click on the node it doesn't do anything. So I cannot delete that one specific GUI.

cheers,

Jarek

0 Likes
Message 6 of 11

SCHamoen
Advisor
Advisor

@London MT Ok so that node is corrupt one way or the other. Have you tried to select it as so() and then use the command: clearcontents to delete the content nodes first and then finally delete the last GUI 1 node. Or delete the content nodes 1 by 1?

Message 7 of 11

london_mt
Not applicable

@steven.hamoen,

When I select the node GUI 1, and I return so() in the script console, it returns a <no path>.

So I cannot use clearcontents because of that.

Cheers

Jarek

0 Likes
Message 8 of 11

SCHamoen
Advisor
Advisor

@London MT Have you first designated that node as so()? See this picture:

16687-setasso.png

0 Likes
Message 9 of 11

london_mt
Not applicable

@steven.hamoen

Sorry I have accidentally selected the node and not "designated" it.... I cannot designate it from OnRightClick because no menu drops down.

0 Likes
Message 10 of 11

SCHamoen
Advisor
Advisor

@London MT if you select the node and press Ctrl + C if you then go to a script window and press Ctrl + V do you get the path to the node? If yes you could try the following script:

treenode theGUI = node("the path you get from the Ctrl + V", model() );
clearcontents( theGUI );
Message 11 of 11

london_mt
Not applicable
Accepted solution

On another machine the GUI builder was performing without issues. The issue only exist on my machine within this model.

The workaround this issue was to open the model on a different machine, create the GUI, save the model and send it back to my machine. If this problem turns up in the future I will contact Flexsim support again.

Thanks,

Jarek

0 Likes