Working with Template WorkSets
Overview
Define Template WorkSets
A template WorkSet is no different than any other WorkSet except for how you intend to use it. In other words, any WorkSet can be treated as a template when creating a new WorkSet.
You can rename these templates, if desired, by renaming the WorkSet folder and the corresponding WorkSet.cfg file. By default, these WorkSets are found in the "Promise ANSI-IEEE Example" or "Promise IEC Example" workspace here:
C:\ProgramData\Bentley\Promise CONNECT Edition\Configuration\WorkSpaces\Promise ANSI-IEEE Example\Worksets
C:\ProgramData\Bentley\Promise CONNECT Edition\Configuration\WorkSpaces\Promise IEC Example\Worksets
To modify configuration settings for a template WorkSet you can directly edit the configuration file. The configuration file for the template WorkSet has the same name as the template WorkSet itself and is located in the root of the "Worksets" folder listed above.
You can specify any configuration variable you desire and set its value in this configuration file to achieve your desired goal. Refer to the Configuration Variables topic for a complete listing of the application specific Configuration Variables. The following example would load a project specific catalog when creating a new project using this workset as a template:
ELEC_CATALOG_PATH = $(_USTN_WORKSPACESTANDARDS)$(_USTN_APPLICATION)/Catalogs/
You can select the Create WorkSet button in the Project Manager to create a new WorkSet and assign it the name of the template you would like to create. Once the WorkSet is created, you can edit the configuration file that matches the name you assigned to the WorkSet.
You can specify any configuration variable you desire and set its value in this configuration file to achieve your desired goal. Refer to the Configuration Variables topic for a complete listing of the application specific Configuration Variables. The following example would load a project specific catalog when creating a new project using this workset as a template:
ELEC_CATALOG_PATH = $(_USTN_WORKSPACESTANDARDS)$(_USTN_APPLICATION)/Catalogs/
How To Utilize a Template WorkSet
- Select the Create WorkSet button in the Project Manager to display the Create WorkSet dialog.
- Specify a name for the WorkSet you wish to create.
- Choose your template WorkSet from the Template pull-down.
- After clicking OK to create the WorkSet the software will copy all contents from the template WorkSet to the newly created WorkSet which includes the configuration file that contains your custom settings.