Updating Behavior Ports and Interfaces

You can update behavior ports and interfaces from the corresponding function or logical component, both the content and the display.

Note: The synchronization between the function or logical component and the behavior is mostly automatic, but in some cases automatic synchronisation might not be wanted. The following changes using standard commands in the function or logical component are not automatically synchronized with the behavior:
  • Changing instance names of ports or interfaces
  • Renaming ports or interfaces
  • Editing extends of ports or interfaces
  • Modifying extensions of ports or interfaces
  • Modifying default layout of ports or interfaces (for example moving them).
In such cases you must update yourself if the changes should also be in the behavior.

This task shows you how to:


Before you begin: In the 2D graph, on a function or a logical component having at least one behavior, click the behavior list icon in the lower right to display the behaviors. The behaviors of the function or logical component are displayed.

Update Ports and Interfaces (Content)

You can update the ports and interfaces of a Dymola or Context behavior from the corresponding function or logical component.

Right-click the behavior name (for example MainModel in the figure above) and select Update Inferfaces .
The ports and interfaces are updated from the corresponding function or logical component.

If the ports are placed in the diagram view, their positions are retrieved from the schematic symbol. If multiple symbols are defined, the first symbol is be used.

Update Ports and Interfaces (Display)

You can update the layout of ports and interfaces of a Dymola or Context behavior from the corresponding function or logical component.

Tip: You can also use this command to improve the display of the behavior if it contains many ports or interfaces.

The command resizes the icon and diagram of the MainModel of the behavior to fit to the ports and interfaces if needed.

Note: No resize is performed if you have manually changed the graphical properties for the MainModel.

Right-click the behavior name (for example MainModel in the figure above) and select Update Inferfaces Layout .
The layout of ports and interfaces are updated from the corresponding function or logical component.

If the ports are placed in the diagram view, their positions are retrieved from the schematic symbol. If multiple symbols are defined, the first symbol is be used.