Variables in style repositories

<< Click to Display Table of Contents >>

Navigation:  More Advanced Procedures > Working with Style Repositories >

Variables in style repositories

If you define variables in a style repository they will also appear and be available in the projects to which the repository is linked. When you link the repository, all the variables in the repository that do not exist in the project are copied to the project. Variables that already exist in the projects are left unchanged; their values do not update with different values from the repository.

At present, this is really just a convenience for sharing variables to multiple projects. The values of the variables are not dynamically linked, even if the styles are. The values of the variables in your projects will NOT update when their values are changed in the repository. This is the same as existing variables in the project, which are not updated with the values of repository variables when you link a repository.

Updating variable values from a repository

The only way to force the values of a variable in a project to update with a changed value in the repository is to delete the variable in the project. Then the variable will appear again with the new value from the linked repository the next time the project is loaded.

So to update your repository variables you need to delete them in your project and reload the project. You can select and delete multiple variables with CTRL+Click (individual variables) and SHIFT+Click (blocks of variables).

This is admittedly not all that practical, because you need to do this for all the variables in all your projects every time you change the values of the variables in the repository. In a future major release of Help+Manual we plan to make repository variables dynamically linked as well.