CaptureObjectImage(DataModelObject, string, string)

Save the object specified as an image. The image have the same name as the object.

Declaration Syntax

public void CaptureObjectImage(DataModelObject obj, string mode, string folder)

Parameters

obj(DataModelObject)

The object for which an image will be saved.

mode(string)

A string representing the graphics format to use. One of : "PNG", "JPG", "TIF", "BMP", "EPS".

folder(string)

The folder into which the image file will be saved. An empty string ("") defaults to the project's user_files. This is a null operation if the specified folder does not exist.


Release 18.2 - © ANSYS, Inc. All rights reserved.