# Dimension By References giving Null output

**URL:** <https://forum.dynamobim.com/t/dimension-by-references-giving-null-output/100756>\
**Category:** Revit\
**Tags:** dynamo\
**Created:** [May 7, 2024, 11:50am UTC](https://forum.dynamobim.com/t/dimension-by-references-giving-null-output/100756 "2024-05-07T11:50:48Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![1034061RDHJ9](https://avatars.discourse-cdn.com/v4/letter/1/a3d4f5/32.png) [@1034061RDHJ9](https://forum.dynamobim.com/u/1034061RDHJ9)\
**Post date:** [May 7, 2024, 11:50am UTC](https://forum.dynamobim.com/t/dimension-by-references-giving-null-output/100756/1 "2024-05-07T11:50:48Z")

</div>

I’m trying to dimension an structural framing element using two references from the element but the Dimension by references node ìs giving null as output.

Can someone help me?

 ![Dimension.by references](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/4/c4e0fb9619aab8af1ff7e570c899a9a61872ae86.png)

---

<div class="post-metadata">

**Author:** ![jwroelofs](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jwroelofs/32/55712_2.png) [@jwroelofs](https://forum.dynamobim.com/u/jwroelofs)\
**Post date:** [May 7, 2024, 11:56am UTC](https://forum.dynamobim.com/t/dimension-by-references-giving-null-output/100756/2 "2024-05-07T11:56:01Z")

</div>

Flatten the ref list?

---

<div class="post-metadata">

**Author:** ![1034061RDHJ9](https://avatars.discourse-cdn.com/v4/letter/1/a3d4f5/32.png) [@1034061RDHJ9](https://forum.dynamobim.com/u/1034061RDHJ9)\
**Post date:** [May 7, 2024, 11:59am UTC](https://forum.dynamobim.com/t/dimension-by-references-giving-null-output/100756/3 "2024-05-07T11:59:16Z")

</div>

No, this time it’s giving me the null output twice

---

<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:** [May 7, 2024, 3:06pm UTC](https://forum.dynamobim.com/t/dimension-by-references-giving-null-output/100756/4 "2024-05-07T15:06:50Z")

</div>

Have you installed the correct version of the IronPython 2.7 package? Check the Genius Loci package description for more info.

---

<div class="post-metadata">

**Author:** ![1034061RDHJ9](https://avatars.discourse-cdn.com/v4/letter/1/a3d4f5/32.png) [@1034061RDHJ9](https://forum.dynamobim.com/u/1034061RDHJ9)\
**Post date:** [May 8, 2024, 8:08am UTC](https://forum.dynamobim.com/t/dimension-by-references-giving-null-output/100756/5 "2024-05-08T08:08:53Z")

</div>

I have installed IronPython2.7 2.5.0 as is requested in the packege description but that doesn’t seem to be the problem.

---

<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:** [May 8, 2024, 8:44am UTC](https://forum.dynamobim.com/t/dimension-by-references-giving-null-output/100756/7 "2024-05-08T08:44:25Z")

</div>

Like need you to post the graph and a sample .rvt file to run it on. Alternatively you can pull the custom code out of the custom node and try running it in canvas to see if an error is exposed.

---

<div class="post-metadata">

**Author:** ![1034061RDHJ9](https://avatars.discourse-cdn.com/v4/letter/1/a3d4f5/32.png) [@1034061RDHJ9](https://forum.dynamobim.com/u/1034061RDHJ9)\
**Post date:** [May 8, 2024, 1:45pm UTC](https://forum.dynamobim.com/t/dimension-by-references-giving-null-output/100756/9 "2024-05-08T13:45:08Z")

</div>

> **[Oefenproject.rvt](https://wetransfer.com/downloads/1e20bee7bbf3ce58887bc55ecb83f97220240508134249/7738bb)**
>
> 1 file sent via WeTransfer, the simplest way to send your files around the world

(See above for the project i’m working in and bellow the script i’m working on)  
[Dimensioning By references.dyn](https://forum.dynamobim.com/uploads/short-url/7fhxtrMCUe5MA5mreDYK0e9HExH.dyn) (50.2 KB)

Thank you in advance for reviewing my Dynamo script. The intention is to run the script in a cross-section of the foundation beam to generate dimension lines. I myself use detail view ‘12’. Please run the script in view 12 to ensure that the active view is correct

---

<div class="post-metadata">

**Author:** ![emrullah.yildiz](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/emrullah.yildiz/32/177572_2.png) [@emrullah.yildiz](https://forum.dynamobim.com/u/emrullah.yildiz)\
**Post date:** [May 8, 2024, 3:42pm UTC](https://forum.dynamobim.com/t/dimension-by-references-giving-null-output/100756/10 "2024-05-08T15:42:08Z")

</div>

Hi @1034061RDHJ9 ,

The problem is about your dimension type. Try to use another one since for this one it says it is not a linear dimension type(even though it doesn’t look like that in Revit). I tried with another one but you may have other issues with references:

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

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [May 9, 2024, 6:27am UTC](https://forum.dynamobim.com/t/dimension-by-references-giving-null-output/100756/11 "2024-05-09T06:27:34Z")

</div>

Hello @1034061RDHJ9 could something here work for you…

 ![Skærmbillede 2024-05-09 082619](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/0/b08c8a65989bd4cf55e4ab5ee86bc012020923dc.png)

or

 ![Skærmbillede 2024-05-09 084157](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/c/6c9c91a42a3dd21de642ff24da8365564f5c4c22.png)

---

<div class="post-metadata">

**Author:** ![1034061RDHJ9](https://avatars.discourse-cdn.com/v4/letter/1/a3d4f5/32.png) [@1034061RDHJ9](https://forum.dynamobim.com/u/1034061RDHJ9)\
**Post date:** [May 15, 2024, 9:16am UTC](https://forum.dynamobim.com/t/dimension-by-references-giving-null-output/100756/12 "2024-05-15T09:16:30Z")

</div>

You were right, I retrieved the wrong dimension type. Even though I fixed this I still get a null output after running the scrip.

 ![dimension by references 2](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/a/9a33d61cf89f48368f3b4b5adc7c48e0fe30026c.png)

As you said this could be an issue with the references, but do you have any suggestions on how I could fix this?

---

<div class="post-metadata">

**Author:** ![1034061RDHJ9](https://avatars.discourse-cdn.com/v4/letter/1/a3d4f5/32.png) [@1034061RDHJ9](https://forum.dynamobim.com/u/1034061RDHJ9)\
**Post date:** [May 15, 2024, 9:21am UTC](https://forum.dynamobim.com/t/dimension-by-references-giving-null-output/100756/13 "2024-05-15T09:21:59Z")

</div>

Thanks again for reviewing my script but I still seem to be getting null outputs after retrieving the refences in the way you suggested.

 ![dimension by references 3](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/9/89ee110b39c5df132b5f9d278b26afade0644c17.png)

Do you have any idea as to why that is? Could there be something wrong with my structural beam?

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [May 15, 2024, 9:26am UTC](https://forum.dynamobim.com/t/dimension-by-references-giving-null-output/100756/14 "2024-05-15T09:26:06Z")

</div>

I tried on your sample and work…be sure you have dynamoironpython package 2.7 Ver 2.5 installed as well

---

<div class="post-metadata">

**Author:** ![1034061RDHJ9](https://avatars.discourse-cdn.com/v4/letter/1/a3d4f5/32.png) [@1034061RDHJ9](https://forum.dynamobim.com/u/1034061RDHJ9)\
**Post date:** [May 15, 2024, 10:11am UTC](https://forum.dynamobim.com/t/dimension-by-references-giving-null-output/100756/15 "2024-05-15T10:11:41Z")

</div>

Yes I have this package installed

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [May 15, 2024, 11:04am UTC](https://forum.dynamobim.com/t/dimension-by-references-giving-null-output/100756/16 "2024-05-15T11:04:54Z")

</div>

not sure then, ihave just tried again 0n view 12 and works…try as here

![Revit_Y0oo2HArG1](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/d/edcadc0d4276fdde7202639af0d0ada7110d9e87.gif)  
[test dim.dyn](https://forum.dynamobim.com/uploads/short-url/jQcGawvgSd9j7xJeg8AzPPiua0A.dyn) (38.5 KB)

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [May 15, 2024, 11:16am UTC](https://forum.dynamobim.com/t/dimension-by-references-giving-null-output/100756/17 "2024-05-15T11:16:30Z")

</div>

and be sure your genius loci is the latest one
