Method Associate
Associate(string, string)
Makes the sheet another layout, as the Expected Layout row of the Sheet Properties does for a sheet that is missing: the sheet takes the layout's file, name, handle and owner, and the drawing gets the sheet set mark and is saved as a DWG of AutoCAD 2018.
public void Associate(string drawingFile, string layoutName)
Parameters
Exceptions
- ArgumentNullException
Thrown when the drawing or the layout name is null.
- FileNotFoundException
Thrown when the drawing is not there.
- InvalidOperationException
Thrown outside Change(Action<CadSheetSet>), where the drawing has no such layout, or where the layout is refused as CheckLayouts(string) says (a layout this sheet is already is not).
- NotSupportedException
Thrown when the DWG writer would leave something of the drawing out; the drawing is not replaced.