Hide Table of Contents

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 to open the Rules pane.
  3. Under Edit, select the check box for File Names and click .
  4. Under Name, double-click the file name .
  5. Select Inputs > CreatedBy.

    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 to open the Rules pane.
  3. Under Edit, select the check box for File Names and click .
  4. Under Name, double-click the file name .
  5. In the rule window, type "*" &.
  6. Select 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 to open the Rules pane.
  3. Under Edit, select the check box for File Names and click .
  4. Under Name, double-click the file name .
  5. Select 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")



Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

 
*Email:  
Subject:   Feedback on Help Topics
Page:   Rule Type: File Name
*Comment:  
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:




x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again
x

Web Help Content Version: SOLIDWORKS 2014 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.