Method CheckLayouts
CheckLayouts(string)
Checks the layouts of a drawing for Import Layouts as Sheets and for the wizard's Choose Layouts page: each layout but Model, in the order of the tabs, with the reason it cannot become a sheet where it cannot. A layout is refused when its name holds a # (a sheet set cannot use it), when it is a sheet of this set already, or when it is a sheet of another sheet set that is there: the set the drawing's mark names, if it is not this one and still lists the layout. A drawing that is not a DWG has no layout that can be a sheet.
public IReadOnlyList<CadSheetImportLayout> CheckLayouts(string drawingFile)
Parameters
drawingFilestringThe path of the drawing.
Returns
- IReadOnlyList<CadSheetImportLayout>
The layouts; empty where the drawing is not a DWG.
Exceptions
- ArgumentNullException
Thrown when the path is null.
- FileNotFoundException
Thrown when the drawing is not there.