Published on   March 25, 2025 by myCADtools expert Florian MARCHAND

Using automatic counters with the SmartProperties tool

Find out how to use automatic counters with SmartProperties

SmartProperties tip for SOLIDWORKS

Automatic counter definition:

This parameter is used to define the name of the counter, using variables. This name will be used to identify the automatic counter to be incremented (if it exists), or to create it with the default values defined in the counter type (simple or cumulative).

The list of automatic counters, created with their values, can be found by clicking on the button.

- First, we edit our SmartProperties mask by clicking on the Settings button.

Next, we'll use a simple text property called PROJECT_NAME , which will allow us to assign a unique number that can be reset to zero depending on the value of the PROJECT_NAME property.

We now need to create a Counter property. We'll drag this property into our mask and set the counter. In addition, we'll check the Index when the property changes: option, indicating the reference property PROJECT_NAME

In the counter editor, we'll check Advanced and then add a new counter.

Check the Automatic counter option and define the counter variable. In our case, this will be the value of the SOLIDWORKS property

Counter ID: <SW:PROJECT_NAME>

Finally, we're going to create a concatenated property which, for example, will allow us to name the file.

CONCATENATION SYNTAX:$PROJECT_NAME&-&$PRODUCT_NUMBER&-&$COMPONENT_NUMBER

  • $ To retrieve a property value

  • & To pass from one property to another or to text

Preview in property mask :

Using a new value for the PROJECT_NAME property will then increment the Counter if this value already exists, or create it with the default value.

The list of automatic counters and their values can be found by clicking on the