Skip to main content

IModel.SetProductApplyCondition Method

Namespace: NextDesign.Core

Description

Sets the product application condition expression for this model.
If a feature name that is not assigned to this model is used in the product application condition expression, the feature will be automatically assigned.
If a feature name that has already been assigned to this model is not used in the condition expression, the assignment from the feature will be automatically released.
If an empty string is specified in the condition expression, all feature assignments will be released.

Arguments

NameTypeDescription
expressionstringCondition expression

Return value

  • void

Exceptions

NameException classDescription
Invalid product condition expressionExtensionFormulaExceptionIf an invalid product application condition expression is specified, such as:
- Condition expression syntax error
- Contains a non-existent feature name
- Contains a feature name that cannot be uniquely identified

Annotation

For the format of the product application condition expression, see GetProductApplyCondition().