length#

ens_calculator.length(source_parts: List[ENS_PART] | List[int] | List[str], result_type: str = 'Compute_Per_case', output_varname: str | None = None) ENS_VAR#

Computes a constant variable defined as the sum of the length of all 1D elements. Parts composed of 2D or 3D elements need to be in Feature rep to obtain a value

Args:
source_parts:

Any 1D part(s) or a part number.

result_type:

Per/Case or Per/Part Results

output_varname:

The name of the newly created variable

Returns:

New ENS_VAR instance or None

Note:

See Length() for function details.