Table of Contents

Property ColumnType

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

ColumnType

Gets or sets how the MTEXT is set in columns, as AutoCAD's ColumnType: from its embedded object from R2018 (group 71), else from its extended data of ACAD (75), as ezdxf reads them; NoColumns where it gives none. In a file older than R2007 (AC1021), which brought columns, the extended data are columns only with the MTEXTs of the later columns they link (ACAD_MTEXT_COLUMNS), as AutoCAD and ezdxf write them: AutoCAD 2021 read three MTEXTs of R2000 given the column data alone, two static columns 50 wide among them, as of no columns, each 50 wide (Width), the one of a defined height of 15 that high (Height).

public DxfColumnType ColumnType { get; set; }

Property Value

DxfColumnType

Set, the columns written in the form of the file's version, as AutoCAD writes them: from R2018 (AC1032) the MTEXT's embedded object (group 101 on), before it the extended data of ACAD, between ACAD_MTEXT_COLUMN_INFO_BEGIN and _END, with ACAD_MTEXT_DEFINED_HEIGHT; the other form, where the record has it, taken out. An MTEXT of no columns given some has one column as wide as its Width, with no gutter, of auto height where they are dynamic; SetStaticColumns(double, double, int) and SetDynamicColumns(double, double, bool) give the rest at once. NoColumns takes the columns out, the linked MTEXTs of the columns of a file before R2018 (ACAD_MTEXT_COLUMNS) left as MTEXTs of their own, their words where they stand.

Exceptions

ArgumentOutOfRangeException

Thrown when the type set is not one of AutoCAD's, 0 to 2.

InvalidOperationException

Thrown when the MTEXT is erased, or given columns in a file older than R2007 with no MTEXTs of its later columns linked, which the library does not make.