# Dimensions to vertical edge references

**URL:** <https://forum.dynamobim.com/t/dimensions-to-vertical-edge-references/99957>\
**Category:** Revit\
**Tags:** dynamo\
**Created:** [April 11, 2024, 4:33pm UTC](https://forum.dynamobim.com/t/dimensions-to-vertical-edge-references/99957 "2024-04-11T16:33:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Corentin.Agreg](https://avatars.discourse-cdn.com/v4/letter/c/278dde/32.png) [@Corentin.Agreg](https://forum.dynamobim.com/u/Corentin.Agreg)\
**Post date:** [April 11, 2024, 4:33pm UTC](https://forum.dynamobim.com/t/dimensions-to-vertical-edge-references/99957/1 "2024-04-11T16:33:23Z")

</div>

Hi,

First of all, a thank you is in order: merci Alban pour Genius Loci, ca m’a bien rendu service!

Now, to the issue at hand:  
I’ve been trying for weeks to script a proper dimension tool that dims wall to wall junctions, with no success. My main issue is as follows: as soon as two walls are not perpendicular to each other, I cannot dim by faces.

The following topic was getting really close to my issue:

> [@How to Get Edge References (for Dimensioning)](https://forum.dynamobim.com/t/how-to-get-edge-references-for-dimensioning/73755):
>
> I can’t help noticing that Dynamo 2.12 has added some new nodes for dimensioning elements in Revit. [Dimension nodes #2632](https://github.com/DynamoDS/DynamoRevit/pull/2632) I’ve had some great success with the Dimension.ByReferences Node. The face references a not difficult to get: The ability to get face references from dynamo surfaces is great because it means that you can generate dimensions for an object without actually having to select it! However, things get more tricky with edge references. Dimension.ByEdges is a node no…

Unfortunately the solution found by Daniel doesn’t work, as Alban’s (Genuis Loci) “Dimension ByReferences” node gives me back a nul instead of dims. Is the node working for others? If so, can somebody send me the simplest script that works for a simple wall?  
I’m afraid this might be a bug, but I can’t find a workaround.  
Here’s a simple script showing the nul result on the dimension node:

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

---

<div class="post-metadata">

**Author:** ![daniel1](https://avatars.discourse-cdn.com/v4/letter/d/b19c9b/32.png) [@daniel1](https://forum.dynamobim.com/u/daniel1)\
**Post date:** [April 12, 2024, 2:57pm UTC](https://forum.dynamobim.com/t/dimensions-to-vertical-edge-references/99957/2 "2024-04-12T14:57:39Z")

</div>

Hi @Corentin.Agreg, you have awoken me from my Dynamo Forum hibernation!

I am guessing that your active view is an elevation or a section; hopefully one that is also parallel with the location line of the wall.

I tried to replicate the issue.

 ![dim wall](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/e/3e17a7a246ad9f74dfaae288a63c29ba4d094383.png)  
No problems here. I did notice how all of my lines are visible though and yours are not.  
 ![dim wall background](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/f/8f836e7432670453a2c70657fa788d9c6a52149e.png)  
Sometimes things tend to break when geometry gets more complex. For me this happens about 1-5% of the time with pretty complicated geometry. Usually things work fine. You should try it on a basic wall and see if you get the same outcome. If so, it is probably a bug and you’ll want to reinstall some packages.

---

<div class="post-metadata">

**Author:** ![Corentin.Agreg](https://avatars.discourse-cdn.com/v4/letter/c/278dde/32.png) [@Corentin.Agreg](https://forum.dynamobim.com/u/Corentin.Agreg)\
**Post date:** [April 15, 2024, 10:11am UTC](https://forum.dynamobim.com/t/dimensions-to-vertical-edge-references/99957/3 "2024-04-15T10:11:55Z")

</div>

Thanks @daniel1 ,

I tried this in plan and in section, although I did not check if it was parallel to the location line. Does that matter?  
Also I thought this dimension node would work in plan view as well?

I’ll reinstall Genius Loci and report back if I find a solution, since it works for you it must be a bug or a quirk.

---

<div class="post-metadata">

**Author:** ![daniel1](https://avatars.discourse-cdn.com/v4/letter/d/b19c9b/32.png) [@daniel1](https://forum.dynamobim.com/u/daniel1)\
**Post date:** [April 15, 2024, 2:39pm UTC](https://forum.dynamobim.com/t/dimensions-to-vertical-edge-references/99957/4 "2024-04-15T14:39:13Z")

</div>

It does work in a plan view. Wall location lines are always parallel from that view as well. Starting to look more like a bug. But once again, make sure you can see all of the lines from the wall in dynamo. Or at least try it on a basic wall with no cutouts to eliminate the possibility of this being an issue with the geometry and not Dynamo itself.
