Table of Contents

Struct DxfTypedValue

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

One group of a DXF file as it stands in the file, as AutoCAD's TypedValue is one value of extended data or of a result buffer: its code, and its value as the text printed on the line after it.

public readonly struct DxfTypedValue
Inherited Members

Remarks

The value is the line as it is, its spaces kept and nothing read into it: the real of group 10 is its digits, as "4.8721540113315704", and the handle of group 5 its hexadecimal, as "1A3". Where AutoCAD's TypedValue holds a number as a number, this one holds the text a file writes, so that what is read is written back to the byte.

new DxfTypedValue(1000, "B-12") is a text of extended data, and new DxfTypedValue(70, "4") the group of the header that says a drawing is in millimetres.

Constructors

DxfTypedValue(int, string)

Initializes a group of a code and the value it is written with, for extended data and the header, as AutoCAD's TypedValue(typeCode, value): new DxfTypedValue(1000, "B-12") or new DxfTypedValue(70, "4").

Properties

TypeCode

Gets the group code, as AutoCAD's TypeCode: 0 for the type of a record, 8 for a layer, 10, 20 and 30 for the coordinates of a first point, 1000 to 1071 for extended data, and so on, as the DXF reference numbers them.

Value

Gets the value as the file prints it, a carriage return at the end of its line taken off, as AutoCAD's Value gives a value: here always the text, the number 2.5 as "2.5".

Methods

ToString()

Gets the group as the two lines of a file would print it, the code and the value with a space between.