Page 1 of 1

Too many blocks displayed

Posted: Wed Dec 03, 2014 7:05 pm
by rori
Hi

I have a problem with a block, which is shown in my software, although it clearly does not fit into the drawing.
It is - correctly - not displayed in QCAD and other DXF reading programs.

But in the Entities Section there is a INSERT Entity which calls this block. I could not find why this block should not be inserted.
Any ideas what can prevent a block from being inserted?

Unfortunately I cannot include the file because it is confidential.


Thanks.
Robert.

Re: Too many blocks displayed

Posted: Wed Dec 03, 2014 10:08 pm
by andrew
Could you e-mail the drawing to us?

The presence of an INSERT entity does mean that there is a block reference.
I can't actually think for a reason why a block insert would have to be intentionally ignored but maybe I'm overseeing something.

Re: Too many blocks displayed

Posted: Thu Dec 04, 2014 11:19 am
by rori
I sent you the original file as PM.
I attach here the image how it's imported in my program.
The white and red frame should not be there, and is not when using QCAD or other programs.

Thanks for any help.

Re: Too many blocks displayed

Posted: Thu Dec 04, 2014 11:54 am
by andrew
Thanks.

The block reference (INSERT) and a POINT entity which is also in the ENTITIES section both use the DXF code 67, a flag that indicates that the entity should be imported into paper space.

I've added proper support for this flag to dxflib v3.7.5:
http://www.qcad.org/en/dxflib-downloads

You can check for this flag in your DL_CreationInterface implementation:
if (attributes.isInPaperSpace()) {
    ...
}

Re: Too many blocks displayed

Posted: Thu Dec 04, 2014 4:46 pm
by rori
Thank you very much - this helped a lot!

Best regards and Grüezi
Robert.