CAD+ Toolset | Utilities for SOLIDWORKS automation
SOLIDWORKS utilities for improving your productivity in SOLIDWORKS. Automate properties, geometry, export and much more

Demo Download Buy

Expression Box Control


The Expression Box control is used in various modules of CAD+ and allows you to enter an expression with dynamic variables. Unlike traditional Text Box controls where only static text can be specified, the Expression Box lets you combine text with variables. The value is resolved dynamically by CAD+ to generate the final text.

User can type any text into the Expression Box

Expression Box control
Expression Box control

  1. List of available variables
  2. Free text in the expression
  3. Variable in the expression
  4. Variable with additional parameters
  5. Button to configure the parameters of the variable
  6. Popup box to edit long expressions

Each Expression Box contains its own list of variables. Hover the mouse over a variable link to see the value of that variable

Inserting variable into the Expression Box
Inserting variable into the Expression Box

User can edit, change or copy-paste the value of the expression box.

Some of the variables might have their own parameters. These parameters need to be entered when the variable is inserted, or at any later time by clicking the gear icon

Editing parameters of the variable in the Expression Box
Editing parameters of the variable in the Expression Box

For the long expressions or expressions with new lines it is recommended to edit it with the popup box

Editing expression in a popup box
Editing expression in a popup box

The same features are available in the popup box (e.g. inserting variables, editing parameters, entering text). New lines are also supported by pressing the Enter key, and the popup box can be resized by dragging the handle in the bottom-right corner.


Product of Xarial Product of Xarial