Skip to content

Parse BLOCKS + INSERT (block references) with flattening #5

Description

@gsdali

Why: McMaster (and most AutoCAD) DXFs put the title-block template — and sometimes part geometry — inside BLOCK definitions referenced by INSERT entities. SwiftDXF has no INSERT case, so block-nested geometry is invisible (and the title block can't be cleanly identified/dropped).

Ask: parse the BLOCKS section (named block definitions = lists of entities) and INSERT entities (block name + insertion point group 10 + scale 41/42/43 + rotation 50). Provide flattened geometry: each INSERT expands to its block's entities transformed by the insert's translate/scale/rotate, tagged with the block name (so a consumer can keep or drop e.g. the title block). Nested INSERTs should recurse. Column/row arrays (70/71) can be a follow-up. Validate against ezdxf flattening of the same files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions