# Determine Layout of a Block Reference

**URL:** <https://forum.dynamobim.com/t/determine-layout-of-a-block-reference/98338>\
**Category:** Civil 3D\
**Tags:** python, dynamo\
**Created:** [February 21, 2024, 3:38pm UTC](https://forum.dynamobim.com/t/determine-layout-of-a-block-reference/98338 "2024-02-21T15:38:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![qnliebbe](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/qnliebbe/32/198820_2.png) [@qnliebbe](https://forum.dynamobim.com/u/qnliebbe)\
**Post date:** [February 21, 2024, 3:38pm UTC](https://forum.dynamobim.com/t/determine-layout-of-a-block-reference/98338/1 "2024-02-21T15:38:18Z")

</div>

I have a block reference selected and I want to determine what layout this block reference lives on. Any ideas?

---

<div class="post-metadata">

**Author:** ![Mike.Buttery](https://avatars.discourse-cdn.com/v4/letter/m/b19c9b/32.png) [@Mike.Buttery](https://forum.dynamobim.com/u/Mike.Buttery)\
**Post date:** [February 22, 2024, 5:17am UTC](https://forum.dynamobim.com/t/determine-layout-of-a-block-reference/98338/2 "2024-02-22T05:17:42Z")

</div>

Get the BlockTableRecord and then use the [LayoutId](https://help.autodesk.com/view/OARX/2024/ENU/?guid=OARX-ManagedRefGuide-Autodesk_AutoCAD_DatabaseServices_BlockTableRecord_LayoutId) property to determine the Layout

---

<div class="post-metadata">

**Author:** ![gilberto.arechigaiba](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/gilberto.arechigaiba/32/204980_2.png) [@gilberto.arechigaiba](https://forum.dynamobim.com/u/gilberto.arechigaiba)\
**Post date:** [March 4, 2024, 9:47am UTC](https://forum.dynamobim.com/t/determine-layout-of-a-block-reference/98338/3 "2024-03-04T09:47:45Z")

</div>

Amigo @qnliebbe buenas. this is how you can filter the blocks or elements present in each layout, with the Camber package you can get the UI name of the layout (actually it gives me an error don’t notice), note the RealName node is in the OpenMep package for C3D.

 ![Objects in layouts](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/0/9028371506fabebd74651574ffd1332bfa24c36f.png)
