PythonPartService
Canonical path: NemAll_Python_BaseElements.PythonPartService
Utility for processing PythonParts existing in the drawing file
This utility class provides methods for processing the PythonParts, that exist in the drawing file, such as reading and modifying their parameter values.
GetParameter
staticmethod
GetParameter(ele: BaseElementAdapter) -> tuple
GetPlacementMatrix
staticmethod
GetPlacementMatrix(ele: BaseElementAdapter) -> tuple
IsPythonPartElement
staticmethod
IsPythonPartElement(ele: BaseElementAdapter) -> bool
Check for a PythonPart element
Parameters:
-
ele
(BaseElementAdapter
) –Element
Returns:
-
bool
–PythonPart element state
IsPythonPartGroupElement
staticmethod
IsPythonPartGroupElement(ele: BaseElementAdapter) -> bool
Check for a PythonPart group element
Parameters:
-
ele
(BaseElementAdapter
) –Element
Returns:
-
bool
–PythonPart groupd element state
SetParameter
staticmethod
SetParameter(
ele: BaseElementAdapter, name: str, paramList: list
) -> BaseElementAdapter
Set the parameter of the PythonPart
Parameters:
-
ele
(BaseElementAdapter
) –Element
-
paramList
(list
) –Parameter list
Returns:
-
BaseElementAdapter
–Modified element
Placeholder