Using an automatic counter in SmartProperties



Setting an automatic counter : 

This parameter is used to define the counter name, 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



- First, we'll edit our SmartProperties mask by clicking on the Settings 





- Then, we use a Simple text property named 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






- We now need to create a Counter property. We'll drag this property into our mask and set the counter. We'll also check the Indicate when ownership changes indicating the reference property PROJECT_NAME






- In the counters edition, we will check AdvancedThen we'll add a new counter.






- You then need to check the Automatic Counter and define the counter variable. In our case, this will be the value of the SOLIDWORKS property PROJECT_NAME



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



CONCATENATION SYNTAX :

 

$PROJECT_NAME&-&$PRODUCT_NUMBER&-&$COMPONENT_NUMBER


$ To retrieve a property value


& To move 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, created with their values, can be found by clicking on the