Property Active
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
Active
Gets or sets the drawing the user works in, null where none is open: AutoCAD's MdiActiveDocument. Setting it
shows another drawing open, as clicking its row of the DRAWINGS list does; the drawing already shown is left as it
is.
public CadDocument Active { get; set; }
Property Value
Exceptions
- ArgumentNullException
Thrown when set to null.
- ArgumentException
Thrown when set to a drawing that is not open.
- InvalidOperationException
Thrown when set with no window, or while a command runs in the drawing shown.