Table of Contents

Method FieldFromMText

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

FieldFromMText(DxfMText)

Gives the dimension's text the field of an MTEXT, as AutoCAD's FieldFromMText: a copy of the MTEXT's field of its words (GetField()) and its children, every group of them kept, given to the dimension's words as SetField(DxfField) gives one, in the place of the field it had; where the MTEXT has none, the dimension's is taken out, so that the two agree. The text the dimension writes (1) is not changed.

public void FieldFromMText(DxfMText dimMText)

Parameters

dimMText DxfMText

The MTEXT, of the dimension's drawing.

Exceptions

ArgumentNullException

Thrown when the MTEXT is null.

ArgumentException

Thrown when the MTEXT is not of the dimension's drawing, or is erased.

InvalidOperationException

Thrown when the dimension is in no file, or is erased.