Table of Contents

Property Height

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

Height

Gets or sets the height of the box the MTEXT is given (group 46), as AutoCAD's Height; where the record gives none, the height of its columns of one height, from its embedded object (41) or its extended data of ACAD (ACAD_MTEXT_DEFINED_HEIGHT), as ezdxf reads it; nought where it gives neither, and from R2007 for dynamic columns of their own heights, whose ACAD_MTEXT_DEFINED_HEIGHT is the first column's, as AutoCAD 2021 writes and reads it. A file older than R2007 (AC1021) has no group 46, and its height is that of the extended data whatever the columns: the MTEXT of R2000 in three static columns 30 high has the height 30, and AutoCAD 2021 read its own R2000 MTEXT in dynamic columns 15, 25 and 0 high, of the defined height 15, as 15 high (its 09-a). An annotative MTEXT's is that of the context it is read at (its 41), as its Width is.

public double Height { get; set; }

Property Value

double

Set, written as group 46 from R2007; before it in ACAD_MTEXT_DEFINED_HEIGHT, set there only on an MTEXT in columns of one height, as the first column's height is that of dynamic columns of their own heights.

Exceptions

ArgumentOutOfRangeException

Thrown when the height set is below nought or not a finite number.

InvalidOperationException

Thrown when the MTEXT is erased, or a height is set in a file older than R2007 on an MTEXT that is not in columns of one height.