Data Management Capabilities > Managing Part Structures > Windchill Options and Variants Capabilities > Developing Advanced Selection Logic for Configurable Modules > Variants Created From Configurable Modules With Advanced Selection Logic
Variants Created From Configurable Modules With Advanced Selection Logic
A module variant represents a part structure created from a configurable module structure. To create a module variant from a configurable module, you must use the Configure process to specify the necessary input values, define a variant specification, and then generate a deliverable.
Creating Module Variants for Structures with Configurable Modules with No Children
You can enable the creation of module variants for structures that include configurable modules with no children (also referred to as leaf nodes). To do that, a site administrator must set the preference Leaf Node Generation in the Options and Variants Preferences group to yes. The default is no. This preference can be set for a site, organization, or product or library.
Creating Module Variants of a Specified Subtype
You can create module variants that use a specified subtype, which is different from that of the configurable module from which the variant is generated. To enable this capability, a site administrator must specify the subtype for the variant using the Variant Subtype preference in the Options and Variants Preferences group. The value for the preference is the internal name for the subtype, for example, WCTYPE|wt.part.WTPart|org.eng.BikePart.
If the preference is not set, the system uses the type of the configurable module for the variant creation. This preference can be set for a site, organization, product, or library.
Using a Parameter for Generating the Variant Name
You can specify a parameter that will be used to name module variants of a configurable module based on the values of the parameters that are used to generate the variant.
To set up the rules for generating the variant name:
1. For a configurable module, add a new parameter, for example VariantName.
2. Specify its type as String.
3. Enter a value or a Java expression to drive the variant name. An expression may include a combination of the key parameters that are used to characterize the variant. For example, in the Default Expression field, specify this expression to control the name of the variant:
"Variant" + length + "inches", + color +"color"
where length and color are the parameters defined for this variant.
4. Click the User Interface tab and set the value for the variant name property to yes.
5. When generating a variant, the system substitutes the parameters used in the expression by the selected parameter values. For example, the variant name can be Variant 12 inches, blue color.
Consider this information for setting up rules for variants names:
The parameter name must be String.
The parameter must have a value assigned in the saved variant specification.
If multiple parameters are used to drive the variant name, the system uses the first one listed.
The variant name must be within 60 characters.