Moving a Class

From the Package Browser, you can re-organize classes inside a package, or you can move a class from a package to another one.

Note that you cannot move a class from or to top-level (a library cannot be moved to become a sub-package, for example).

Related Topics
About Modelica Classes
  1. From the Package Browser, right-click a class to open the contextual menu.

  2. From the contextual menu, select your model > Move.

    The Move Modelica Class dialog box appears.

  3. Select the convenient position:

    • Insert in
    • Insert after
    • Insert before

  4. From the Package Browser, select the new location.

  5. Click OK to validate your modification.

    The class is moved in the Package Browser.