Table of Contents

Property XData

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

XData

Gets or sets the extended data of the object, as AutoCAD's XData does: each application's data opened by its name in a group 1001, then its groups 1000 to 1071, as the file writes them.

public IReadOnlyList<DxfTypedValue> XData { get; set; }

Property Value

IReadOnlyList<DxfTypedValue>

Get, every application's data in the order of the record, empty where it has none, a new list on each call. The texts of an application's name (1001), a string (1000) and a layer's name (1003) have their escapes read as letters, as a layer's name has: a letter the file's code page has not, written as \U+0110, comes back as the letter it was set as.

Set, as AutoCAD sets it: each application named in the groups given has its data replaced by what follows its 1001, and an application given with nothing after its 1001 has its data taken out; the data of the applications not named is kept. new[] { new DxfTypedValue(1001, "GHPROBE"), new DxfTypedValue(1000, "B-12"), new DxfTypedValue(1040, "2.5") } gives the application GHPROBE a text and a real. An application the file's table of applications does not list is added to it, as AutoCAD registers one. Data the same as the object has changes nothing.

Exceptions

ArgumentNullException

Thrown when the groups set are null.

ArgumentException

Thrown when the groups set do not begin with a 1001, have a code outside 1000 to 1071, or name an application with no name.

InvalidOperationException

Thrown when the object is erased, or is model or paper space of a file that has no record of it, as one of R12 with no block of it.