Too many blocks displayed

If you are having problems with dxflib, post here. Please report bugs here.

Moderator: andrew

rori
Newbie Member
Posts: 3
Joined: Wed Dec 03, 2014 6:55 pm

Too many blocks displayed

Postby rori » Wed Dec 03, 2014 7:05 pm

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.

User avatar
andrew
Site Admin
Posts: 5292
Joined: Fri Mar 30, 2007 6:07 am

Re: Too many blocks displayed

Postby andrew » Wed Dec 03, 2014 10:08 pm

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.

rori
Newbie Member
Posts: 3
Joined: Wed Dec 03, 2014 6:55 pm

Re: Too many blocks displayed

Postby rori » Thu Dec 04, 2014 11:19 am

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.
Attachments
Test.gif
Test.gif (3.92 KiB) Viewed 9474 times

User avatar
andrew
Site Admin
Posts: 5292
Joined: Fri Mar 30, 2007 6:07 am

Re: Too many blocks displayed

Postby andrew » Thu Dec 04, 2014 11:54 am

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()) {
...
}

rori
Newbie Member
Posts: 3
Joined: Wed Dec 03, 2014 6:55 pm

Re: Too many blocks displayed

Postby rori » Thu Dec 04, 2014 4:46 pm

Thank you very much - this helped a lot!

Best regards and Grüezi
Robert.


Return to “dxflib Troubleshooting and Problems”

Who is online

Users browsing this forum: No registered users and 1 guest