Item and Item / Button
Use an Item () node to customize a context menu or toolbar of the physics interface. This node adds a menu item that a user can select to perform a certain task. It is also available under Definitions Library>Auxiliary Definitions as an Item / Button node () with identical settings, which can be linked to from Item or Button nodes.
Right-click a Menu, Context Menu, or Toolbar node to add an Item node.
You can right-click the Item node to add an Activation Condition or Input Dependency subnode and the Item / Button node to add an Input Dependency subnode.
The Settings window includes the following sections:
Parameters
This section is only available in Item / Button nodes defined under Definitions Library>Auxiliary Definitions.
In this section, add parameters to the table with a Name, Description, and Default expression. With the parameters, you can parameterize the link that linked to this node. For example, the Item Link can link to an Item / Button node, but they can use different titles and icons. Select the Ready only check box to prevent editing of the expression in the Item Link node.
Command
Select a Command type: Create feature (the default), Internal action tag, or Command handler from code editor.
Use Create feature to place the action to add a new feature under a different menu than the one chosen by the program. Enter the type of feature in the Type field. Select the Restrict to geometric entity levels check box to restrict the menu item. If the feature is applicable to other entity levels than those restricted here, it displays in its default location in the context menu or toolbar.
Use Internal action tag to add a general action given by its tag that you type in the Action tag field. This option is mainly for internal use, and there is no list of available action tags.
The Command handler from code editor is similar to the Internal action tag option, but the action handler can be defined using the Code Editor.
The remaining two sections are only available if the Command type list is set to Command handler from code editor.
Definition
Enter a title of the item in the Title field and an icon file in the Icon field (or click Browse to pick an icon file from the file system).
If the Item node is a subnode under a Context Menu node where a weighting order is used, enter an integer in the Weight field to sort the items based on a weight.
Condition to Run
Select the Show confirmation dialog check box if you want to display a confirmation dialog box as a preaction for the item’s action. Type a message for the confirmation dialog box in the Message field and a confirmation answer in the Answer field (default: Yes). The confirmation dialog box also contains a Cancel button by default. You can use this functionality to ask for confirmation before performing the action.