CREATE FOLDERS AND AUTOMATICALLY NAME SOLIDWORKS FILES USING SMARTPROPERTIES
One of the main features is the ability to generate a unique filename and use it to name the document. In our example, we’ll use the default XML file provided during installation. We’ll use a counter to ensure that we always work with a unique filename.
CREATE FOLDERS AND AUTOMATICALLY NAME SOLIDWORKS FILES USING SMARTPROPERTIES
The idea is to create a property whose value combines values from other properties. This property value will serve as the file name. To do this, we use the “Concatenation” property type.
- First, you need to access the SmartProperties settings

- Once you're in the settings, and after you've configured your mask with the properties you want to create, you need to add a "Concatenation" property type and give it a name

- Concatenation allows you to retrieve and combine multiple property values to create a single value. In our case, we want to retrieve the values of the PROJECT_NAME and PRODUCT_NUMBER properties, as well as the COMPONENT_NUMBER counter.
CONCATENATION SYNTAX:
$PROJECT_NAME&-&$PRODUCT_NUMBER&-&$COMPONENT_NUMBER
$ To retrieve a property value
& To move from one property to another property or to text

- The configuration is now complete; you must now specify in the options the name of the property that will be used to name the document. To do this, go to the “Settings” tab and select the “Automatically rename the document with a property value” option.
Check the box and enter the name of the "concatenation" property you created earlier.

- Once you've done that, click " Apply "
- Fill out the form
- The value of the concatenation property is then created:

Next, save your SmartProperties form. A save dialog box will appear with the correct name that you defined in the form:
