# Automatic Dimension Walls

**URL:** <https://forum.dynamobim.com/t/automatic-dimension-walls/6970>\
**Category:** Developers\
**Created:** [October 21, 2016, 2:06pm UTC](https://forum.dynamobim.com/t/automatic-dimension-walls/6970 "2016-10-21T14:06:31Z")\
**Posts on this page:** 12\
**Page:** 3

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [October 10, 2019, 2:17pm UTC](https://forum.dynamobim.com/t/automatic-dimension-walls/6970/41 "2019-10-10T14:17:24Z")

</div>

As noted in post #1 the OOTB tool has limits on what it grabs. This post in combination with the many other posts associated with dimensioning allow you to configure a tool that hits the references you desire.

---

<div class="post-metadata">

**Author:** ![selim.celem](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/selim.celem/32/73146_2.png) [@selim.celem](https://forum.dynamobim.com/u/selim.celem)\
**Post date:** [October 10, 2019, 2:29pm UTC](https://forum.dynamobim.com/t/automatic-dimension-walls/6970/42 "2019-10-10T14:29:08Z")

</div>

Ahaa… Thanks for the explanation Jacob

---

<div class="post-metadata">

**Author:** ![Mark.Ackerley](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/mark.ackerley/32/79310_2.png) [@Mark.Ackerley](https://forum.dynamobim.com/u/Mark.Ackerley)\
**Post date:** [October 10, 2019, 2:31pm UTC](https://forum.dynamobim.com/t/automatic-dimension-walls/6970/43 "2019-10-10T14:31:11Z")

</div>

Hey,

Generally you only want the references which intersect the face you’re interested in… Pointy walls are also an issue… etc. etc. This approach gives you control…

Hopefully Revit will get the functionality so this isn’t required 🙂

The main benefit is that I’ve learnt a lot of Python doing it 😃

Cheers,

Mark

---

<div class="post-metadata">

**Author:** ![fluffyhugger](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/fluffyhugger/32/54396_2.png) [@fluffyhugger](https://forum.dynamobim.com/u/fluffyhugger)\
**Post date:** [October 16, 2019, 7:44am UTC](https://forum.dynamobim.com/t/automatic-dimension-walls/6970/44 "2019-10-16T07:44:45Z")

</div>

> [@Mark.Ackerley](#):
>
> The main benefit is that I’ve learnt a lot of Python doing it 😃

I’d say this is the most important thing and great example for others 💃

---

<div class="post-metadata">

**Author:** ![horacio.trujilloEK4X](https://avatars.discourse-cdn.com/v4/letter/h/4da419/32.png) [@horacio.trujilloEK4X](https://forum.dynamobim.com/u/horacio.trujilloEK4X)\
**Post date:** [February 19, 2020, 11:57pm UTC](https://forum.dynamobim.com/t/automatic-dimension-walls/6970/45 "2020-02-19T23:57:30Z")

</div>

Hi, Viktor. I tried the method you are describing in here but it seems Dynamo 2.0.3 does not allow you to create a wall by face. Both, “RevitFaceReference.FromDynamoSurface” and “Wall.ByFace” are giving me Null values, or maybe i´m doing something wrong. Could you please help me?

Dynamo Version: 2.0.3.8810  
Revit 2019.2

 ![AutomaticDimensionWalls](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/b/6b6094484868714e598bd7dcb49e1afd99a430c3.png)

---

<div class="post-metadata">

**Author:** ![viktor\_kuzev](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/viktor_kuzev/32/48254_2.png) [@viktor\_kuzev](https://forum.dynamobim.com/u/viktor_kuzev)\
**Post date:** [February 22, 2020, 6:13pm UTC](https://forum.dynamobim.com/t/automatic-dimension-walls/6970/46 "2020-02-22T18:13:37Z")

</div>

My advise is to open a new topic with a proper screenshot and the Dynamo file

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/1/f10d908fc7809f4e7fe79cfaf8ff33cca7d1aa61.png)  
I can’t really see anything from that one

---

<div class="post-metadata">

**Author:** ![horacio.trujilloEK4X](https://avatars.discourse-cdn.com/v4/letter/h/4da419/32.png) [@horacio.trujilloEK4X](https://forum.dynamobim.com/u/horacio.trujilloEK4X)\
**Post date:** [February 24, 2020, 3:36pm UTC](https://forum.dynamobim.com/t/automatic-dimension-walls/6970/47 "2020-02-24T15:36:02Z")

</div>

Okok, Here is the new post. Thanks

> [@Dimension openings in walls](https://forum.dynamobim.com/t/dimension-openings-in-walls/47219):
>
> Hi All, I tried the method described in this post [Automatic Dimension Walls](https://forum.dynamobim.com/t/automatic-dimension-walls/6970/5) but it seems Dynamo 2.0.3 does not allow you to create a wall by face. Both, “RevitFaceReference.FromDynamoSurface” and “Wall.ByFace” are giving me Null values, or maybe i´m doing something wrong. Could you please help me? :)) [DimensionsForWallOpenings.dyn](https://forum.dynamobim.com/uploads/short-url/uAqvYi9YOUuxOr757mKtKVQSNfB.dyn) (36.3 KB) Dynamo Version: 2.0.3.8810 Revit 2019.2

---

<div class="post-metadata">

**Author:** ![LuSchi](https://avatars.discourse-cdn.com/v4/letter/l/9de0a6/32.png) [@LuSchi](https://forum.dynamobim.com/u/LuSchi)\
**Post date:** [July 25, 2020, 1:14am UTC](https://forum.dynamobim.com/t/automatic-dimension-walls/6970/48 "2020-07-25T01:14:20Z")

</div>

![DIMENSION](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/6/664a9f67e72cc95195673491444300a7c772172c.png)  
Hi, guys!  
I used @viktor_kuzev script on elements of pillars, beams and foundations and there are repeated points that appear equal to zero.  
Would anyone know how to help me fix this?

---

<div class="post-metadata">

**Author:** ![viktor\_kuzev](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/viktor_kuzev/32/48254_2.png) [@viktor\_kuzev](https://forum.dynamobim.com/u/viktor_kuzev)\
**Post date:** [July 25, 2020, 11:43am UTC](https://forum.dynamobim.com/t/automatic-dimension-walls/6970/49 "2020-07-25T11:43:06Z")

</div>

Most probably there are multiple faces on top of each other taken as references. Also in this python node includenonvisible objects is set to true. Which means that if the pillar has different geometries for different detail level they will all be references. You can set that to false as a first try.

---

<div class="post-metadata">

**Author:** ![selim.celem](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/selim.celem/32/73146_2.png) [@selim.celem](https://forum.dynamobim.com/u/selim.celem)\
**Post date:** [July 28, 2020, 6:53am UTC](https://forum.dynamobim.com/t/automatic-dimension-walls/6970/50 "2020-07-28T06:53:37Z")

</div>

> [@Remove Zero value dimension](https://forum.dynamobim.com/t/remove-zero-value-dimension/9698/6):
>
> It is straightforward with the Dimension.Properties node. Before : After : [Delete dimensions equal to 0.dyn](https://forum.dynamobim.com/uploads/short-url/3Px8sDDMnTZw1rdZjK9IvW1PhyP.dyn) (23.2 KB)

@Alban_de_Chasteigner gave me a solution for the 0 values appearing on a dimension line. However, this didn’t quite work for me since it didn’t get back some of the references for the newly created dimension line.

Like Viktor says, this happens if you have several references back to back on the same line. That’s why the 0’s are appearing since there is 0 distance between those references. Try to filter your list by getting one of those elements on the same axis value.

---

<div class="post-metadata">

**Author:** ![shashank.baganeACM](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@shashank.baganeACM](https://forum.dynamobim.com/u/shashank.baganeACM)\
**Post date:** [November 12, 2021, 10:45am UTC](https://forum.dynamobim.com/t/automatic-dimension-walls/6970/51 "2021-11-12T10:45:39Z")

</div>

I am getting this error @viktor_kuzev

 ![Error of topology.faces](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/d/1d03ebc370c9c3549cd7bcf60a7f66a17d34c1ed.png)

Can you please help me out for this ?

---

<div class="post-metadata">

**Author:** ![viktor\_kuzev](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/viktor_kuzev/32/48254_2.png) [@viktor\_kuzev](https://forum.dynamobim.com/u/viktor_kuzev)\
**Post date:** [November 12, 2021, 10:53am UTC](https://forum.dynamobim.com/t/automatic-dimension-walls/6970/52 "2021-11-12T10:53:36Z")

</div>

Use Element.Geometry between the two. Or just Element.Faces  
Also the original post is from 5 years ago so if you have further questions I’d suggest you open a new topic

[Previous page](https://forum.dynamobim.com/t/automatic-dimension-walls/6970.md?page=2)
