Creating and Editing Behavior Tags

You can create and edit behavior tags.


Before you begin: Open a model with one or several behaviors.
Important: Behavior tags are only supported for Dymola behaviors, Context behaviors, and FMI behaviors. Logical-Physical models do not support behavior tags.
See Also
Selecting a Behavior in a Multi-Behavior Model
  1. Open the logical component or function that contains the behaviors where tags should be added or edited.

    You can do that by double-clicking the logical component or function in the tree.

  2. From the Behavior section of the action bar, click Edit Behavior Tags .
    The Tags Behavior Edition dialog box appears. It displays the structure of the selected logical component or function, including the behaviors.
    Notes:
    • In the FL Structure column, you can expand nodes down to single behaviors.
      Tips:
      • You can filter the result using the Hide inactive node hierarchy and Hide branches without behavior options.
      • You can right-click any node and select any of Center tree , Collapse All, and Expand All to control the display of that node.
    • A single behavior line displays both the representation reference and the behavior name, to compress the dialog.
      Tip: For Dymola behaviors, you can right-click the behavior line and select Main Model Attributes to be able to change, for example, the name of the behavior.
    • Dymola context behaviors are presented as virtual nodes Context Behavior.
    • If any behavior tags are present, they are displayed in separate columns.
      Tip: If you have many tags, you can use the Column Manager to select what columns to display. Right-click any of the column headers and select Open Column Manager .
      • To display a selection of columns, select the columns by pressing Ctrl and click on the column names, and then click Show Selection.
      • To hide a selection of columns, select the columns like above, and then click Hide Selection.
      • As an alternative, you can, in the Column Manager, show or hide columns by clicking the checkbox in front of the column names.
      For more information in general about working with columns, with and without the Column Manager, see Hide and Display Columns. Note that some specific columns are mentioned here that are not present in the Tags Behavior Edition dialog box.
    • If undocked, you can minimize the Tags Behavior Edition dialog box. If minimized, it is represented by an icon on the right side of the screen.
  3. To create a new tag, do the following:
    1. Click Create a new tag.
      The Change Tag Name dialog box appears.
    2. Enter the name of the new tag and click OK.

      The following applies to behavior tag names:

      • A behavior tag is a single line of free text
      • Unicode text is supported
      • Empty tags are not supported

      A new column appears with the tag name as title. In this column, a checkbox is added for each behavior. The checkbox is cleared for all behaviors.
  4. To edit a tag name, do the following:
    1. Right-click the tag name column header, and select Change tag name .
    2. Change the name and click OK.
    The tag name is changed for all behaviors that have this tag. If the tag is changed to an already existing tag name, the corresponding behaviors are merged into the column of the existing tag name.
  5. To delete a tag, right-click the tag name column header, and select Delete tag .
    The column disappears, and the tag is deleted from all behaviors.
  6. To add a tag to a behavior, in the tag name column, activate the corresponding tag by clicking the empty checkbox .

    The tag is acticated, indicated by .

    Notes:
    • You can select to add the tag to several behaviors
    • A behavior can have several different tags
    • If you have created a tag and do not add it to a behavior, the tag disappears when you close the dialog.

  7. To remove a tag from a behavior, in the tag name column, deactivate the corresponding tag by clicking the activated checkbox .

    The tag is deacticated, indicated by .

    Note: If you remove a tag from all behaviors, this tag, and the corresponding column, is removed when you close the dialog box.

The following is the result:

  • The editing of the behavior tags is applied immediately.
  • The tags are saved under the corresponding behaviors when the model is saved.