Hide Table of Contents

Configuration Examples

Configuration rules switch the new model to another configuration already set up in the SolidWorks file.

Before you create configuration rules, verify that the option Yes, allow me to create a rule to switch configurations on the Configurations tab is checked.

To switch to a configuration when a checkbox is selected:

  1. Create a form with a field called InputCheckBox.

  2. Open the Rules tab.

  3. For Action, select Edit Configuration Rules and click Next.

  4. Double-click the configuration .

  5. Select If from the Logic tab and construct the condition that determines which configuration to use when the input checkbox is selected .

    • In the IF field:  If (InputCheckBox = TRUE ,

    • In the Then field, the name of the configuration, in quotes, to use when the condition is true: ConfigA

The case of the name and the configuration must match exactly.

    • In the Otherwise field, type the name of the configuration, in quotes, to use when the condition is False: "Default"

  1. Click Next.

The formula shown in the rules list:

IF ( InputCheckBox = TRUE , "ConfigA" , "Default" )

To switch to a configuration selected from a menu:

  1. Create a form with a drop-down control called MenuSelect with selections for existing configurations.

  2. Open the Rules tab.

  3. For Action, select Edit Configuration Rules and click Next.

  4. Double-click the configuration .

  5. Select MenuSelect from the Inputs tab.

  6. Click Next.

The formula shown in the rules list:

MenuSelect

To change configurations based on a value selected from a menu:

  1. Create a form with a drop-down control called MenuSelect with a list of existing configurations.

  2. Open the Rules tab.

  3. For Action, select Edit Configuration Rules and click Next.

  4. Double-click the configuration .

  5. Select If from the Logic tab and create an expression:

    • In the If field, construct the condition that determines what the first menu selection could be (with the menu value in quotes).

    • In the Then field, type the name, in quotes, of the configuration to which the above selection refers.

The case of the name and the configuration must match exactly.

    • In the Otherwise field, type the name, in quotes, of the other configuration.

  1. Click Next.

The formula shown in the rules list:

IF ( MenuSelect = "MenuValue" , "ConfigAValue" , "ConfigBValue" )

If there are more than two menu selections, see Nesting IF statements

To change configurations based on an input value:

  1. Create a form with a drop-down control called MaterialSelect with a list of materials, such as Cast Alloy Steel, that exist in the part.

  2. Open the Rules tab.

  3. For Action, select Edit Configuration Rules and click Next.

  4. Double-click the configuration .

  1. Select MaterialSelect from the Inputs tab.

  1. Click Next.

The formula shown in the rules list:

MaterialSelect

The configuration is swapped to Cast Alloy Steel (which must exist in the part or assembly).



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:   Configuration Example
*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 2010 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.