Table of Contents

Method TryRead

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

TryRead(DxfEntity, out CadOwnerTag)

Reads the tag of an entity: its extended data of ApplicationName, two or three strings (1000), the owner and the object id not empty. Strings after the third are left unread.

public static bool TryRead(DxfEntity entity, out CadOwnerTag tag)

Parameters

entity DxfEntity

The entity.

tag CadOwnerTag

The tag; null where the entity has none.

Returns

bool

Whether the entity has a tag: false for one with no data of the application, and for one whose data is not a tag, as a string that does not read back or a group of another code.

Exceptions

ArgumentNullException

Thrown when the entity is null.