question

Steven Chen avatar image
2 Likes"
Steven Chen asked Steven Chen commented

Hide Toolbar

Hello,

May I ask how to hide toolbar?

For model users that only need custom GUI.

I found a related topic:

https://answers.flexsim.com/questions/45475/is-it-possible-to-create-an-executable-version-of.html

I delete these nodes in view but they recovered on restart flexsim.

FlexSim 19.1.1
hidetoolbar
toolbar.png (16.1 KiB)
· 3
5 |100000

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

Matthew Gillespie avatar image Matthew Gillespie ♦♦ commented ·

Do you want a single model to hide the toolbar? Or do you want to make a module that hides the toolbar for all models?

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel Matthew Gillespie ♦♦ commented ·
@Matthew Gillespie

please, can you attach both answers? Thank you. Regards Jörg

0 Likes 0 ·
Steven Chen avatar image Steven Chen Matthew Gillespie ♦♦ commented ·

I want to hide toolbar for all models on single PC. Currently I am trying to write script in model open trigger to delete nodes in view. I thought the model open trigger can be add as auto-install component in user library, so that every model's toolbar will be deleted on model open, sadly model open can't be in user library. Hope I don't need to dig in sdk.

0 Likes 0 ·

1 Answer

·
Matthew Gillespie avatar image
2 Likes"
Matthew Gillespie answered Steven Chen commented

Like Jordan says in the post you linked you should make an environment.

Since you want all models on a single PC to have a custom UI, you should make a module and place the module in the modules folder of the FlexSim installed on that PC. It's not too hard to do and the SDK documents the steps to do it. Here is an example module I made that you could use as is or as a starting point. Just unzip the file and place the Minimal folder in the modules folder.

minimal.zip

Alternatively, you could make an environment stored in a model like the example one I'm attaching here. The model enters its own environment using the OnModelOpen trigger. The SDK also documents how to make a model like this.

modelenvironmentexample.fsm


· 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.

Steven Chen avatar image Steven Chen commented ·

Thanks you for your module example. It saved my time a lot.

1 Like 1 ·

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.