Automate dimension of the bottom of lighting fixtures to the level line

I have a host revit file with multiple linking of each discipline model (archi, structure, mechanical, electrical etc), all linked file is using shared coordinate. In my host file, i have the level lines. So what i am trying to do is to create an automation of dimension of the (height of all lighting fixtures from the level lines in each section view created). Refer to the first picture (i want to do the dimension highlighted in yellow)

I have created try created a dynamo script but it doesn’t seem to work. I am fairly new to dynamo. I was wondering if anyone could help on this.
Auto dimensioning for all actual lighting.dyn (56.6 KB)

Hello @Farhah and welcome to the forum :wink: if you use Genius Loci dimension/reference tools you could get reference from linked elements

Hi, thank you for the warm welcome. I tried to get the reference by the getting the bounding box of the lighting fixtures.

or should i use the genius loci familyinstance reference instead?

Yes use genius loci nodes, there is a node for convert link element reference as i guess that the electrical thing, for you level there you can just element reference,all find in genius loci package


Is this the correct way of doing it? but how do i get the dimension lines?

Yeah looks the right way :wink: my advice for now , not at dyn and have no sample for try on…try first for one section view and one element and when it works scale it up…for the line you could try element location and closest point to on your level plane and line by best trhough point, but in section you will probably need pull on view plane as well…do you have a sample you could share…both master and link ?

I have further simply the model for testing (now the link only have 3 lighting fixtures).

And now i already have 3 of the lighting fixtures as the output

from the reference list, should it have listed in bottom as one of the output so that i can extract bottom of the lighting fixtures?

CSD-3DM-000001.rvt (6.3 MB)
ELE-LOV-3DM-000001.rvt (6.0 MB)

I could not attached the ARC due to the file sizing. The CSD is the host file and LOV is the link file.
Auto dimensioning for all actual lighting.dyn (26.1 KB)

1 Like

Thanks…i can take a look later in the afternoon, im a little bit busy the rest of the day

Thank you so much sir

Hi @Farhah here is very rough fast example can for sure be optimized,but what i time for now… but try play around with something here as a start
…btw you files dont share coordinate set, and your “KELUAR” sign dont have any reference on the lowest surface, can be edit in the family…try somenthing here

Hi, sorry for the late reply. I will revisit the script today.


Thank you for the guide. somehow i might missed out or connect it to the wrong nodes. I will try to work around with the guide you provide and study each nodes to better understand the flow.

for the “KELUAR” sign per say, what does it means by it doesn’t have any reference on the lowest surface?

yeah as you see the dimension dont give the signature lowest surface…when i try i couldnt get any refrence from there and probably need another way for get that…reference lives in the loadable family