Table of Contents

Method InsertField

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

InsertField(string, string)

Inserts a field as AutoCAD's Insert Field does: one place, shown as the words the field came to and written as its code in markers (%<\AcVar Date \f "dd/MM/yyyy">%), in the look of the letters typed there.

public void InsertField(string shown, string code)

Parameters

shown string

The words the field shows.

code string

The field in its markers.

Exceptions

ArgumentException

Thrown when the code is not one in markers, or there are no words to show.