Table of Contents

Method InsertField

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

InsertField(CadDocument, string, int, int, string)

Puts a field into a cell, as Insert Field does with the Field dialog's code: the cell shows the words the field comes to, and keeps the field to evaluate again, one undo step.

public static CadEditResult InsertField(CadDocument document, string handle, int row, int column, string fieldCode)

Parameters

document CadDocument

The document.

handle string

The table's handle.

row int

The row, from nought.

column int

The column, from nought.

fieldCode string

The field in its markers, as the Field dialog gives it: %<\AcVar Login>%.

Returns

CadEditResult

What came of it; refused where the code is no field, the cell is a block cell or locked, or the drawing is one before R2004.