-
From the
Package Browser, activate the class. In this
scenario, activate
Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.
-
From the
Behavior Authoring section of the
action bar,
click
Class Attributes
.
The
Class Attributes dialog box appears and displays
the attributes of the active class.
If there is any description associated to the class, it is
displayed in the
Description box.
-
If required, modify the class name in the Name box.
Note:
If you change the name of a Modelica library, that is, you change the name
of the root class of the library, the corresponding PLM reference and PLM
representation reference names are also changed. For more information, see
Creating a Modelica Library or Dymola Behavior Library.
-
On the
Class attributes tab, select a type from the
Class Type box. For
the purpose of this scenario, select
Type.
-
From the
Extends area, click
Switch between class and basic type selection
.
-
Select
Real as a basic type and click
Add.
The
Real basic type is added to the
Class Path list in the
Extends area.
-
Optional: From the Properties area on the Class attributes
tab, you can select if the class is to be:
- Partial
- Protected
- Replaceable
- Encapsulated
- Optional:
Click
More to display the
Dynamic typing box.
-
Select the
Graphical Preferences tab.
The options on this tab let you define the coordinate system
properties of the diagram and the icon layers. The coordinate system is
represented by a frame on both layers.
Preserve aspect ratio and
Initial scale are applied to components
instantiated from a class.
-
Enter the minimum and maximum horizontal and vertical values for
both layers to define the frame.
-
Select the
Preserve aspect ratio check box to keep the
aspect ratio when resizing a component in the diagram layer.
-
In the
Initial scale box, define the initial scale
for a component.
-
Click OK to exit the Class
Attributes dialog box and save the new class attributes.
The new component appears in the Component Browser.
|