Adding a new resource to the project

Two types of resources can be referenced in a Constellation project:

Add a file as resource

Add a file as resource

To add a file as resource:

  1. Select the “From a local file” option.
  2. Select the local file to host and wait for the end of the upload.
  3. Set the label associated to the resource.
  4. Set the resource path: this path is relative to the Modelio project and must include the name of the resource file.
  5. Select the profiles the resource will come with.
  6. Validate.

Add a URL as resource

Add a URL as resource

To add a URL as resource:

  1. Select the “From an external URL” option.
  2. Set the URL of the external resource.
  3. Set the label associated to the resource.
  4. Set the resource path: this path is relative to the Modelio project and must include the name of the resource file.
  5. Select the profiles the resource will come with.
  6. Validate.

Hints about the Target Path

The target path is relative to the Modelio project and must include the name of the resource file.

For example, to add a diagram theme to the project, you must use the “data/.config/styles” as it is the path where the themes are stored in the project space, and add the name of the theme file at the end of this path : “data/.config/styles/MyTheme.theme”. So when the Modelio user will connect to the ‘Kitty’ project, the “MyTheme.theme” file will be downloaded to the ${MODELIO_WORKSPACE}/Kitty/data/.config/styles" directory, and then the theme will be available in the project.