Composing Models

You can create instances of Modelica classes in a target model from the diagram view and connect these instances. You can move these instances and connections to adjust the diagram layout.


Before you begin: Create an assessment template. For more information, see Managing Assessment Templates.
See Also
Search a Class
Composition Mode Context Menus
About Model Specification
  1. From the Design section of the action bar, click Composition Mode .
    The tree displays the Modelica Packages Browser.
  2. To add a Modelica library to the browser, drag the library from 3DSearch into the browser.

    Tip: You can click in the class browser to search the libraries.

  3. To add a component to the diagram, drag it from the browser into the work area.
    The class appears as a component instance in the diagram.
    Note: The components that cannot be edited or moved are surrounded by a red square when you hover over them. Similarly, the rest of the components are surrounded by a blue square.
  4. To create a connection, drag a component connector onto another connector.
  5. To move a component in the work area, drag the component to the desired location.

    Tip: You can rotate or flip the components. The connections are automatically updated to account for the changed layout.

  6. To move a connection, select the connection and drag its control points to another location.

    Note: You cannot move the components and connections inherited from a parent class.