# Too many blocks displayed

**URL:** http://forum.qcad.org/t/too-many-blocks-displayed/1809
**Category:** dxflib Troubleshooting and Problems
**Created:** [December 3, 2014, 6:05pm UTC](http://forum.qcad.org/t/too-many-blocks-displayed/1809 "2014-12-03T18:05:45Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![rori](http://forum.qcad.org/letter_avatar_proxy/v4/letter/r/ecae2f/32.png) [@rori](http://forum.qcad.org/u/rori)
#### Post date: [December 3, 2014, 6:05pm UTC](http://forum.qcad.org/t/too-many-blocks-displayed/1809/1 "2014-12-03T18:05:45Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![andrew](http://forum.qcad.org/user_avatar/forum.qcad.org/andrew/32/7_2.png) [@andrew](http://forum.qcad.org/u/andrew)
#### Post date: [December 3, 2014, 9:08pm UTC](http://forum.qcad.org/t/too-many-blocks-displayed/1809/2 "2014-12-03T21:08:25Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![rori](http://forum.qcad.org/letter_avatar_proxy/v4/letter/r/ecae2f/32.png) [@rori](http://forum.qcad.org/u/rori)
#### Post date: [December 4, 2014, 10:19am UTC](http://forum.qcad.org/t/too-many-blocks-displayed/1809/3 "2014-12-04T10:19:40Z")

</div>

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.

 ![Test.gif](https://cdn.qcad.org/original/2X/6/61d0f21c8a40841575c5e3f9f339b1003e8ff61c.gif)

---

<div class="post-metadata">

### Author: ![andrew](http://forum.qcad.org/user_avatar/forum.qcad.org/andrew/32/7_2.png) [@andrew](http://forum.qcad.org/u/andrew)
#### Post date: [December 4, 2014, 10:54am UTC](http://forum.qcad.org/t/too-many-blocks-displayed/1809/4 "2014-12-04T10:54:49Z")

</div>

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:

> **[QCAD - Downloads](https://www.qcad.org/en/dxflib-downloads)**
>
> QCAD - Free Open Source 2D CAD

You can check for this flag in your DL\_CreationInterface implementation:  
if (attributes.isInPaperSpace()) {  
…  
}

---

<div class="post-metadata">

### Author: ![rori](http://forum.qcad.org/letter_avatar_proxy/v4/letter/r/ecae2f/32.png) [@rori](http://forum.qcad.org/u/rori)
#### Post date: [December 4, 2014, 3:46pm UTC](http://forum.qcad.org/t/too-many-blocks-displayed/1809/5 "2014-12-04T15:46:19Z")

</div>

Thank you very much - this helped a lot!

Best regards and Grüezi  
Robert.
