Table of Contents

Method TakeSnapshot

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

TakeSnapshot()

Keeps the drawing as it stands, to be put back with Reset(CadSnapshot). The undo list is left as it is; the drawing is saved once if it has not been, and again (compressed) only where a setting changed since the list kept it is not in the kept drawing.

public CadSnapshot TakeSnapshot()

Returns

CadSnapshot

The snapshot.

Exceptions

InvalidOperationException

Thrown when a group of edits is open (a command is running), or the Block Editor or a reference edit is open.