Method Add
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
Add(string)
Starts a new drawing and shows it, as QNEW does: from the template, named Drawing1.dwg and then on, with no file of its own until it is saved.
public CadDocument Add(string template = null)
Parameters
templatestringThe full path of a template (.dwt, .dwg or .dxf), or null for the app's own: the one Global settings name for QNEW, else the metric template.
Returns
- CadDocument
The drawing.
Exceptions
- InvalidOperationException
Thrown when the template cannot be read (the message says why), with no window, or while a command runs in the drawing shown.