VariableCriterion#

class ansys.optislang.core.project_parametric.VariableCriterion(name: str = '', expression: str = '0', expression_value: tuple | bool | float | complex | list | dict | None = None, expression_value_type: CriterionValueType | None = None, value: tuple | bool | float | complex | list | dict | None = None, value_type: CriterionValueType | None = None)#

Stores variable criterion data.

Methods

VariableCriterion.from_dict(criterion_dict)

Create an instance of the Criterion class from actor properties.

VariableCriterion.to_dict()

Convert an instance of the VariableCriterion class to a dictionary.

Attributes

VariableCriterion.criterion

Type of the criterion.

VariableCriterion.expression

Expression for value.

VariableCriterion.expression_value

Return expression value.

VariableCriterion.expression_value_type

Type of the expression value.

VariableCriterion.name

Name of the criterion.

VariableCriterion.type

Type of the criterion.

VariableCriterion.value

Return criterion value.

VariableCriterion.value_type

Return type of the criterion value.