constantperpart#

ens_calculator.constantperpart(source_parts: List[ENS_PART] | List[int] | List[str] | ENS_PART | int | str, constant: ENS_VAR | str | int | float, output_varname: str | None = None) ENS_VAR#

Assigns a constant value as a constant per part variable

Args:
source_parts:

Any part(s) or a part number.

constant:

Set value for per part constant variable

output_varname:

The name of the newly created variable

Returns:

New ENS_VAR instance or None

Note:

See ConstantPerPart for function details.