Method Reset
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
Reset(CadSnapshot)
Puts the drawing back as it stood when the snapshot was taken: its entities, tables, layouts, handles and header
variables (the current layer and styles, $HANDSEED), the view of each space and the settings the steps changed.
The steps made since are forgotten, so the drawing can be reset again and again from one snapshot. Selected entities
that are still in the drawing stay selected.
public void Reset(CadSnapshot snapshot)
Parameters
snapshotCadSnapshotThe snapshot, of this document.
Exceptions
- ArgumentNullException
Thrown when the snapshot is null.
- ArgumentException
Thrown when the snapshot is of another document.
- InvalidOperationException
Thrown when a group of edits is open (a command is running), or the Block Editor or a reference edit is open.