Parameter with any value by type¶
The value of the PythonPart parameter can be created as a Python list with an any value for each row. The value type for this is AnyValueByType.
Syntax¶
The values in the <Value> tag must be initialized with an empty list like [_] and the list items must be defined by the class
like
value : List[AnyValueByType] = build_ele.AnyValueByTypeList.value
value.append(AnyValueByType("Integer", "Integer value", 1, min_value = "0"))
With this value type it’s possible to create a PythonPart with a partly dynamic property palette. The base data for the parameter can be read in the create mode e. g. from a file and be transformed into the required data class. In the modification mode the data from the PythonPart are used and can be modified.
Example¶
The implementation of the AnyValueByType value type is described in the example AnyValueByTypeList, which is located in