Diagram snapshot image file location


path = getSnapshotImage(diag,rpt)


path = getSnapshotImage(diag,rpt) takes the snapshot of the diagram specified by the reporter (diag). It creates an image file and returns the path of that file. rpt is the report into which the diagram is added. This method gives you access to the image file so you can place it in specific locations of the report, such as on a title page. By changing the report layout and then adding this image, you can control the image layout.


If you use this method, set the Diagram Scaling property to custom or zoom. If you use auto scaling, the image does not scale to fit on the page.

Input Arguments

expand all

Dialog reporter, specified as the variable name of the Diagram class. For example,

rpt =
diag =
     ("f14/Aircraft Dynamics Model");

Name of the report into which the diagram will go, specified as the report variable name.

Output Arguments

expand all

Location of snapshot image file, returned as a string. The location is a temporary folder that is deleted when the report is closed. To retain the folder, set the Debug property of

Introduced in R2018b