PythonPartPreview
Implementation of the PythonPart preview
PythonPartPreview
Canonical path: PythonPartPreview.PythonPartPreview
Implementation of the PythonPart transaction
execute
staticmethod
execute(
doc: DocumentAdapter,
placement_matrix: Matrix3D,
model_ele_list: ModelEleList,
direct_draw: bool = False,
asso_ref_object: BaseElementAdapter | None = None,
use_system_angle: bool = True,
as_static_preview: bool = False,
elements_to_hide: BaseElementAdapterList | None = None,
elements_to_show: BaseElementAdapterList | None = None,
hidden_preview_elements: BaseElementAdapterList | None = None,
visible_preview_elements: BaseElementAdapterList | None = None,
)
execute the preview draw
Parameters:
-
doc
(DocumentAdapter
) –document of the Allplan drawing files
-
placement_matrix
(Matrix3D
) –placement matrix
-
model_ele_list
(ModelEleList
) –list with the model elements
-
direct_draw
(bool
, default:False
) –direct draw of the preview
-
asso_ref_object
(BaseElementAdapter | None
, default:None
) –associative view reference object
-
use_system_angle
(bool
, default:True
) –use the system angle state
-
as_static_preview
(bool
, default:False
) –draw as static preview state
-
elements_to_hide
(BaseElementAdapterList | None
, default:None
) –elements to hide persting in the drawing file
-
elements_to_show
(BaseElementAdapterList | None
, default:None
) –elements to show persting in the drawing file
-
hidden_preview_elements
(BaseElementAdapterList | None
, default:None
) –elements to hide in the preview
-
visible_preview_elements
(BaseElementAdapterList | None
, default:None
) –elements to show in the preview
Placeholder