Method Close
Close(bool)
Closes the drawing in the app, as the x of its row does, but with no question and no dialog: the app never asks the
user about a drawing closed from here. A drawing with changes not saved is refused unless discard
is set, which throws the changes away. The app shows the next drawing, or its start screen where this was the last;
the drawing is no longer in Documents, and every later call on it throws.
public void Close(bool discard = false)
Parameters
discardboolWhether to close a drawing with changes not saved, without saving them.
Exceptions
- CadRemoteException
Thrown when the drawing is closed already, has changes not saved and
discardis false (A-101.dwg has changes not saved: save it, or close it with discard.), or has a command running in it or a routine of AutoLISP or Python waiting for the user.