export_design_preview_to_jpg#

Mechanical.export_design_preview_to_jpg(output_file: str | Path) bool#

Export design preview image to a JPG file.

Parameters:
output_filestr

Full path and name for the JPG file.

Returns:
bool

True when successful, False when failed.

Examples

>>> from ansys.aedt.core import Hfss
>>> app = Hfss()
>>> app.export_design_preview_to_jpg(r"C:\temp\preview.jpg")