Parameter#
- class ansys.geometry.core.parameters.parameter.Parameter(id: int, name: str, dimension_type: ParameterType, dimension_value: pint.Quantity | ansys.geometry.core.typing.Real)#
Represents a parameter.
Overview#
Get the name of the parameter. |
|
Get the value of the parameter. |
|
Get the type of the parameter. |
Convert a Quantity to a Real value using appropriate units. |
Import detail#
from ansys.geometry.core.parameters.parameter import Parameter
Property detail#
- property Parameter.dimension_value: pint.Quantity#
Get the value of the parameter.
- property Parameter.dimension_type: ParameterType#
Get the type of the parameter.
Attribute detail#
- Parameter.id#
Method detail#
- static Parameter.convert_quantity_to_server_units(value: pint.Quantity, dimension_type: ParameterType) ansys.geometry.core.typing.Real#
Convert a Quantity to a Real value using appropriate units.
- Parameters:
- value
Quantity The value to convert.
- dimension_type
ParameterType The dimension type to determine the appropriate unit.
- value
- Returns:
RealThe value in default server units.