On this page:
8.3.1 Importing an Existing Toolbar
8.3.2 Creating a New Toolbar
8.3.2.1 Creating a Command Panel Button
8.3.2.1.1 Use the definition dialog
8.3.2.1.2 Use the context menu on a command panel
8.3.2.1.3 Drag a command panel onto the toolbar
8.3.2.2 Creating a Journal File Button
8.3.2.3 Creating a Python Script Button
8.3.2.4 Creating a Basic Tool Button
8.3.2.5 Modifying an Existing Toolbar
8.3.3 Exporting a Toolbar
8.5

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 490

Figure 491

  • Select Import from the context menu

Figure 492

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 493

  • Select finish to complete the import.

Figure 494

  • 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 495

  • Press the add button

  • Name the new toolbar and press OK

Figure 496

  • Press the add button in the Buttons area

Figure 497

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 498

To find the Command Panel ID:

Figure 499

8.3.2.1.2 Use the context menu on a command panel

Figure 500

8.3.2.1.3 Drag a command panel onto the toolbar

Figure 501

  • The resulting toolbar looks like the following.

Figure 502

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 503

8.3.2.3 Creating a Python Script Button

Figure 504

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 505

8.3.2.5 Modifying an Existing Toolbar

Figure 506

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 507

Figure 508

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

  • Click Next on the dialog

Figure 509

  • 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 510