add_object#
- ModelPlotter.add_object(cad_path: str, cad_color: str = 'dodgerblue', opacity: float = 1, units: str = 'mm') bool#
Add a mesh file to the scenario.
The mesh file can be an object or any of the PyVista supported files.
- Parameters:
- Returns:
Examples
>>> from ansys.aedt.core.visualization.plot.pyvista import ModelPlotter >>> obj = ModelPlotter() >>> obj.add_object(cad_path="example.stl")