Project variables
In the Project Variables view, project administrator can define variables that store a text string such as file path or web address. These variables can then be used in adapter and data source configurations. The view also has a section for setting the AI context for the project and the configuration of AI data sharing.
Setting project variables
Each project has two built-in variables: {projectName} and {projectDbName}.
-
{projectName} – Contains the name of the project.
-
{projectDbName} – Contains the name of the project database.
Adding, editing, and deleting project variables
When an adapter or data source configuration refers to a project variable, any changes made to the variable will not be automatically applied to those configurations. If you rename a variable, you must manually correct its name in the configurations that refer to it. If you edit the value of a variable, you must open and save each configuration that refers to the variable, to apply the change. If you delete a variable, you must manually remove it from configurations that refer to it.
Do the following:
-
Navigate to the project to edit, and then click Project Admin in the main menu. The project administration view opens.
-
Click Project Variables. The Project Variables view opens, listing the currently defined variables.
-
Click Edit. The fields of existing project variables become editable.
-
To add a new project variable, click Add Variable, and then enter the following information.
-
Name – Enter a name for the variable. Spaces and special characters are allowed in the name.
-
Value – Enter the value of the variable.
-
-
To edit an existing project variable, edit its name or value as appropriate.
-
To delete a project variable, click the delete button
of that variable. -
Click Save.
Results
You can use the currently defined project variables in adapter and data source configurations by entering the variable name in curly brackets.
For example, if the variable is called "DWG", you can refer to it with {DWG}.
Exporting project variables
You can export all project variables in text format. You can use this to copy variables from one project to another, or just to back up the variable list.
Do the following:
-
Navigate to the project to edit, and then click Project Admin in the main menu. The project administration view opens.
-
Click Project Variables. The Project Variables view opens.
-
In the Project Variables pane, click Export All. The Export Project Variables text box displays the settings.
-
Select all settings and copy them to the clipboard. You can save the settings in a text file if needed.
-
Click Close.
Importing project variables
You can import previously exported project variables to a project.
Import removes all existing project variables. When an adapter or data source configuration refers to a project variable, any changes made to the variable will not be automatically applied to those configurations. If import changes the value of a previously known variable, you must open and save each configuration that refers to the variable, to apply the change. If import permanently deletes a variable, you must manually remove it from configurations that refer to it.
Prerequisites
- You have a project variable export on the clipboard. See Exporting project variables.
Do the following:
-
Navigate to the project to edit, and then click Project Admin in the main menu. The project administration view opens.
-
Click Project Variables. The Project Variables view opens.
-
In the Project Variables pane, click Import. The Import Project Variables text box is displayed.
-
Paste the configuration to import into the text box.
-
Click Import.
Results
Existing project variables are removed, and the imported project variables are displayed on the list.
Setting AI context
Do the following:
-
Navigate to the project to edit, and then click Project Admin in the main menu. The project administration view opens.
-
Click Project Variables. The Project Variables view opens.
-
In the AI context pane, click Edit. The context field opens for editing and you can enter the project's AI context.
-
Click Save.
Setting permissions for AI data sharing
When AI data sharing is enabled, Cadmatic may review the AI assistant conversations in the project, including the project data the assistant looked up, to improve the assistant. By default, AI data sharing is disabled, and the conversations are stored only to run the chat and are never reviewed for this purpose. When a user deletes a chat, it is removed from the review data as well.
Do the following:
-
Navigate to the project to edit, and then click Project Admin in the main menu. The project administration view opens.
-
Click Project Variables. The Project Variables view opens.
-
In the AI data sharing pane, enable or disable Share this project's AI chats with Cadmatic option.
By default the option is disabled.