# Auto Dimension

**URL:** <https://forum.dynamobim.com/t/auto-dimension/76345>\
**Category:** Revit\
**Tags:** dynamo\
**Created:** [May 9, 2022, 4:25pm UTC](https://forum.dynamobim.com/t/auto-dimension/76345 "2022-05-09T16:25:14Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![arq.donaldo.diaz](https://avatars.discourse-cdn.com/v4/letter/a/0ea827/32.png) [@arq.donaldo.diaz](https://forum.dynamobim.com/u/arq.donaldo.diaz)\
**Post date:** [May 9, 2022, 4:25pm UTC](https://forum.dynamobim.com/t/auto-dimension/76345/1 "2022-05-09T16:25:14Z")

</div>

Hello!  
I’m Very New to Dynamo, and have managed to make this script to auto Dimension Floor edges, but it has one issue.  
I’ve reached a point where it can make one Dimension line per floor edge, but this line annotates every edge, where I’d like it to reference only the dimension of the particular edge where it is placed, instead of every edge in the horizontal or vertical axis.  
I hope someone can help me with this, I would really appreciate that.  
I’ll leave the script here, and a reference image of my issue.

 ![Problema Dynamo Script](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/8/28235d3c329ec7c2a0fce5445d2b4c2d31e7a84d.jpeg)  
This is what I’d like it to do:

 ![Hope](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/3/839f1bae617a4ea4930e96f10b2ca1921665b1c3.jpeg)

Here’s the script:

 ![Script](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/7/e7c168be1b3b483a6e2c1a66acfebc41525e295d.jpeg)

[C3\_Cotas Automáticas Floor 2.0.dyn](https://forum.dynamobim.com/uploads/short-url/sMvZD3SIYTkfYkLEzlMirMxvIHt.dyn) (96.8 KB)

---

<div class="post-metadata">

**Author:** ![bayowindapo](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/bayowindapo/32/184532_2.png) [@bayowindapo](https://forum.dynamobim.com/u/bayowindapo)\
**Post date:** [May 9, 2022, 6:42pm UTC](https://forum.dynamobim.com/t/auto-dimension/76345/2 "2022-05-09T18:42:40Z")

</div>

You should look into the GeniusLoci package. Lots of great nodes for dimensioning. I think the issue with your script might be the levels.

---

<div class="post-metadata">

**Author:** ![Alban\_de\_Chasteigner](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alban_de_chasteigner/32/39650_2.png) [@Alban\_de\_Chasteigner](https://forum.dynamobim.com/u/Alban_de_Chasteigner)\
**Post date:** [May 9, 2022, 7:25pm UTC](https://forum.dynamobim.com/t/auto-dimension/76345/3 "2022-05-09T19:25:45Z")

</div>

Hi,

Here is an exemple with the _Genius Loci_ package

 ![Dimension floor](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/d/bd84ff6fed97f592140e3af987d97a7f19905956.png)  
 ![Dimension floor2](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/d/bd7d6fb5014dfbc0b3d49146f4f8e3779c960e1d.png)

---

<div class="post-metadata">

**Author:** ![bayowindapo](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/bayowindapo/32/184532_2.png) [@bayowindapo](https://forum.dynamobim.com/u/bayowindapo)\
**Post date:** [May 9, 2022, 8:56pm UTC](https://forum.dynamobim.com/t/auto-dimension/76345/4 "2022-05-09T20:56:17Z")

</div>

Option two. List of floors.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/e/7eaf519148493546595de954097847d2713d15f1.jpeg)  
[Dimension Floor Edges.dyn](https://forum.dynamobim.com/uploads/short-url/mNPEyiN39LlUMnAYfxBWd4ra5s6.dyn) (50.9 KB)

---

<div class="post-metadata">

**Author:** ![arq.donaldo.diaz](https://avatars.discourse-cdn.com/v4/letter/a/0ea827/32.png) [@arq.donaldo.diaz](https://forum.dynamobim.com/u/arq.donaldo.diaz)\
**Post date:** [May 10, 2022, 4:07pm UTC](https://forum.dynamobim.com/t/auto-dimension/76345/5 "2022-05-10T16:07:27Z")

</div>

Thank you very much!  
I didn’t really manage to make it work this way, but I didn’t really understand the code blocks, but it was really useful to learn a few things! thank you!

---

<div class="post-metadata">

**Author:** ![arq.donaldo.diaz](https://avatars.discourse-cdn.com/v4/letter/a/0ea827/32.png) [@arq.donaldo.diaz](https://forum.dynamobim.com/u/arq.donaldo.diaz)\
**Post date:** [May 10, 2022, 4:09pm UTC](https://forum.dynamobim.com/t/auto-dimension/76345/6 "2022-05-10T16:09:39Z")

</div>

Thank You very much! This was a great solution and really helped me out!  
Now I’m trying a second version of this script to make it work with linked files, but I don’t quite know how to make it so it only affects de floors on the active view on current document, could you help me out?  
[C3\_Cotas Automáticas por Categoría Linked Files.dyn](https://forum.dynamobim.com/uploads/short-url/vmLxU3L7CwWeworaTzQMO5CiGaK.dyn) (61.1 KB)

---

<div class="post-metadata">

**Author:** ![bayowindapo](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/bayowindapo/32/184532_2.png) [@bayowindapo](https://forum.dynamobim.com/u/bayowindapo)\
**Post date:** [May 10, 2022, 5:46pm UTC](https://forum.dynamobim.com/t/auto-dimension/76345/7 "2022-05-10T17:46:25Z")

</div>

Hello.  
Ooof I haven’t really had to do this will linked elements but have a look around on the forum. I see there are a few treads on how to collect linked elements. Once you get the linked floors it should be as simple as plugging them into to the script I’ve already shown you.  
Good luck.

---

<div class="post-metadata">

**Author:** ![bayowindapo](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/bayowindapo/32/184532_2.png) [@bayowindapo](https://forum.dynamobim.com/u/bayowindapo)\
**Post date:** [May 10, 2022, 7:01pm UTC](https://forum.dynamobim.com/t/auto-dimension/76345/8 "2022-05-10T19:01:13Z")

</div>

Oh please mark the solution again. Took it off by mistake. 👍🏾
