Table of Contents

Method Insert

Namespace
OpenCAD2D.SheetSets
Assembly
OpenCAD2D.Core.dll

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

document CadDocument

The drawing; its current space is a layout.

file CadSheetSetFile

The sheet set to list.

settings CadSheetListTableSettings

The settings; copied, so that changing them later changes no table.

corner GeoPoint2

The top left corner of the table.

tableStyle string

The 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).