add_cad_model#

HDMPlotter.add_cad_model(filename: str, cad_color: str = 'dodgerblue', opacity: int = 1, units: str = 'mm') bool#

Add a stl file to the scenario.

Parameters:
filenamestr

Full path to stl file.

cad_colorstr, optional

Color of the CAD model. The default is dodgerblue.

opacityint, optional

Opacity of the CAD model. The default is 1.

unitsstr, optional

Units of the CAD model. The default is mm.

Returns:
bool

True if imported.

Examples

>>> from ansys.aedt.core.visualization.advanced.hdm_plot import HDMPlotter
>>> obj = HDMPlotter()
>>> obj.add_cad_model(filename="example.stl")