# Column Dimension Base on Closest Grid

**URL:** <https://forum.dynamobim.com/t/column-dimension-base-on-closest-grid/110040>\
**Category:** Revit\
**Tags:** revit, dynamo\
**Created:** [May 12, 2025, 12:43pm UTC](https://forum.dynamobim.com/t/column-dimension-base-on-closest-grid/110040 "2025-05-12T12:43:49Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![AngelGrumez](https://avatars.discourse-cdn.com/v4/letter/a/f19dbf/32.png) [@AngelGrumez](https://forum.dynamobim.com/u/AngelGrumez)\
**Post date:** [May 12, 2025, 12:43pm UTC](https://forum.dynamobim.com/t/column-dimension-base-on-closest-grid/110040/1 "2025-05-12T12:43:49Z")

</div>

![Column Grid Lines Dimension_Question](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/2/e2cd0cf586d4fe838a3e8db307ff8de05805aab4.png)

Hi,

I’m working on a Dynamo script to automatically place dimensions from structural columns to the closest grid lines. I’ve successfully found the closest grids and the preview lines show correctly in Dynamo, but the `Dimension.ByReferences` node returns `null`, and no dimensions are placed.

**Here’s what I’ve done:**

- I’m collecting columns and grids using `All Elements of Category`.
- I calculate the closest grid to each column.
- The lines are visualized correctly in Dynamo’s background preview.
- The node outputs `null`, and no dimensions are created.

**What I need help with:**

- Can someone help me find **where the error might be**?
- Are there common mistakes that cause `Dimension.ByReferences` to fail silently like this?

And any good practices when doing dimensions in dynamo

Thank you

---

<div class="post-metadata">

**Author:** ![AngelGrumez](https://avatars.discourse-cdn.com/v4/letter/a/f19dbf/32.png) [@AngelGrumez](https://forum.dynamobim.com/u/AngelGrumez)\
**Post date:** [May 12, 2025, 12:44pm UTC](https://forum.dynamobim.com/t/column-dimension-base-on-closest-grid/110040/2 "2025-05-12T12:44:47Z")

</div>

Here’s the Preview

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

---

<div class="post-metadata">

**Author:** ![patrick\_podeyn](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/patrick_podeyn/32/86368_2.png) [@patrick\_podeyn](https://forum.dynamobim.com/u/patrick_podeyn)\
**Post date:** [May 12, 2025, 3:08pm UTC](https://forum.dynamobim.com/t/column-dimension-base-on-closest-grid/110040/3 "2025-05-12T15:08:00Z")

</div>

My initial thought is it’s a list @ level issue, I’d try setting both the Lines and Ref lines list at level to level 2. What does the list structure look like for your view and for your dimension type?

---

<div class="post-metadata">

**Author:** ![AngelGrumez](https://avatars.discourse-cdn.com/v4/letter/a/f19dbf/32.png) [@AngelGrumez](https://forum.dynamobim.com/u/AngelGrumez)\
**Post date:** [May 12, 2025, 3:59pm UTC](https://forum.dynamobim.com/t/column-dimension-base-on-closest-grid/110040/4 "2025-05-12T15:59:14Z")

</div>

Hi,

I’m not sure what you mean sir but here’s the nodes with list for dimension and view, I also tried changing the Ref Lines and Lines to level 2 in the last nodes

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

---

<div class="post-metadata">

**Author:** ![AngelGrumez](https://avatars.discourse-cdn.com/v4/letter/a/f19dbf/32.png) [@AngelGrumez](https://forum.dynamobim.com/u/AngelGrumez)\
**Post date:** [May 12, 2025, 4:01pm UTC](https://forum.dynamobim.com/t/column-dimension-base-on-closest-grid/110040/5 "2025-05-12T16:01:17Z")

</div>

Btw here is my reference in that script

[![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/d/7d9f815d60bad968546d7878bc325fb507a0c3bf.jpeg "Automated Revit dimensioning using Dynamo!") ](https://www.youtube.com/watch?v=Ip8Icu2Hpso&t=854)

---

<div class="post-metadata">

**Author:** ![patrick\_podeyn](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/patrick_podeyn/32/86368_2.png) [@patrick\_podeyn](https://forum.dynamobim.com/u/patrick_podeyn)\
**Post date:** [May 12, 2025, 4:08pm UTC](https://forum.dynamobim.com/t/column-dimension-base-on-closest-grid/110040/6 "2025-05-12T16:08:58Z")

</div>

Okay, looks like the object type you’re using for dimension type is not what it wants. You’re passing a string when it needs a Revit element.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/8/9800a788186c127d23a5bae74f8131c63d3146e0.png)

See if this resolves the issue, I’ll try to build a small sample on my end to verify that list at level is the issue.

---

<div class="post-metadata">

**Author:** ![AngelGrumez](https://avatars.discourse-cdn.com/v4/letter/a/f19dbf/32.png) [@AngelGrumez](https://forum.dynamobim.com/u/AngelGrumez)\
**Post date:** [May 13, 2025, 4:44am UTC](https://forum.dynamobim.com/t/column-dimension-base-on-closest-grid/110040/7 "2025-05-13T04:44:25Z")

</div>

Hi,

That fixed the null problem

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/7/a7cac94607e8a36f2a3582dce8a18e2af09bc58e.jpeg)  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/4/b4c28ef89ebb8ef69c427e5371e852edeb4a5dc1.png)

Thank you again @patrick_podeyn

---

<div class="post-metadata">

**Author:** ![patrick\_podeyn](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/patrick_podeyn/32/86368_2.png) [@patrick\_podeyn](https://forum.dynamobim.com/u/patrick_podeyn)\
**Post date:** [May 13, 2025, 8:21pm UTC](https://forum.dynamobim.com/t/column-dimension-base-on-closest-grid/110040/8 "2025-05-13T20:21:39Z")

</div>

Awesome!

---

<div class="post-metadata">

**Author:** ![qgw112233](https://avatars.discourse-cdn.com/v4/letter/q/a8b319/32.png) [@qgw112233](https://forum.dynamobim.com/u/qgw112233)\
**Post date:** [July 26, 2025, 7:30am UTC](https://forum.dynamobim.com/t/column-dimension-base-on-closest-grid/110040/9 "2025-07-26T07:30:13Z")

</div>

Hi, angle, can you share you script.  
I am also working on this and have some problems

---

<div class="post-metadata">

**Author:** ![qgw112233](https://avatars.discourse-cdn.com/v4/letter/q/a8b319/32.png) [@qgw112233](https://forum.dynamobim.com/u/qgw112233)\
**Post date:** [July 27, 2025, 2:27pm UTC](https://forum.dynamobim.com/t/column-dimension-base-on-closest-grid/110040/10 "2025-07-27T14:27:19Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/a/ea9fc71e9a3864f6b3ece48a4674cc4f4045602c.png)  
May i ask, in that List.FilterByBoolMask, What is being searched for?
