2021.11

8.3 Workflows and Toolbars

Cubit provides users with the ability to create custom tool buttons. These custom buttons launch pre-defined journal or Python scripts.

8.3.1 Importing an Existing Toolbar

Figure 494:

Figure 495:

  • Select Import from the context menu

Figure 496:

From this dialog a user may import an entire package containing multiple toolbars or a single toolbar. In this example we will import an entire package containing multiple toolbars.

Figure 497:

  • Select finish to complete the import.

Figure 498:

  • Select OK to finish the import

The new toolbar and buttons will be displayed as the last toolbar on the GUI. It is a docking window so it can be moved and placed anywhere on the GUI.

8.3.2 Creating a New Toolbar

Figure 499:

  • Press the add button

  • Name the new toolbar and press OK

Figure 500:

  • Press the add button in the Buttons area

Figure 501:

A user may define 4 different types of toolbar buttons:

8.3.2.1 Creating a Command Panel Button

A Command Panel Button enables users to launch a command panel with the push of a button. A command panel button can be defined one of three ways:

8.3.2.1.1 Use the definition dialog

Figure 502:

To find the Command Panel ID:

Figure 503:

8.3.2.1.2 
8.3.2.1.3 Use the context menu on a command panel

Figure 504:

8.3.2.1.4 Drag a command panel onto the toolbar

Figure 505:

  • The resulting toolbar looks like the following.

Figure 506:

All command panels include a context menu which can be accessed by clicking on an empty place in the command panel and using the mouse to show a context menu.

8.3.2.2 Creating a Journal File Button

A Journal File Button will launch a journal file when pressed. The journal file may reside anywhere on the file system. A journal file button is defined by:

Figure 507:

8.3.2.3 Creating a Python Script Button

Figure 508:

8.3.2.4 Creating a Basic Tool Button

The "Basic" tool button has been available to Cubit users for many years. It contains a set of commands that execute when the user presses the button.

Figure 509:

8.3.2.5 Modifying an Existing Toolbar

Figure 510:

8.3.3 Exporting a Toolbar

A user may want to share a toolbar, or a set of toolbars, with another user. This is easily accomplished.

Figure 511:

Figure 512:

  • In the next dialog, select the toolbars to be included in the export

  • Click Next on the dialog

Figure 513:

  • Optionally add files or folders that contain journal files or Python scripts referenced by tool buttons.

  • Click Finish in the dialog

  • Look for the .tar.gz file in the designated folder

Figure 514: