DriveWorks has built in variables known as Special Variables that can be used in rules.
Special Variables are accessed from the Rule Builder - Quick Text drop down.

The available special variables are:
Creates the special variable DWProjectName.
Returns the name of the Project.
DWProjectName is combined with DWSpecificationId to create DWSpecification, which creates a reference unique to each specification made in DriveWorks Solo.
See File Naming for more information.
Rule | Meaning |
|---|---|
| DWProjectName | Will return the name given to the project for example: MyProject |
Creates the special variable DWSpecificationId.
DWProjectName is combined with DWSpecificationId to create DWSpecification, which creates a reference unique to each specification made in DriveWorks Solo.
See File Naming for more information.
DWSpecificationID begins at 1 and has a range of approximately 2 billion.
Rule | Meaning |
|---|---|
| DWSpecificationId | Will result in 9999 while administering a project. Will result in the next available number once a project is running, e.g. 1 |
| TEXT(DWSpecificationID,"0000") | Will ensure the result contains at least 4 digits, e.g. 0001 This will NOT truncate the DWSpecificationID when the range goes above 9999 but will always include at least 4 digits. |
Creates the special variable DWSpecification.
DWSpecification uses DWProjectName and DWSpecificationId to create a reference unique to each specification made in DriveWorks Solo.
By default DWSpecification is applied to the following parameters:
See File Naming for more information.
Rule | Meaning |
|---|---|
| DWSpecification | Will return the combined name of the project and the SpecifactionID |
Creates the special variable DWFormContainerWidth.
The special variable Form Container Width reports on the available width a form is being displayed in.
This is useful when designing user forms that adapt to changes in width.
When viewed in Form Design the special variable reports the width of the available Form Design area. This accounts for the Task Explorer on the left and the properties list on the right.
When viewed while a project is run (in SOLIDWORKS) it will report the available width in the DriveWorks Solo Task Pane.

Linking this special variable to the layout properties of form controls, user forms can dynamically adjust to suit the width of the DriveWorks Solo Task Pane.
Rule | Meaning |
|---|---|
| DWFormContainerWidth | Will result in the width of the Form Design area while administering a project. Or Will result in the available width in the DriveWorks Solo Task Pane. |
Creates the special variable DWFormContainerHeight.
The special variable Form Container Height reports on the available height a form is being displayed in.
This is useful when designing user forms to adapt to changes in height.
When viewed in Form Design the special variable reports the height of the available Form Design area.
When viewed while a project is run (in SOLIDWORKS) it will report the available height in the DriveWorks Solo Task Pane.

Linking this special variable to the layout properties of form controls, user forms can dynamically adjust to suit the height of the DriveWorks Solo Task Pane.
Rule | Meaning |
|---|---|
| DWFormContainerHeight | Will result in the height of the Form Design area while administering a project. Or Will result in the available height in the DriveWorks Solo Task Pane. |