Method Update
Update(CadDocument, string, CadSheetSetFile, CadSheetListTableSettings)
Lists the set again in a table made by Insert(CadDocument, CadSheetSetFile, CadSheetListTableSettings, GeoPoint2, string), as Update Sheet List Table does: the rows are made anew from the settings the table keeps and the set as it is now, in a table of the same corner, style and column widths that takes the old one's place (one undo step), so that a sheet added since is listed and one removed is not.
public static string Update(CadDocument document, string handle, CadSheetSetFile file = null, CadSheetListTableSettings settings = null)
Parameters
documentCadDocumentThe drawing.
handlestringThe handle of the table.
fileCadSheetSetFileThe sheet set; null to open the one the table names.
settingsCadSheetListTableSettingsThe settings to list from, as Edit Sheet List Table Settings gives them; copied and kept in the new table. Null to use the ones the table keeps. A column that stays at its place with the same data type keeps its width; any other takes the width of its data type.
Returns
- string
The handle of the new table.
Exceptions
- ArgumentNullException
Thrown when the document or the handle is null.
- ArgumentException
Thrown when the handle is not that of a sheet list table of the drawing, or the settings have no column.
- FileNotFoundException
Thrown when the table names a set whose file is no longer there and none is given.
- InvalidOperationException
Thrown when the table could not be made again (the message says why).