Expose a variable
-
Choose Tools tab→Variables group→Variables
.
-
In the Variable Table, select the Expose check box for the variable(s) you want to make available.
The exposed names of variables in the Variable Table must be different from one another.
The exposed name for a variable cannot be the same as the name as an existing custom property.
-
(Recommended) In the Exposed Name column, type a new name for the property.
If you do not specify an exposed name, QY CAD uses the variable name as the exposed property name.
For information about what constitutes a valid name, see Variable Table dialog box.
-
Click OK.
The variable(s) are now available as properties with the names you specified.
For example, you can select these properties on the Columns tab in the Parts List Properties dialog box and in the Select Property Text dialog box.
Variable Table properties and values can be used in the Draft environment (for inclusion in tables and annotations, for example) and in Property Manager.
-
Read-only variables overwrite custom properties when you open a file, save a file, or edit a variable.
-
Read-write variables overwrite custom properties when you edit a variable. Externally or internally edited custom properties overwrite read-write variables when you open or save a file.
-
Exposed variable synchronization occurs differently in different environments.
Environment
Write access
Custom property synchronization occurs
Explorer Properties, Custom tab (QY CAD not running)
All read-write
When you edit a variable or open a file.
Property Manager (QY CAD running)
Write-protected exposed variables disabled
When you edit a variable or open a file.
File Properties, Custom tab (QY CAD running)
Write-protected exposed variables disabled
When you edit a variable or open a file.
Dashboard (exposure administrator-controlled)
Behavior unchanged
When you edit a variable or open a file.
Reports
No write access
When you edit a variable or open a file.
File/open search
No write access
When you edit a variable or open a file.
Family of assemblies
Behavior unchanged
When you edit a variable or open a file.
Parts List in Draft
(Not applicable)
When you update a parts list
-
Feature-generated variables that control geometry cannot be overwritten externally.
-
If you open a file created in an earlier version of QY CAD with variables exposed, and an exposed variable name conflicts with the name of a variable exposed as a custom property, the conflicting variable name in the file you opened remains unexposed.
-
You can control the order in which exposed properties are displayed in the Properties list on the Custom page in the File Properties dialog box. First, clear the Expose check box for all of the exposed variables in the Variable Table. Then, set the Expose check box for each variable in the order in which you want it displayed in the Properties list on the Custom tab.
© 2021 UDS