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.
- First, access SmartProperties settings
- 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
- Concatenation allows you to retrieve and concatenate several property values to create a single one. In our case, we want to retrieve the value of the property 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: