CREATE FOLDERS AND NAME SOLIDWORKS FILES AUTOMATICALLY WITH SMARTPROPERTIES
One of the main features is the ability to generate a unique file name and use it for document naming. In our example, we'll use the default XML file during installation. We'll use a counter to ensure that we always work with a unique file name.
CREATE FOLDERS AND NAME SOLIDWORKS FILES AUTOMATICALLY WITH SMARTPROPERTIES
The idea is to create a property with a value that retrieves different values from other properties. This property value will serve as the file name. To do this, we use the "Concatenation" property type.
- Tout d’abord il faut accéder au paramétrage de SmartProperties

- Once you are in the settings, and have configured your mask with the properties you wish to create, you must add a "Concatenation" property type and give it a name

- La concaténation permet de récupérer et de concaténer plusieurs valeurs de propriété pour en créer une seule. Dans notre cas on veut récupérer la valeur de la propriété PROJECT_NAME, PRODUCT_NUMBER and the COMPONENT_NUMBER
CONCATENATION SYNTAX :
$PROJECT_NAME&-&$PRODUCT_NUMBER&-&$COMPONENT_NUMBER
To retrieve a property value
& To move from one property to another or to text

- Now that you've finished setting the parameters, you need to enter the name of the property that will be used to name the document in the options. To do this, go to the "Parameter " and the "Automatically rename the document with a property value".
Check the option and specify the name of the "concatenation" property previously created.

- Once you have done this, click on Apply
- Fill in the mask
- The value of the concatenation property is then created:

Then validate your SmartProperties mask. A registration window will appear with the correct name defined in the mask:
