Method Insert
Insert(CadDocument, CadSheetSetFile, CadSheetListTableSettings, GeoPoint2, string)
Makes the table at a corner of the current layout, in the table style named (the drawing's current one where null; Standard where it has none of that name), as one undo step.
public static string Insert(CadDocument document, CadSheetSetFile file, CadSheetListTableSettings settings, GeoPoint2 corner, string tableStyle = null)
Parameters
documentCadDocumentThe drawing; its current space is a layout.
fileCadSheetSetFileThe sheet set to list.
settingsCadSheetListTableSettingsThe settings; copied, so that changing them later changes no table.
cornerGeoPoint2The top left corner of the table.
tableStylestringThe name of the table style; null for the current one.
Returns
- string
The handle of the table.
Exceptions
- ArgumentNullException
Thrown when the document, the set or the settings are null.
- ArgumentException
Thrown when the settings have no column.
- InvalidOperationException
Thrown when the current space is model space, or the table could not be made (the message says why).