# Automatic dimension of linked elements

**URL:** <https://forum.dynamobim.com/t/automatic-dimension-of-linked-elements/72376>\
**Category:** Revit\
**Tags:** dynamo\
**Created:** [January 18, 2022, 4:40am UTC](https://forum.dynamobim.com/t/automatic-dimension-of-linked-elements/72376 "2022-01-18T04:40:10Z")\
**Posts on this page:** 8\
**Page:** 1

<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:** [January 18, 2022, 4:40am UTC](https://forum.dynamobim.com/t/automatic-dimension-of-linked-elements/72376/1 "2022-01-18T04:40:10Z")

</div>

Hi all,

I am trying to automate dimensions of linked elements.

- I am getting proper output without any errors in dynamo but in Revit I cant find the dimension.

- It doesn’t work properly with dynamo player and though dynamo if I try to run it, I need to run 2 times to get the out put. (Click run 2 times as it gives RUN started for the first click of RUN and then if I click for the second time, it will give me the result)

Its strange !! I don’t know what’s wrong with the script

The following is the dynamo graph

[Automatic dimension.dyn](https://forum.dynamobim.com/uploads/short-url/2BW3IAx6j5jwLb6qjrO3Kry6vm2.dyn) (39.7 KB)

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

---

<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:** [January 18, 2022, 11:36am UTC](https://forum.dynamobim.com/t/automatic-dimension-of-linked-elements/72376/2 "2022-01-18T11:36:18Z")

</div>

Hi @shashank.baganeACM,

You’re right.  
There is something with the order of operations. The _Convert Linked Reference_ node starts too early but I can’t seem to fix it.  
With 2 runs, everything is going well.

 ![Linked Dims](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/1/21e7fc9966e5fbf97b3209c3a84d9e4019cb66d3.png)

 ![Linked dims2](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/2/42b56568b0bf62402d6880d7a5c7327ea26b4941.png)

> [@shashank.baganeACM](#):
>
> I am getting proper output without any errors in dynamo but in Revit I cant find the dimension.

Why are you hiding the created dimensions ?

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

---

<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:** [January 18, 2022, 3:16pm UTC](https://forum.dynamobim.com/t/automatic-dimension-of-linked-elements/72376/3 "2022-01-18T15:16:13Z")

</div>

Hay @Alban_de_Chasteigner Thanks for explaining but only I am facing the issue is like I am not able to find that dimension in Revit. I have checked with VG and everything, remaining dimensions are visible except the dimension given through dynamo. Shall I know why such kind of weird behavior I am facing 🙃?

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/7/d761f2276be3f90db3f0be62b9fe8302ab10b0c2.png)

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

---

<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:** [January 20, 2022, 4:54am UTC](https://forum.dynamobim.com/t/automatic-dimension-of-linked-elements/72376/4 "2022-01-20T04:54:01Z")

</div>

Hi @Alban_de_Chasteigner Did you find any solution ?

As I can see the output in dynamo but it is not visible in Revit so please let me know what am I missing.

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

---

<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:** [January 21, 2022, 7:28am UTC](https://forum.dynamobim.com/t/automatic-dimension-of-linked-elements/72376/5 "2022-01-21T07:28:20Z")

</div>

Hi @Alban_de_Chasteigner I found the issue, please correct me if I am wrong.

May be it is due to the origin of dimension. As the Dimensions Byreferences node from Genious Loci package is considering origin of dimension as x=0, y=0, z=0 but it is not the required one.

I just need your help in moving origin of dimension to the required location. Can you please tell me how I can modify the origin of dimension ?

---

<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:** [January 21, 2022, 11:11am UTC](https://forum.dynamobim.com/t/automatic-dimension-of-linked-elements/72376/6 "2022-01-21T11:11:07Z")

</div>

Hi,

Can you send me a sample file (by private message if you want) with some linked elements that you would like to dimension ?

What happens when you select by Id a dimension created by Dynamo and move it a bit ?

> [@shashank.baganeACM](#):
>
> origin of dimension as x=0, y=0, z=0 but it is not the required one

I don’t think that is the problem.

---

<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:** [January 21, 2022, 1:40pm UTC](https://forum.dynamobim.com/t/automatic-dimension-of-linked-elements/72376/7 "2022-01-21T13:40:03Z")

</div>

I looked at the file you sent me and it is not possible to manually dimension your familyinstances with the dimension button in Revit.  
**If Revit can’t, Dynamo can’t either.**  
Your familyinstances must be parallel and oriented in the same way. (same reference plane in Y or X).  
Once the familyinstances are correctly placed, the dimension is displayed :

 ![Automatic dimension](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/2/626e8f6c43f8d103744821265b1eaf1b8c25c148.png)

 ![Automatic dimension2](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/f/8f67b73929b92b4154016085d95675d921a95a7a.png)

So it has nothing to do with Dynamo or custom nodes.

---

<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:** [January 21, 2022, 3:26pm UTC](https://forum.dynamobim.com/t/automatic-dimension-of-linked-elements/72376/8 "2022-01-21T15:26:26Z")

</div>

Thanks @Alban_de_Chasteigner for sharing the information. I got it.
