Bases: object
Interface for Model Viewer 2.
Takes a snapshot of the model, using model viewer 2, and saves it to disk as a png image.
If path or file_name are specified, the caller is responsible for making sure they are valid.
file_name (str, Optional) – output filename. Extension .png will be added automatically.
path (str, Optional) – location where to save file. Empty string (‘’) means current project folder.
view_mode (mv2_viewmode, Optional) – rendering mode.
components (bool, Optional) – True to include components, else False. Component viewmode will force components on.
Checks user preference for report images. If Active Model is selected, this function takes a snapshot of the model, using model viewer 2, and saves it to disk as a png image. If None is selected, this function creates a blank placeholder image to be used in reports.
If path or file_name are specified, the caller is responsible for making sure they are valid.
file_name (str, Optional) – output filename. Extension .png will be added automatically.
path (str, Optional) – location where to save file. Empty string (‘’) means current project folder.
view_mode (mv2_viewmode, Optional) – rendering mode.
components (bool, Optional) – True to include components, else False. Component viewmode will force components on.
Bases: IntEnum