export_model_picture#

PostProcessor3D.export_model_picture(full_name=None, show_axis=True, show_grid=True, show_ruler=True, show_region='Default', selections=None, field_selections=None, orientation='isometric', width=0, height=0)#

Export a snapshot of the model to a JPG file.

Note

This method works only when AEDT is running in the graphical mode.

Parameters:
full_namestr, optional

Full Path for exporting the image file. The default is None, in which case working_dir is used.

show_axisbool, optional

Whether to show the axes. The default is True.

show_gridbool, optional

Whether to show the grid. The default is True.

show_rulerbool, optional

Whether to show the ruler. The default is True.

show_regionbool, optional

Whether to show the region or not. The default is Default.

selectionslist, optional

Whether to export image of a selection or not. Default is None.

field_selectionsstr, list, optional

List of Fields plots to add to the image. Default is None. “all” for all field plots.

orientationstr, optional

Picture orientation. Orientation can be one of “top”, “bottom”, “right”, “left”, “front”, “back”, “trimetric”, “dimetric”, “isometric”, or a custom orientation that you added to the Orientation List.

widthint, optional

Export image picture width size in pixels. Default is 0 which takes the desktop size.

heightint, optional

Export image picture height size in pixels. Default is 0 which takes the desktop size.

Returns:
str

File path of the generated JPG file.

References

>>> oEditor.ExportModelImageToFile

Examples

>>> from ansys.aedt.core import Q3d
>>> q3d = Q3d(non_graphical=False)
>>> output_file = q3d.post.export_model_picture(full_name=os.path.join(q3d.working_directory, "images1.jpg"))