Method ApplyTo
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
ApplyTo(CadDocument, CadSpace)
Writes the settings into the plot settings of a space's LAYOUT, as Apply to Layout does, one undo step named PLOT: the plotter's name (group 2), the sheet's name, size and margins in millimetres (4, 40 to 45, 72), its turn (73) as AutoCAD reckons it from the sheet as named, the offset (46, 47), what is plotted (74) and the window (48, 49, 140, 141), the scale (142, 143, and 75 with 147 and flag 16 where it is one of AutoCAD's standard scales, scaled to fit as 75 of 0), centring (flag 4), the table (7) by the name of its file (StyleSheet), and the flags of plot styles (32), lineweights (128) and their scaling (64). Plot transparency is not written. A layout's limits follow its sheet, as DxfLayout makes them.
public CadEditResult ApplyTo(CadDocument document, CadSpace space)
Parameters
documentCadDocumentThe document.
spaceCadSpaceThe space.
Returns
- CadEditResult
What came of the edit; refused where the space has no LAYOUT to write to.
Exceptions
- ArgumentNullException
Thrown when the document or the space is null.