# Not Getting All the Block Reference in Document

**URL:** <https://forum.dynamobim.com/t/not-getting-all-the-block-reference-in-document/92561>\
**Category:** Civil 3D\
**Tags:** dynamo\
**Created:** [August 4, 2023, 5:14am UTC](https://forum.dynamobim.com/t/not-getting-all-the-block-reference-in-document/92561 "2023-08-04T05:14:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Diptajit.Das](https://avatars.discourse-cdn.com/v4/letter/d/6bbea6/32.png) [@Diptajit.Das](https://forum.dynamobim.com/u/Diptajit.Das)\
**Post date:** [August 4, 2023, 5:14am UTC](https://forum.dynamobim.com/t/not-getting-all-the-block-reference-in-document/92561/1 "2023-08-04T05:14:59Z")

</div>

I am trying to get all the Block References of a Block on the Title Block Layer in a document. But I am getting an empty list when using all objects of the type node. Can someone,

 ![Dynamo Civil3D_2023-08-04_10-35-30](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/6/4636e4a5755eebf7b750c7333c6d722fe0e76704.png)  
please help with that.

---

<div class="post-metadata">

**Author:** ![Anton\_Huizinga](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/anton_huizinga/32/155377_2.png) [@Anton\_Huizinga](https://forum.dynamobim.com/u/Anton_Huizinga)\
**Post date:** [August 4, 2023, 7:10am UTC](https://forum.dynamobim.com/t/not-getting-all-the-block-reference-in-document/92561/2 "2023-08-04T07:10:18Z")

</div>

The ‘block’ input port of the last node needs a reference to the space (ModelSpace or PaperSpace).

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/5/75fd25eaeb1a88feb40c3d53ac00d8e5d41b5018.png)

You can get all Block References in a certain space (not whole drawing). I think you need another approach for that.

---

<div class="post-metadata">

**Author:** ![patrick.ericson](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/patrick.ericson/32/121411_2.png) [@patrick.ericson](https://forum.dynamobim.com/u/patrick.ericson)\
**Post date:** [August 4, 2023, 7:14am UTC](https://forum.dynamobim.com/t/not-getting-all-the-block-reference-in-document/92561/3 "2023-08-04T07:14:18Z")

</div>

Try this approach  
In my title block I added two types of block references, one named circle and one named rectangle, Then I added to title block as a Block instead of Model Space or Paper Space.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/2/d2f4237606e67bf04fc34b7a9073caefe3442a37.png)

And then you can continue to filter out the correct Block reference

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/d/dd16461642b4c525c13043868ee08bc5b1587e7f.png)

---

<div class="post-metadata">

**Author:** ![Diptajit.Das](https://avatars.discourse-cdn.com/v4/letter/d/6bbea6/32.png) [@Diptajit.Das](https://forum.dynamobim.com/u/Diptajit.Das)\
**Post date:** [August 4, 2023, 8:56am UTC](https://forum.dynamobim.com/t/not-getting-all-the-block-reference-in-document/92561/4 "2023-08-04T08:56:40Z")

</div>

Still getting an empty list can you please suggest?

 ![1](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/5/3540b8727f9b48a1c55f97cbf45e2e9c8b2b5bc7.png)

---

<div class="post-metadata">

**Author:** ![Diptajit.Das](https://avatars.discourse-cdn.com/v4/letter/d/6bbea6/32.png) [@Diptajit.Das](https://forum.dynamobim.com/u/Diptajit.Das)\
**Post date:** [August 4, 2023, 8:59am UTC](https://forum.dynamobim.com/t/not-getting-all-the-block-reference-in-document/92561/5 "2023-08-04T08:59:04Z")

</div>

I am not sure but I think I model space is giving me all the blocks present in it. Where as what I am looking for is the all the reference of a block inside a document.

---

<div class="post-metadata">

**Author:** ![patrick.ericson](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/patrick.ericson/32/121411_2.png) [@patrick.ericson](https://forum.dynamobim.com/u/patrick.ericson)\
**Post date:** [August 4, 2023, 9:59am UTC](https://forum.dynamobim.com/t/not-getting-all-the-block-reference-in-document/92561/6 "2023-08-04T09:59:27Z")

</div>

Inside the dwg? Do you mean both in model and in paperspace?

---

<div class="post-metadata">

**Author:** ![Anton\_Huizinga](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/anton_huizinga/32/155377_2.png) [@Anton\_Huizinga](https://forum.dynamobim.com/u/Anton_Huizinga)\
**Post date:** [August 4, 2023, 10:34am UTC](https://forum.dynamobim.com/t/not-getting-all-the-block-reference-in-document/92561/7 "2023-08-04T10:34:36Z")

</div>

That is what I said 🙂 You need a different approach.

Instead of a single block (PaperSpace or ModelSpace) you need to feed it with a list of Layouts. You need the Camber package for this to create a list of Layout blocks.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/4/24d1a2b08e9a2e77baccab4343676fc517629ce4.png)

With the list of Block References you can filter this by name to find the title blocks.
