# Error when creating dimension... why?

**URL:** <https://forum.dynamobim.com/t/error-when-creating-dimension-why/95631>\
**Category:** Revit\
**Tags:** python, dynamo\
**Created:** [November 19, 2023, 6:43am UTC](https://forum.dynamobim.com/t/error-when-creating-dimension-why/95631 "2023-11-19T06:43:37Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![AM3D.BIM.STUDIO](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/am3d.bim.studio/32/127441_2.png) [@AM3D.BIM.STUDIO](https://forum.dynamobim.com/u/AM3D.BIM.STUDIO)\
**Post date:** [November 19, 2023, 6:43am UTC](https://forum.dynamobim.com/t/error-when-creating-dimension-why/95631/1 "2023-11-19T06:43:37Z")

</div>

Very good days.  
This time I’m trying to create dimensions on my structural beam but I don’t know what I’m doing wrong in the code…  
I appreciate his help…thank you very much…  
I show the following image as an example of the result I hope to obtain… thank you.

 ![06_AUTO DIMENSION ERROR](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/b/7b1f6fa3a028d0593403173d20ccf8c377d934ca.png)

[06\_AUTO DIMENSION ERROR.dyn](https://forum.dynamobim.com/uploads/short-url/dYmMH59t9n9tGl0VTFVS02B2vo8.dyn) (67.2 KB)  
[06\_AUTO DIMENSIONS ERROR.rvt](https://forum.dynamobim.com/uploads/short-url/2k86r0GQwtpr9h72jgIf8aGgA3K.rvt) (6.2 MB)

---

<div class="post-metadata">

**Author:** ![Draxl\_Andreas](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/draxl_andreas/32/145744_2.png) [@Draxl\_Andreas](https://forum.dynamobim.com/u/Draxl_Andreas)\
**Post date:** [November 19, 2023, 2:18pm UTC](https://forum.dynamobim.com/t/error-when-creating-dimension-why/95631/2 "2023-11-19T14:18:55Z")

</div>

@AM3D.BIM.STUDIO ,

 ![2023-11-19_15h17_54](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/9/e9ed1a04bf009d3141634af4d7d3ed6e53507a44.png)  
 ![06_AUTO DIMENSION ERROR_2023-11-19_03-17-30](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/c/fc435e3bb3a3423d710d46afb68bb42ca958569f.png)

no idea 😉

maybe someone can read the graph…

KR

Andreas

---

<div class="post-metadata">

**Author:** ![AM3D.BIM.STUDIO](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/am3d.bim.studio/32/127441_2.png) [@AM3D.BIM.STUDIO](https://forum.dynamobim.com/u/AM3D.BIM.STUDIO)\
**Post date:** [November 19, 2023, 2:37pm UTC](https://forum.dynamobim.com/t/error-when-creating-dimension-why/95631/3 "2023-11-19T14:37:20Z")

</div>

😔 😪 😰

---

<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:** [November 19, 2023, 2:51pm UTC](https://forum.dynamobim.com/t/error-when-creating-dimension-why/95631/4 "2023-11-19T14:51:19Z")

</div>

What is the result of the Dimension.ByReferences node? Is the line on XY plane, or the view’s plane, or something else?

---

<div class="post-metadata">

**Author:** ![AM3D.BIM.STUDIO](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/am3d.bim.studio/32/127441_2.png) [@AM3D.BIM.STUDIO](https://forum.dynamobim.com/u/AM3D.BIM.STUDIO)\
**Post date:** [November 19, 2023, 3:19pm UTC](https://forum.dynamobim.com/t/error-when-creating-dimension-why/95631/5 "2023-11-19T15:19:50Z")

</div>

Good morning…  
I’ll try to recreate it with just one element and attach some description images of what I’m trying to get…

 ![6A](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/6/06f3f8cefa1bdd7779464036135834cfd56e7e44.jpeg)  
 ![6B](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/3/732e9df32c2f383fc33da4c15a18c5e331d79e15.jpeg)  
[06a\_AUTO DIMENSION ERROR.dyn](https://forum.dynamobim.com/uploads/short-url/iqqv52db6yRwoldT5h9w6Qjb2MN.dyn) (28.9 KB)

---

<div class="post-metadata">

**Author:** ![AM3D.BIM.STUDIO](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/am3d.bim.studio/32/127441_2.png) [@AM3D.BIM.STUDIO](https://forum.dynamobim.com/u/AM3D.BIM.STUDIO)\
**Post date:** [November 19, 2023, 3:50pm UTC](https://forum.dynamobim.com/t/error-when-creating-dimension-why/95631/6 "2023-11-19T15:50:24Z")

</div>

How can I know if the node is returning the correct plane that I need to use to créate the dimensión?

---

<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:** [November 19, 2023, 4:45pm UTC](https://forum.dynamobim.com/t/error-when-creating-dimension-why/95631/7 "2023-11-19T16:45:49Z")

</div>

If I recall correctly, it is either the global xy plane (you are drawing the location one in the view, not the model) or it’s the views’s plane (View.Plane should help there, perhaps in clockwork if not out of the box).

---

<div class="post-metadata">

**Author:** ![AM3D.BIM.STUDIO](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/am3d.bim.studio/32/127441_2.png) [@AM3D.BIM.STUDIO](https://forum.dynamobim.com/u/AM3D.BIM.STUDIO)\
**Post date:** [November 19, 2023, 4:58pm UTC](https://forum.dynamobim.com/t/error-when-creating-dimension-why/95631/8 "2023-11-19T16:58:14Z")

</div>

When you refer to GLOBAL, you mean that it is taken as if it were a plan view from above…??

---

<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:** [November 19, 2023, 6:46pm UTC](https://forum.dynamobim.com/t/error-when-creating-dimension-why/95631/9 "2023-11-19T18:46:03Z")

</div>

I mean it as in the points which define the curve should have an X and Y value, but no Z.

---

<div class="post-metadata">

**Author:** ![AM3D.BIM.STUDIO](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/am3d.bim.studio/32/127441_2.png) [@AM3D.BIM.STUDIO](https://forum.dynamobim.com/u/AM3D.BIM.STUDIO)\
**Post date:** [November 20, 2023, 1:50am UTC](https://forum.dynamobim.com/t/error-when-creating-dimension-why/95631/10 "2023-11-20T01:50:49Z")

</div>

Thank you all very much for your comments and views… I managed to solve it… thanks guys.

---

<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:** [November 20, 2023, 2:18am UTC](https://forum.dynamobim.com/t/error-when-creating-dimension-why/95631/11 "2023-11-20T02:18:52Z")

</div>

What was the solution?

---

<div class="post-metadata">

**Author:** ![AM3D.BIM.STUDIO](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/am3d.bim.studio/32/127441_2.png) [@AM3D.BIM.STUDIO](https://forum.dynamobim.com/u/AM3D.BIM.STUDIO)\
**Post date:** [November 20, 2023, 6:37am UTC](https://forum.dynamobim.com/t/error-when-creating-dimension-why/95631/12 "2023-11-20T06:37:00Z")

</div>

At first the approach of the solution was correct… the only thing I did not consider is the order of the references, since each element in revit has an order that is not always coherent, so I organized the references from left to right according to their point X, and I was able to create the dimensions.
