Skip to content

Block definition writed in entities section #24

@solex94

Description

@solex94

Hello. First of all, I want to congratulate you on this very good project.
I'm new to using DXFighter and I'm trying to define a block by:

$dxf = new \DXFighter\DXFighter();
$aBlock = new \DXFighter\lib\Block('MyBlock1');
$dxf->addEntity($aBlock);
$dxf->saveAs('tempfiles/dxfighter.dxf');

My CAD tool fails to open the generated DXF and it seems that, unless I am mistaken, the block definition is in the ENTITIES section rather than BLOCKS.
Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions