Table of Contents

Method SetBinaryDataForKey

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

SetBinaryDataForKey(string, byte[])

Keeps bytes with the object under a key, as AutoCAD's SetBinaryDataForKey: an XRECORD of that name in its extension dictionary, made where it has none, its bytes written as groups 310 of 127 bytes each, as AutoCAD writes binary data; the bytes of an XRECORD of the name replaced. Bytes the same as those kept change nothing.

public void SetBinaryDataForKey(string key, byte[] chunk)

Parameters

key string

The name.

chunk byte[]

The bytes.

Exceptions

ArgumentNullException

Thrown when the key or the bytes are null.

ArgumentException

Thrown when the key is empty or has a control character in it, or names an entry that is not an XRECORD.

InvalidOperationException

Thrown when the object is in no file, is erased, or its file has no OBJECTS section.