DependentParameter#

class ansys.optislang.core.project_parametric.DependentParameter(name: str = '', operation: str = '0', reference_value: bool | float | str | None | Tuple[Any, ParameterValueType] = None, id: str = '4f991810-bf28-4a34-bdb4-e63f7be155d1', const: bool = False)#

Stores dependent parameter data.

Methods

__init__([name, operation, reference_value, ...])

Create an instance of the DependentParameter class.

from_dict(par_dict)

Create an instance of the DependentParameter class from optiSLang output.

to_dict()

Convert an instance of the DependentParameter class to a dictionary.

Attributes

DependentParameter.const

Whether the value for the parameter is a constant.

DependentParameter.id

ID of the parameter.

DependentParameter.name

Name of the parameter.

DependentParameter.operation

Operation expression.

DependentParameter.reference_value

Reference value of the parameter.

DependentParameter.type

Type of the parameter.