Replacing a Component Class

You can replace the class of a top-level component.

Related Topics
Editing Class Attributes
About Modelica Components
  1. From the Component Browser, right-click a top-level component to display the contextual menu.

  2. Select Replace Class from the contextual menu.

    The Replace Class dialog box appears.

  3. Click in the Class field to activate it.

  4. Select another class from the Package Browser.

    In our scenario, we select Mechanics.Multibody.Examples.Systems.RobotR3.Components.Controller.

  5. Click OK to close the Replace Class dialog box.

    A message informs you if any connections and modifiers must be removed when changing the component class.

  6. Click OK to validate your modification.

    The class is replaced in the diagram layer.