Represents a DXF block that groups multiple DXF entities together. A block can be inserted, transformed, or reused within the DXF drawing.

interface DxfBlock {
    color?: number;
    entities: DxfEntity[];
    layer?: string;
    name: string;
    position?: DxfPoint;
    type: string | number;
}

Properties

color?: number

Optional color index or code for the block.

entities: DxfEntity[]

List of DXF entities that make up the block.

layer?: string

Optional layer name associated with the block.

name: string

The name of the block.

position?: DxfPoint

Optional insertion point or reference position for the block.

type: string | number

The type of block (numeric or string identifier).