TypeDesigner

The TypeDesigner is the in SimulationX integrated editor for the definition of user defined library elements. The TypeDesigner offers access to the complete range of possibilities for modeling and programming in SimulationX and the object-orientated modeling language Modelica®.

The TypeDesigner assists the user during the creation and the development for all kinds of standardized Modelica® classes:

  • Model (type)
  • Connector
  • Record
  • Block
  • Function
  • Package

The following steps explain how to start the TypeDesigner. After that an example describes the definition of a type.

New types can be created in different ways:

  1. Creation of new types
  2. Extension of existing types (see Customizing Base Types (Inheritance))
  3. Creation of composed types (see Compounding Sub-models)

The TypeDesigner can be started within SimulationX wherever a new type can be created or an existing type can be modified (Please also refer to chapter "Getting Started").

  • Library bar: In the tree view use the right mouse button and click SimulationX or a lower-level package. Select "New""Model" in the context menu to create a global type.
  • Model Explorer: In the tree view on page Types use the right mouse button to click on the root entry. Select "New Model ..." in the context menu to create a local type
  • Ribbon menu: In the Start or Modeling tab, click on Compound Type or Extend Type. The former requires multiple elements to be selected, the latter only one.
  • Library bar: In the tree view use the right mouse button and click on an existing type (SimulationX library or other global types). Select Extension in the context menu to create a global type.
  • Model Explorer: In the tree view on page Types use the right mouse button to click on an existing type. Select Extension in the context menu to create a local type.
  • Library bar or Model Explorer: Use the right mouse button to click on an existing type and select OpenTypedesigner in the context menu. Double click on a type also opens the TypeDesigner.

The assignment of the new type (global or local) can be changed at any time.

The TypeDesigner is intended to edit the content of the type. To change the structure it is necessary to open the type via "Open" in the context menu. 

Figure 1: View "TypeDesigner"