Paul Toone avatar image
Paul Toone posted

Graphical User Interfaces Reference   

For information on using the Graphical User Interface, see the Example page.

GUI Builder Menu

The GUI builder's edit menu allows you to do several operations with the GUI once you have created it.

Redirect Selected Objects to this GUI - This option will redirect the guifocusclass attribute of every selected object in the model to point to this GUI. To illustrate this, explore the model tree, and find the operator that you redirected to the GUI you created. Expand its attribute tree and the expand the node named "special". Inside of special there should be a node named guifocusclass. This node's text specifies a path to a window that will be opened when the object is double clicked on.

Notice that the path for this attribute is "MAIN:/project/model/Tools/GUIs/GUI 1". This is where our GUI is stored. When we selected the redirect option, it changed this path from the Operator's normal Properties page to our page.

Copy this GUI into Selected Objects - This option will create a complete copy of the GUI and store it inside of each selected object. To show exactly how this works, let's do it for the GUI we created in our example. Go back into the toolbox and open the GUI builder and GUI canvas for the GUI you've built. Then, with our original operator still selected, select the menu option: Edit > Copy this GUI into Selected Objects. Now go back into the model tree view and look at what was done with the operator's guifocusclass attribute.

Now the guifocusclass attribute has been changed to ">special/guifocusclass/GUI 1". Also, a copy of the entire GUI that we created has been copied into the guifocusclass attribute.

Although you will not need to use the "Copy this GUI into Selected Objects" option if you are just using this GUI for this model, it is useful for portability purposes. Once you have created this GUI and copied it into the object, you can add the object to a user library, and then drag it into other models, and the GUI will be created with it.

Add GUI to User Library - This option will add the GUI to the selected user library in the library icon grid. For more information on user libraries, refer to the user library documentation.

Assign this GUI to the "Control" button - This option causes the "Control" button on FlexSim's main toolbar to open this GUI when it is pressed. This button is called the Model Control GUI button. Its exclusive purpose is to allow model builders to define custom GUIs for controlling models and their properties without having to change FlexSim's view tree. If this button is no longer available, you may add it to your user toolbar through the Global Preferences Window.

Default GUIs - This sub-menu lets you also edit how other buttons on FlexSim's main toolbar operates. The 3D View button on the toolbar can be customized to open custom GUIs that you have created. By selecting "Make this GUI the Default 3D View GUI" you can cause the 3D View buttons on the main toolbar to open your GUI. Select "Reset Default 3D View GUI to Original" to cause the 3D View buttons to revert back to their original GUIs. Note that making a custom GUI for the 3D View buttons only applies to the model you are editing. When you open another model, the 3D View buttons will reset to the original default view.

Grid - This sub-menu lets you set whether the GUI canvas snaps to grid and what that grid size is.

flexsim users manualusers manual
5 |100000

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



paul.t contributed to this article


FlexSim 2016.1