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. For synchronization, see also Functional & Logical Design User´s Guide: Managing Behaviors in Functions and Logical Components: Working with Dymola Behaviors and Context Behaviors: Synchronizing and Updating Ports and Interfaces: Synchronizing the Mapping of Behavior Ports and Interfaces.

This task shows you how to:


Before you begin: Open a Dymola or Context behavior. For how to open a Dymola or Context behavior from the Functional & Logical Design app, see Functional & Logical Design User´s Guide: Managing Behaviors in Functions and Logical Components: Inserting a Behavior in an Existing Function or Logical Component.

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.

In the Package Browser, right-click MainModel and select MainModel (path) object > Update Interfaces .
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.

In the Package Browser, right-click MainModel and select MainModel (path) object > Update Interfaces 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.