This window also allows you to add fields, as described in the chapter on Variable Concatenation.

In some tools, such as BatchConverter, when file names need to be renamed, you can add advanced rules to specify conditions for the renaming process. The file name will be generated differently based on the rules you set.

For example, in BatchConverter, if you have selected a list of documents (part, assembly, drawing) and want to convert the drawings to PDF (*.pdf) and the others to a neutral format such as IGES (*.igs), you can change the name for each format.


 


Click on the then in the next window click on the to add one or more rules.

Example:

We have one file name definition here. If we leave it as is, all files will be converted to PDF format. By default, there are no conditions, and the rule will always apply to all selected documents.


 


We're going to add a rule so that only drawing files are converted to PDF format.

To access the conditions window, click on the icon :  

Several options are available. For our example, we'll first add a condition based on the document type " Drawing." Next, we'll add an "AND" condition based on the " Comments " property being equal to " PDF."


       


The "Conditions" column now indicates that "2 conditions are defined".  

The rule will be executed if and only if the 2 conditions are met!


Now let's add a second rule for naming the other selected SOLIDWORKS files.

This icon bar lets you add or delete a rule. .

 


We will define the following rule for all other selected files (Parts, Assemblies).



The window now indicates that rules have been created.


 


There's no limit to how many rules you can create, but be careful not to make too many—it can quickly get complicated!

Rules are processed in the order in which they were created; if you wish to change this, use the arrows after selecting the rule to be moved (UP/DOWN on the right).


This other icon bar allows you to:

  • Save a rule as a favorite so you can use it again for other tasks.
  • Specify the location where these bookmarks will be saved.
  • To bring back a favorite.


After validation, the field no longer shows the rename field, but indicates that rules have been defined. To access these rules, click on the icon .

Therefore, when processing the selected SOLIDWORKS files, the BatchConverter tool will convert the drawings to PDF format and the other files to IGES format, as requested.