# Aligning multiple lights with dynamo

**URL:** <https://forum.dynamobim.com/t/aligning-multiple-lights-with-dynamo/114242>\
**Category:** Revit\
**Tags:** dynamo\
**Created:** [March 23, 2026, 2:11pm UTC](https://forum.dynamobim.com/t/aligning-multiple-lights-with-dynamo/114242 "2026-03-23T14:11:19Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Panta](https://avatars.discourse-cdn.com/v4/letter/p/94ad74/32.png) [@Panta](https://forum.dynamobim.com/u/Panta)\
**Post date:** [March 23, 2026, 2:11pm UTC](https://forum.dynamobim.com/t/aligning-multiple-lights-with-dynamo/114242/1 "2026-03-23T14:11:19Z")

</div>

I’m super new to dynamo and I’m trying to understand what I’m doing wrong here.

I’m trying to align lights in my model based on one Light that has the correct location in the floorplan. The lights that I’m trying to align are in different levels so I’m ok with their elevation. I just need to adjust the X, Y locations.

Any advice is appreciated.

I’m working in Revit 2024 with Dynamo v.2.18.1.

 ![Dynamo](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/0/90939250a4b73a4cded0a3816059129b78718183.png)

---

<div class="post-metadata">

**Author:** ![Alien](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alien/32/40701_2.png) [@Alien](https://forum.dynamobim.com/u/Alien)\
**Post date:** [March 23, 2026, 3:23pm UTC](https://forum.dynamobim.com/t/aligning-multiple-lights-with-dynamo/114242/2 "2026-03-23T15:23:04Z")

</div>

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

You’re telling ALL the items listed in B to be at the single point A.

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [March 23, 2026, 4:12pm UTC](https://forum.dynamobim.com/t/aligning-multiple-lights-with-dynamo/114242/3 "2026-03-23T16:12:27Z")

</div>

As @Alien mentioned, you’ll presumably need one new location per object you want aligned. The easiest thing to do is get the current location of the existing lights and overwrite the X or Y value to that of the correctly aligned fixture. Then you have a list of updated locations, one for each fixture.

You also have your inputs switched. You’re passing the list of fixtures into the `geometry` input and the point location into the `element` input.

---

<div class="post-metadata">

**Author:** ![Panta](https://avatars.discourse-cdn.com/v4/letter/p/94ad74/32.png) [@Panta](https://forum.dynamobim.com/u/Panta)\
**Post date:** [March 23, 2026, 4:33pm UTC](https://forum.dynamobim.com/t/aligning-multiple-lights-with-dynamo/114242/4 "2026-03-23T16:33:51Z")

</div>

Thanks for responding. That’s kinda the idea. That everything aligns in floorplan. I just don’t want to overwrite their elevation (the Z value) because they are in different levels. I thought if the Z value was zero then that would work, but it’s not 😅

---

<div class="post-metadata">

**Author:** ![Alien](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alien/32/40701_2.png) [@Alien](https://forum.dynamobim.com/u/Alien)\
**Post date:** [March 23, 2026, 4:41pm UTC](https://forum.dynamobim.com/t/aligning-multiple-lights-with-dynamo/114242/5 "2026-03-23T16:41:01Z")

</div>

Gotcha.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/2/b2350034b156e645ee25bc9130c6428ef52074a8.png)  
So get coordinates (A) … take the Z .. feed it into the Point.ByCoordinates and now you should have a list.  
You can see currently they’re all Z = zero.

---

<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:** [March 23, 2026, 4:55pm UTC](https://forum.dynamobim.com/t/aligning-multiple-lights-with-dynamo/114242/6 "2026-03-23T16:55:29Z")

</div>

Hello @Panta Welcome 😉 or something here maybe

 ![Skærmbillede 2026-03-23 074748](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/4/a40bff9bdf4ccd0b75fc76eca743b49764cae678.jpeg)

---

<div class="post-metadata">

**Author:** ![Panta](https://avatars.discourse-cdn.com/v4/letter/p/94ad74/32.png) [@Panta](https://forum.dynamobim.com/u/Panta)\
**Post date:** [March 24, 2026, 4:02pm UTC](https://forum.dynamobim.com/t/aligning-multiple-lights-with-dynamo/114242/7 "2026-03-24T16:02:32Z")

</div>

Hey @sovitek I tried your method and the elements only align in one axis. (I tried with different light families and even created a new file but it’s the same result. I even tried with the default revit fams)

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/f/bfbb3c1d65bd868f96b15ef03f70f01449079840.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:** [March 24, 2026, 4:10pm UTC](https://forum.dynamobim.com/t/aligning-multiple-lights-with-dynamo/114242/8 "2026-03-24T16:10:37Z")

</div>

ya h only one direction x or y…right im not really sure what you mean, can you sketch how you want them aligned ? if out of x or y we have to play with some vectors, but not sure thats it i just tried with sharp x iguess 🙂

---

<div class="post-metadata">

**Author:** ![Panta](https://avatars.discourse-cdn.com/v4/letter/p/94ad74/32.png) [@Panta](https://forum.dynamobim.com/u/Panta)\
**Post date:** [March 24, 2026, 4:42pm UTC](https://forum.dynamobim.com/t/aligning-multiple-lights-with-dynamo/114242/9 "2026-03-24T16:42:36Z")

</div>

@sovitek😅 So here is a sketch of what I’m trying to achieve. In the left is a floorplan and on the right is the 3D view in elevation.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/f/5f9c281fcfded53eb721a8936276b1e31d9c35a1.jpeg)

---

<div class="post-metadata">

**Author:** ![Panta](https://avatars.discourse-cdn.com/v4/letter/p/94ad74/32.png) [@Panta](https://forum.dynamobim.com/u/Panta)\
**Post date:** [March 24, 2026, 4:44pm UTC](https://forum.dynamobim.com/t/aligning-multiple-lights-with-dynamo/114242/10 "2026-03-24T16:44:48Z")

</div>

Hey @Alien I tried your suggestion, but it gave me an error message 😅

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

---

<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:** [March 24, 2026, 4:51pm UTC](https://forum.dynamobim.com/t/aligning-multiple-lights-with-dynamo/114242/11 "2026-03-24T16:51:41Z")

</div>

> [@Panta](#):
>
> I tried your method and the elements only align in one axis

try making the code block this:

```auto
a.X;
a.Y;
b.Z;

```

---

<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:** [March 24, 2026, 5:00pm UTC](https://forum.dynamobim.com/t/aligning-multiple-lights-with-dynamo/114242/12 "2026-03-24T17:00:37Z")

</div>

yeps as Jacob say if i understand 😉 same same just another directoin 😉

 ![Skærmbillede 2026-03-24 175827](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/c/cc99cfb2e0a8f126046bec69873182447598e6fe.jpeg)

---

<div class="post-metadata">

**Author:** ![Panta](https://avatars.discourse-cdn.com/v4/letter/p/94ad74/32.png) [@Panta](https://forum.dynamobim.com/u/Panta)\
**Post date:** [March 24, 2026, 5:13pm UTC](https://forum.dynamobim.com/t/aligning-multiple-lights-with-dynamo/114242/13 "2026-03-24T17:13:12Z")

</div>

Oh, I understand now 🙂

I finally got it ❤ Thanks guys

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

---

<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:** [March 24, 2026, 5:27pm UTC](https://forum.dynamobim.com/t/aligning-multiple-lights-with-dynamo/114242/14 "2026-03-24T17:27:25Z")

</div>

> [@sovitek](#):
>
> as Jacob say if i understand 😉 same same just another directoin

I just fixed the typo in your original - you went `a.X; b.Y; b.Z;`.

😉

---

<div class="post-metadata">

**Author:** ![Alien](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alien/32/40701_2.png) [@Alien](https://forum.dynamobim.com/u/Alien)\
**Post date:** [March 24, 2026, 5:57pm UTC](https://forum.dynamobim.com/t/aligning-multiple-lights-with-dynamo/114242/15 "2026-03-24T17:57:01Z")

</div>

That’s because you missed A out.  
A = getting the Z coordinate for the model elements.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/8/989fce76b9cc87c4e7105fbca005fe3c68a27f24.jpeg)
