Method Write
Write(CadDocument, CadImageJob, CanvasOptions)
Draws the job's view of its space and writes it to its file, the objects selected alone where it has some.
public static void Write(CadDocument document, CadImageJob job, CanvasOptions options = null)
Parameters
documentCadDocumentThe document.
jobCadImageJobThe image: its view, its file and the objects selected.
optionsCanvasOptionsThe colours and font it is drawn with, the canvas's; those of a new CanvasOptions where null.
Exceptions
- ArgumentNullException
Thrown when the document or the job is null.
- ArgumentException
Thrown when the job names no file.
- IOException
Thrown when the file cannot be written.