SIMUL8 logo


Custom dialogs allow SIMUL8 to be tailored to the specific needs of a business.

They can appear as normal dialogs or as “Wizards” in a series.

Custom dialogs can appear when Components are clicked (replacing their properties dialogs), as new menu items on the SIMUL8 menu bar, when simulations or templates for simulations are opened, or at any time driven by Visual Logic.

Custom dialogs can display SIMUL8 information store data and allow information store data to be changed by the user. This makes it very easy for someone to use simulation on a daily basis without any understanding of how to build simulations (and without the simulation builder having to use external packages like Visual Basic or EXCEL).

To create a custom dialog that allows the user to change a Global Data Item called Machine Speed (that can then be used anywhere in the simulation)

  • Select custom dialogs from the Insert tab
  • Click NEW to create a new empty dialog. This opens up the dialog editor

The Main tab is used for controlling the look and title of the Custom Dialog, and when the Show as Wizard option is set a picture file can be inserted.

  • Select the Controls tab, click the TITLE button and enter text saying “What is the Machine Speed?”
  • Click the DATA FIELD button and enter the name of a Global Data Item (for example,Machine Speed). (Alternatively you can click the button to the right of the Global Data Item field to open the formula editor so you can select a Global data item from the list.)
  • Click OK back to the main menu and choose custom menus from the Insert tab to add this dialog to the main menu using Menu Setup,

You can set the Custom Dialog to check the validity of any numeric entry by checking the Must be Number checkbox and entering Minimum and Maximum acceptable values.

Using Variables in Text

If you want to add descriptive text to your dialog but want to reference a variable value in the text, then if you place the variable name in curly brackets, SIMUL8 will put in the variable value when the dialog is displayed.

For example if you want to get the simulation time you would enter:

  The time is {simulation time}

And at time zero the dialog would display as below.

See Also