Adding a Picture

You can add a picture to illustrate a diagram or modify a component icon.

Related Topics
About Modelica Components
Drawing Primitives
  1. Click Picture in the Drawing toolbar.

    The Drawing dialog box is displayed, and a cross appears under your cursor.

  2. Click the needed position in the diagram and move your cursor to define the convenient size.

  3. Click the diagram when the size is correct.

    The Picture Creation dialog box appears.

  4. To import a picture:

    1. Check that the Import a picture option is selected then click Browse.

      A Select files dialog box appears.

    2. Select the picture you want to import and click Open to validate your selection and close the Select files dialog box.
    3. From the Picture Creation dialog box, click OK to import the file and close the dialog box.

      The selected picture appears in the diagram.

  5. To use a picture already stored in the library:

    1. Check the Use an existing picture option.
    2. Select the picture from the resources structure of the library.

      The path of the picture appears in the Use an existing picture field.

    3. Click OK.

      The selected picture appears in the diagram.

    Tip: If you want to embed the picture in a Modelica text, select the Embed picture in Modelica Text option. By default, this option is not selected.

    Note: You can control the size of the picture by selecting the points placed all around the picture.

  6. To create a new folder in the resource structure in order to store the new picture:

    1. Type a name in the Name field.
    2. From the resources structure, select a location for the new folder.

      The selected folder appears in the Insert in field.

    3. Click Add Folder. The new folder is added in the resources structure of the library.