Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Block definition writed in entities section #24

Open
solex94 opened this issue Feb 1, 2023 · 0 comments
Open

Block definition writed in entities section #24

solex94 opened this issue Feb 1, 2023 · 0 comments

Comments

@solex94
Copy link

solex94 commented Feb 1, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant