question

Sebastien avatar image
0 Likes"
Sebastien asked Sebastien commented

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

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,

FlexSim 19.0.0
custom guiobject instance
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

·
martin.j avatar image
1 Like"
martin.j answered Sebastien commented

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.

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.

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.

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


gui1.jpg (60.1 KiB)
gui2.jpg (68.6 KiB)
gui3.jpg (41.6 KiB)
· 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.

Sebastien avatar image Sebastien commented ·

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

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.