Drawing Primitives

You can create or modify graphical primitives to dress-up a diagram or design an icon.


Before you begin: To be able to change graphical properties, the Modelica Graphics Properties dialog box must be displayed. If it is not displayed when you start drawing, do the following:
  1. From the Diagram section of the action bar, make sure that the command Modelica Graphics Properties is activated, that is, it is framed. If not, click it to activate it.
  2. To see the dialog box, you may have to:
    1. If the dialog is minimized, click, in the right part of the screen, the icon to expand it.
    2. If the dialog is docked and not pinned, click the relevant frame of the work area and pin the dialog.
  1. Click Rectangle .
  2. Drag a rectangle.

    Tip: If you create a polygon, double-click to end the command and create a polygon.

  3. From the Filled Shapes Properties section in the Modelica Graphics Properties dialog box, select the blue color from the Fill Color option.
  4. Define the Fill Style option as Solid.


  5. From the Diagram section of the action bar, click Text .
  6. Drag the bounding box of the text.
  7. Change the text in the Content box to the text you want.
  8. Select the font size of the text from the Font size box from the Text Properties section of the Modelica Graphics Properties dialog box.
  9. From the Diagram section of the action bar, click Ellipse and draw it the same way as the rectangle.
    Note: You can modify options from the Ellipse Properties section to create partially filled ellipses and open ellipses.