Is it possible to assign a Custom GUI to all instance objects of a basicFR ?

Is it possible to assign a Custom GUI to all instance objects of a basicFR ?

sebastien_b49
Advocate Advocate
11 Views
2 Replies
Message 1 of 3

Is it possible to assign a Custom GUI to all instance objects of a basicFR ?

sebastien_b49
Advocate
Advocate

[ FlexSim 19.0.0 ]

Hi !

With the custom GUI I am building, I would like it to be linked with all instances of one object that I defined in my library. I tried going to the "Edit instance object" of my user defined basicFR (Processor in my attached model) and then selecting "Redirect selected objects to this GUI" but it is not working and I do not want to have to do it with each and every machine I dropped in the model.

Is there a way to achieve this with FLexSim ?

Please find attached a test model.

test-gui-instance.fsm

Best regards,

0 Likes
Accepted solutions (1)
12 Views
2 Replies
Replies (2)
Message 2 of 3

MBJEBZSRG
Advocate
Advocate
Accepted solution

Hi Sebastian,

I tested this, and it appears you are right. You can't redirect a custom GUI to an instance object using the options in the GUI builder, I'll bring this to Flexsim's attention. Luckily we can cheat 😉

In the GUI editor, right click the top node that has the name of your GUI ( in this case GUI 1) and select copy to copy a reference to your GUI.

Image.png

Now go to your instance object view, and right click the processor. Select 'Explore Tree'. This will open a tree view of your processor instance.

Image.png

In the tree view, navigate to 'Processor->special->guifocusclass' node and select it to see the text on the right. Delete the current path reference to 'VIEW:/pages/ProcessorParameters' and use Ctrl+V to paste in the reference to your own GUI that you copied in step1.

Image.png

Now when you drag in a processor from the Process Flow section of the Standard Library in the perspective view and double click it, your custom GUI will open instead of the standard parameters GUI.

I hope this solves your problem.

Best regards
Martin
FlexSim Nordic

Message 3 of 3

sebastien_b49
Advocate
Advocate

Thank you very much for your clear and detailed answer. It works perfectly !

0 Likes