Table of Contents

Constructor DxfField

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

DxfField(string)

Initializes a field made in code of the code of one field, as AutoCAD's Field(fieldCode): the code in its markers, %<\AcVar Date \f "dd/MM/yyyy">%, its evaluator the word after the backslash, AcVar, its code what the markers hold; to be given to an object by SetField(DxfField).

public DxfField(string fieldCode)

Parameters

fieldCode string

The code of the field, in its markers %< and >%.

Exceptions

ArgumentNullException

Thrown when the code is null.

ArgumentException

Thrown when the code has a line break in it, is not one field in its markers, or names no evaluator after the backslash it begins with.

DxfField(string, bool)

Initializes a field made in code, as AutoCAD's Field(fieldCode, textField): of one field as DxfField(string), or, as a text field, of a text with fields in it, each field in its markers, its evaluator _text: new DxfField("Drawn %<\AcVar Date>% by %<\AcVar Login>%", true) is the text field of the code Drawn %<_FldIdx 0>% by %<_FldIdx 1>% with the two fields as its children. A marker inside a field, as the object of %<\AcObjProp Object(%<_ObjId 2130>%).Area>%, is part of that field's code, kept as written: the library names no object for it (97 of 0 and no 331 written), so that AutoCAD cannot find the object such a field reads, and shows it as one it could not evaluate.

public DxfField(string fieldCode, bool textField)

Parameters

fieldCode string

The code: one field in its markers, or a text with fields in it.

textField bool

Whether the code is a text with fields in it.

Exceptions

ArgumentNullException

Thrown when the code is null.

ArgumentException

Thrown when the code has a line break in it or a field marker it does not close, or, of one field, is not one field in its markers or names no evaluator.