ModifyPythonPartParameterUtil
Canonical path: Utils.PythonPart.ModifyPythonPartParameterUtil.ModifyPythonPartParameterUtil
implementation of the utility class for the PythonPart parameter modification
execute
staticmethod
execute(
python_part: BaseElementAdapter,
coord_input: CoordinateInput,
mod_param_data: list[ModifiedParameterData],
)
execute the parameter modification
Parameters:
-
python_part
(BaseElementAdapter
) –PythonPart to modify
-
coord_input
(CoordinateInput
) –API object for the coordinate input, element selection, ... in the Allplan view
-
mod_param_data
(list[ModifiedParameterData]
) –data of the modified parameter
get_modified_parameters
staticmethod
get_modified_parameters(
old_parameter: list[str],
python_part_ele: BaseElementAdapter,
str_table: BuildingElementStringTable,
material_str_table: BuildingElementMaterialStringTable,
) -> list[ModifiedParameterData]
get the modified parameters
Parameters:
-
old_parameter
(list[str]
) –old parameter
-
python_part_ele
(BaseElementAdapter
) –PythonPart element
-
str_table
(BuildingElementStringTable
) –global string table
-
material_str_table
(BuildingElementMaterialStringTable
) –global material string table
Returns:
-
list[ModifiedParameterData]
–returns
get_overtake_parameters
staticmethod
get_overtake_parameters(
python_part_ele: BaseElementAdapter,
str_table: BuildingElementStringTable,
material_str_table: BuildingElementMaterialStringTable,
) -> list[ModifiedParameterData]
get the overtake parameters
Parameters:
-
python_part_ele
(BaseElementAdapter
) –PythonPart element
-
str_table
(BuildingElementStringTable
) –global string table
-
material_str_table
(BuildingElementMaterialStringTable
) –global material string table
Returns:
-
list[ModifiedParameterData]
–overtake parameter
Placeholder