Table of Contents

Class DwgEntity

Namespace
DwgIO.Model
Assembly
DwgIO.dll

A decoded drawing entity (LINE/CIRCLE/ARC/POINT): common data plus geometry. Entities of other type codes remain inventory-only in this milestone.

public sealed class DwgEntity

Inheritance

Inherited Members

Properties

ColorIndex

DXF 62 colour index (low byte of the stored colour value) from the common preamble.

public int ColorIndex { get; init; }

Property Value

int

Geometry

Geometry payload — meaning depends on DwgIO.Model.DwgEntity.Kind: Line = [x1,y1,z1,x2,y2,z2]; Circle/Arc = [cx,cy,cz,radius] (+ [start,end] radians for Arc); Point = [x,y,z]. Null for non-decoded kinds.

public double[]? Geometry { get; init; }

Property Value

double[]?

Handle

Handle of the entity.

public required ulong Handle { get; init; }

Property Value

ulong

Kind

Which geometry, if any, was decoded.

public required DwgEntityKind Kind { get; init; }

Property Value

DwgEntityKind

LineTypeScale

DXF 48 linetype scale from the common preamble.

public double LineTypeScale { get; init; }

Property Value

double

TypeCode

Raw object type code.

public required ushort TypeCode { get; init; }

Property Value

ushort

TypeName

Type name for the code, e.g. "LINE".

public required string TypeName { get; init; }

Property Value

string

Methods

ToString()

One-line description: type, handle and decoded geometry.

public override string ToString()

Returns

string