Rule Type: File Name

File Name rules set the naming convention for new versions of the model.

File Name Example: Appending a Value

To append a value to the name of the master file:

  1. Create a form with an input field called CreatedBy.
  2. Click Rules to open the Rules pane.
  3. Under Edit, select the check box for File Names and click Edit Rules.
  4. Double-click the file name or click Build.
  5. In the DriveWorksXpress Rule Builder dialog box, click Inputs > CreatedBy and click OK.
    The formula shown in the rules list:

    CreatedBy

File Name Example: Renaming the Master File Based on Input Values

To rename the master file based on an input value:

  1. Create a form with an input field called InputValueForName.
  2. Click Rules to open the Rules pane.
  3. Under Edit, select the check box for File Names and click Edit Rules.
  4. Double-click the file name or click Build.
  5. In the DriveWorksXpress Rule Builder dialog box, type "*" &.
  6. Click Inputs > InputValueforName.
    The formula shown in the rules list:

    "*" & InputValueForName

If you rename the master file based on two input values, create two input fields and adjust the formula in the rule:

"*" & InputValueForName1 & " and " & InputValueForName2

File Name Example: Appending a Value for Required Files

To append a value to the master file name if the file is required:

  1. Select the model for which you want to create the rule.
  2. Click Rules to open the Rules pane.
  3. Under Edit, select the check box for File Names and click Edit Rules.
  4. Double-click the file name or click Build.
  5. In the DriveWorksXpress Rule Builder dialog box, click Logic > IF( , , )
    • In the IF field, construct the condition that determines when the file is needed.
    • In the Then field, select the input value used to name the file.
    • In the Otherwise field, type the action required when the file is not required (Suppress, Hide, or Delete) .

    The formula shown in the rules list:

    IF( Condition = FileRequired , InputValueForName , "Suppress")

  6. Click OK.