# Revit luminaire positioning with different ceiling height

**URL:** <https://forum.dynamobim.com/t/revit-luminaire-positioning-with-different-ceiling-height/37298>\
**Category:** Revit\
**Tags:** dynamo\
**Created:** [June 18, 2019, 8:15am UTC](https://forum.dynamobim.com/t/revit-luminaire-positioning-with-different-ceiling-height/37298 "2019-06-18T08:15:30Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![damir](https://avatars.discourse-cdn.com/v4/letter/d/7993a0/32.png) [@damir](https://forum.dynamobim.com/u/damir)\
**Post date:** [June 18, 2019, 8:15am UTC](https://forum.dynamobim.com/t/revit-luminaire-positioning-with-different-ceiling-height/37298/1 "2019-06-18T08:15:30Z")

</div>

Dear all, this is my first post so I want to say hay and thank You in advanced for Your help. My name is Matija and I’m from Croatia… My company name is LIGHT ON and we are a small lighting design studio.

At the moment I’m searching for a solution for the next problem:

- We are developing a project for a Hotel with approx 3000 luminaires (which we already planned in dwg). At the moment I’m trying to develop a Dynamo process to place the family instances automaticaly based on x,y coordinates extracted from the dwg.  
The ceiling height’s in the hotels are different (and the ceiling are actually just generic model mass, so no family with ceiling host works, but face hosting should be used).

I managed to assembly a dynamo process that works fine for x,y placing, and even finds the ceiling height, but does not place the family on that place - instead of that, it is placed upside down on the floor (please see the picture).

Please be so kind to let me know what I’m missing…

Thank You!

 ![3D](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/d/6d558a023b3200763a9a264384cab8ffbe9dc93d.jpeg)  
Matija!

---

<div class="post-metadata">

**Author:** ![khuzaimah.ElecEng](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/khuzaimah.eleceng/32/92768_2.png) [@khuzaimah.ElecEng](https://forum.dynamobim.com/u/khuzaimah.ElecEng)\
**Post date:** [June 18, 2019, 8:29am UTC](https://forum.dynamobim.com/t/revit-luminaire-positioning-with-different-ceiling-height/37298/2 "2019-06-18T08:29:14Z")

</div>

hi,  
if you flip the family, does it works fine then ?

---

<div class="post-metadata">

**Author:** ![damir](https://avatars.discourse-cdn.com/v4/letter/d/7993a0/32.png) [@damir](https://forum.dynamobim.com/u/damir)\
**Post date:** [June 18, 2019, 8:36am UTC](https://forum.dynamobim.com/t/revit-luminaire-positioning-with-different-ceiling-height/37298/3 "2019-06-18T08:36:12Z")

</div>

Dear khuzaimah.ElecEng, thank You for Your answer…  
Do You mean flipping the family with the little icon by it’s side (the one on the photo)?  
If so, when clicking it, does not happen anything…

 ![Screenshot_1](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/6/561fcd64ec455d44421be2c1a47410a2d2021c53.jpeg)

---

<div class="post-metadata">

**Author:** ![damir](https://avatars.discourse-cdn.com/v4/letter/d/7993a0/32.png) [@damir](https://forum.dynamobim.com/u/damir)\
**Post date:** [June 18, 2019, 8:51am UTC](https://forum.dynamobim.com/t/revit-luminaire-positioning-with-different-ceiling-height/37298/4 "2019-06-18T08:51:54Z")

</div>

Sorry for not mentioning it before, You’re all welcome to suggest a different approach for finding the soultion…

I think my approach is not perfect, because having the ‘Select model elements’ node, I have to select all the ceilings in the hotel to make it work,so it’s a messy work…

Hope there is an easier way to do it…

thank You!

---

<div class="post-metadata">

**Author:** ![Phh](https://avatars.discourse-cdn.com/v4/letter/p/7feea3/32.png) [@Phh](https://forum.dynamobim.com/u/Phh)\
**Post date:** [June 18, 2019, 9:14am UTC](https://forum.dynamobim.com/t/revit-luminaire-positioning-with-different-ceiling-height/37298/5 "2019-06-18T09:14:05Z")

</div>

You could use Select all by category, to pick all your ceilings?

And if you only want to pick ceilings of a certain family, you could pick all by family type.

---

<div class="post-metadata">

**Author:** ![damir](https://avatars.discourse-cdn.com/v4/letter/d/7993a0/32.png) [@damir](https://forum.dynamobim.com/u/damir)\
**Post date:** [June 18, 2019, 9:22am UTC](https://forum.dynamobim.com/t/revit-luminaire-positioning-with-different-ceiling-height/37298/6 "2019-06-18T09:22:14Z")

</div>

Dear Phh,  
thank You for Your answer…  
unfortunately we got the exported IFC from ArchiCad which when exported, generates generic models for all the ceilings… so basicaly all the ceiling hosted luminaires should be only face based…

That’s the reason why I cant select all the ceilings by category or family…

thank’s

Matija

---

<div class="post-metadata">

**Author:** ![Dmytro\_Serebriian](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/dmytro_serebriian/32/75575_2.png) [@Dmytro\_Serebriian](https://forum.dynamobim.com/u/Dmytro_Serebriian)\
**Post date:** [June 18, 2019, 9:50am UTC](https://forum.dynamobim.com/t/revit-luminaire-positioning-with-different-ceiling-height/37298/7 "2019-06-18T09:50:06Z")

</div>

Hello,@damir! Try to use another methode for FamilyInstance creation. Here is an example:

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

---

<div class="post-metadata">

**Author:** ![Johannes\_Meiners](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/johannes_meiners/32/9156_2.png) [@Johannes\_Meiners](https://forum.dynamobim.com/u/Johannes_Meiners)\
**Post date:** [June 18, 2019, 9:53am UTC](https://forum.dynamobim.com/t/revit-luminaire-positioning-with-different-ceiling-height/37298/8 "2019-06-18T09:53:03Z")

</div>

And you could try to find the horizontal face of your ceilings:

 ![Surface](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/e/0e8924028e48eebe1ba72820c78cf940d472e394.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:** [June 18, 2019, 10:12am UTC](https://forum.dynamobim.com/t/revit-luminaire-positioning-with-different-ceiling-height/37298/9 "2019-06-18T10:12:47Z")

</div>

Or like this to find the bottom surface of the ceilings :

 ![Bottom%20surface](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/0/d05d47699877ed2cdf2e1f9a6a39772bdbeb9fa1.png)

---

<div class="post-metadata">

**Author:** ![damir](https://avatars.discourse-cdn.com/v4/letter/d/7993a0/32.png) [@damir](https://forum.dynamobim.com/u/damir)\
**Post date:** [June 18, 2019, 10:43am UTC](https://forum.dynamobim.com/t/revit-luminaire-positioning-with-different-ceiling-height/37298/10 "2019-06-18T10:43:51Z")

</div>

Thank You Dmytro, but it doesn’t work for me…  
maybe I’m missing some lacing properties?  
take a look on the screenshoot ![Screenshot_11](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/d/7db8a1b33953964fc90ec776c211fa063b9ecd00.jpeg)

---

<div class="post-metadata">

**Author:** ![damir](https://avatars.discourse-cdn.com/v4/letter/d/7993a0/32.png) [@damir](https://forum.dynamobim.com/u/damir)\
**Post date:** [June 18, 2019, 10:45am UTC](https://forum.dynamobim.com/t/revit-luminaire-positioning-with-different-ceiling-height/37298/11 "2019-06-18T10:45:24Z")

</div>

Hy Alban\_de\_Chasteigner,  
thank You for Your help…but as I already mentioned…unfortunately we are dealing with some generic mass ceiling,so I cant filter the ceilins by category…  
tnx

---

<div class="post-metadata">

**Author:** ![damir](https://avatars.discourse-cdn.com/v4/letter/d/7993a0/32.png) [@damir](https://forum.dynamobim.com/u/damir)\
**Post date:** [June 18, 2019, 10:54am UTC](https://forum.dynamobim.com/t/revit-luminaire-positioning-with-different-ceiling-height/37298/12 "2019-06-18T10:54:19Z")

</div>

Dear Johannes\_Meiners,  
I’m getting an error on the Element.Faces node…  
Would You please be so kind to take a look…

thank You!

 ![Screenshot_12](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/6/f626fd08cb328e5251606fe4c1db729aa38493a2.jpeg)

---

<div class="post-metadata">

**Author:** ![Johannes\_Meiners](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/johannes_meiners/32/9156_2.png) [@Johannes\_Meiners](https://forum.dynamobim.com/u/Johannes_Meiners)\
**Post date:** [June 18, 2019, 11:15am UTC](https://forum.dynamobim.com/t/revit-luminaire-positioning-with-different-ceiling-height/37298/13 "2019-06-18T11:15:00Z")

</div>

What kind of element do you get when you look at “Element.Geometry” ?

---

<div class="post-metadata">

**Author:** ![damir](https://avatars.discourse-cdn.com/v4/letter/d/7993a0/32.png) [@damir](https://forum.dynamobim.com/u/damir)\
**Post date:** [June 18, 2019, 11:29am UTC](https://forum.dynamobim.com/t/revit-luminaire-positioning-with-different-ceiling-height/37298/14 "2019-06-18T11:29:54Z")

</div>

I got one solid object…

 ![Screenshot_1](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/6/f69c8825024e956505616c406d7a9d700b03f7cc.jpeg)

---

<div class="post-metadata">

**Author:** ![khuzaimah.ElecEng](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/khuzaimah.eleceng/32/92768_2.png) [@khuzaimah.ElecEng](https://forum.dynamobim.com/u/khuzaimah.ElecEng)\
**Post date:** [June 18, 2019, 11:32am UTC](https://forum.dynamobim.com/t/revit-luminaire-positioning-with-different-ceiling-height/37298/15 "2019-06-18T11:32:41Z")

</div>

throughout my experience in similar situation, there is a problem when you want to set a location for any ceiling hosted family with Z axis … it won’t work and you cant even change its host after Run. i suggest to try not to use hosted family, use elevation parameter instead

---

<div class="post-metadata">

**Author:** ![Johannes\_Meiners](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/johannes_meiners/32/9156_2.png) [@Johannes\_Meiners](https://forum.dynamobim.com/u/Johannes_Meiners)\
**Post date:** [June 18, 2019, 11:36am UTC](https://forum.dynamobim.com/t/revit-luminaire-positioning-with-different-ceiling-height/37298/16 "2019-06-18T11:36:32Z")

</div>

No idea, my example looks ok:

 ![Surface](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/5/95c6ec944c4709e85c9c7c346a7fdd3ca645f1cf.png)

---

<div class="post-metadata">

**Author:** ![Dmytro\_Serebriian](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/dmytro_serebriian/32/75575_2.png) [@Dmytro\_Serebriian](https://forum.dynamobim.com/u/Dmytro_Serebriian)\
**Post date:** [June 18, 2019, 11:53am UTC](https://forum.dynamobim.com/t/revit-luminaire-positioning-with-different-ceiling-height/37298/17 "2019-06-18T11:53:57Z")

</div>

Here is combined solution:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/7/278335cbd189a84151895f3062991cd231232491.png)  
Still, you can use this script only for one ceiling.

---

<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:** [June 18, 2019, 1:10pm UTC](https://forum.dynamobim.com/t/revit-luminaire-positioning-with-different-ceiling-height/37298/18 "2019-06-18T13:10:02Z")

</div>

If you insert the dwg at the level, you will find the face of the floor. You need to project the points vertically into the ceiling. Look into rayboumce methods to find the ceilings above your points.

---

<div class="post-metadata">

**Author:** ![damir](https://avatars.discourse-cdn.com/v4/letter/d/7993a0/32.png) [@damir](https://forum.dynamobim.com/u/damir)\
**Post date:** [June 18, 2019, 2:01pm UTC](https://forum.dynamobim.com/t/revit-luminaire-positioning-with-different-ceiling-height/37298/19 "2019-06-18T14:01:57Z")

</div>

Yes, that is actually a fine working solution… but, as You said, it works for only one ceiling at time…

---

<div class="post-metadata">

**Author:** ![damir](https://avatars.discourse-cdn.com/v4/letter/d/7993a0/32.png) [@damir](https://forum.dynamobim.com/u/damir)\
**Post date:** [June 18, 2019, 2:05pm UTC](https://forum.dynamobim.com/t/revit-luminaire-positioning-with-different-ceiling-height/37298/20 "2019-06-18T14:05:47Z")

</div>

Jacob, that was my first idea, projecting the xy coordinates vertical on the ceiling surface…and that actually works (please see my first photo), but the families don’t attach/place on that projected point, and instead of that they stick on the floor - upside down…

[Next page](https://forum.dynamobim.com/t/revit-luminaire-positioning-with-different-ceiling-height/37298.md?page=2)
