Adding a new resource to the project¶
Two types of resources can be referenced in a Constellation project:
- Files that will be hosted on the Constellation server.
- External resources hosted on another web server and accessible via an URL.
Add a file as resource¶

To add a file as resource:
- Select the “From a local file” option.
- Select the local file to host and wait for the end of the upload.
- Set the label associated to the resource.
- Set the resource path: this path is relative to the Modelio project and must include the name of the resource file.
- Select the profiles the resource will come with.
- Validate.
Add a URL as resource¶

To add a URL as resource:
- Select the “From an external URL” option.
- Set the URL of the external resource.
- Set the label associated to the resource.
- Set the resource path: this path is relative to the Modelio project and must include the name of the resource file.
- Select the profiles the resource will come with.
- 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.