Showing Class Definition

You can display the definition of a class, that is, the source class from which a component has been instantiated.


Before you begin:

  • Create a behavior representation (either a behavior library or a functional or logical behavior). In this scenario, create a Modelica library with a model MyExamples.
  • From the Modelica Standard Library, instantiate DoublePendulum from Modelica.Mechanics.MultiBody.Example.Elementary.
  • (If you have created a behavior, activate the behavior containing the instantiated DoublePendulum.)
  • From the Component Browser, to see the components in the model, expand doublePendulum.

See Also
Context Toolbars
Selecting a Component
  1. From the Component Browser or the diagram, select the doublePendulum component.


  2. From the context toolbar, click Show Class Definition .

    Tip: You can also select Show Class Definition from the context menu of a component (either from the Component Browser or from the 2D diagram).

    The doublePendulum class definition is now active, it appears from the Component Browser and the diagram layer.

Important: When you modify a class definition, all its instances inherit the modification. To modify only one instance, see Showing Components.