# Script to move elements (vector) in revit from dynamo

**URL:** <https://forum.dynamobim.com/t/script-to-move-elements-vector-in-revit-from-dynamo/62265>\
**Category:** Revit\
**Tags:** revit, python, dynamo\
**Created:** [March 29, 2021, 10:47am UTC](https://forum.dynamobim.com/t/script-to-move-elements-vector-in-revit-from-dynamo/62265 "2021-03-29T10:47:59Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![vickykurlem](https://avatars.discourse-cdn.com/v4/letter/v/c5a1d2/32.png) [@vickykurlem](https://forum.dynamobim.com/u/vickykurlem)\
**Post date:** [March 29, 2021, 10:47am UTC](https://forum.dynamobim.com/t/script-to-move-elements-vector-in-revit-from-dynamo/62265/1 "2021-03-29T10:47:59Z")

</div>

Hey i am trying to move elements to the right position according to two different coordinates…

 ![new](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/5/25c28e00ade94d06f9043f045806e290be206052.jpeg)

---

<div class="post-metadata">

**Author:** ![Joelmick](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/joelmick/32/93148_2.png) [@Joelmick](https://forum.dynamobim.com/u/Joelmick)\
**Post date:** [March 29, 2021, 12:23pm UTC](https://forum.dynamobim.com/t/script-to-move-elements-vector-in-revit-from-dynamo/62265/2 "2021-03-29T12:23:30Z")

</div>

Depening on what kind of elements you want to move, you can use Element.GetLocation (old Coordinates) & Element.SetLocation (New Coordinates)

---

<div class="post-metadata">

**Author:** ![vickykurlem](https://avatars.discourse-cdn.com/v4/letter/v/c5a1d2/32.png) [@vickykurlem](https://forum.dynamobim.com/u/vickykurlem)\
**Post date:** [March 30, 2021, 8:17am UTC](https://forum.dynamobim.com/t/script-to-move-elements-vector-in-revit-from-dynamo/62265/3 "2021-03-30T08:17:28Z")

</div>

could you help me a bit on that? i set both but not having any result at all

 ![new](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/b/7bd3fda060b958a53cb95c1e20ec416cdf1c6141.jpeg)

---

<div class="post-metadata">

**Author:** ![Joelmick](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/joelmick/32/93148_2.png) [@Joelmick](https://forum.dynamobim.com/u/Joelmick)\
**Post date:** [March 30, 2021, 10:32am UTC](https://forum.dynamobim.com/t/script-to-move-elements-vector-in-revit-from-dynamo/62265/4 "2021-03-30T10:32:28Z")

</div>

Okay. Please read the Description of the Nodes. This will give you a clue on to put in the inputs.

Example: You have some Generic Models which are point based.

If you select the Elements with Dynamo and you put them into **Element.GetLocation** , this will give you the points of the locations where the generic models are.

You can Move these points using (Translate or Transform) or make new points based in an excel. At this point, nothing happends in Revit.

If you use **Element.SetLocation** you have to put the Generic models in element and the new location points into geometry. This will relocate the Generic models to these new points.

This also works for other families.  
Another Example are Structural Framings. These are Line based. When putting them in **Element.GetLocation** you will get a curve of some sort. This means you also have to put a Curve into geometry if you want to use **Element.SetLocation**  
(This is actually something I am working on right now see screenshot)

If you need any more help let me know. Maybe share your files so we can help you even more.

 ![Untitled](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/6/f6f71e1e47c11eebd6a580300886a3d252088ddb.png)

---

<div class="post-metadata">

**Author:** ![vickykurlem](https://avatars.discourse-cdn.com/v4/letter/v/c5a1d2/32.png) [@vickykurlem](https://forum.dynamobim.com/u/vickykurlem)\
**Post date:** [March 30, 2021, 11:26am UTC](https://forum.dynamobim.com/t/script-to-move-elements-vector-in-revit-from-dynamo/62265/5 "2021-03-30T11:26:12Z")

</div>

in parameter what i am supposed to put? the new location ?

---

<div class="post-metadata">

**Author:** ![Joelmick](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/joelmick/32/93148_2.png) [@Joelmick](https://forum.dynamobim.com/u/Joelmick)\
**Post date:** [March 30, 2021, 11:29am UTC](https://forum.dynamobim.com/t/script-to-move-elements-vector-in-revit-from-dynamo/62265/6 "2021-03-30T11:29:33Z")

</div>

The picture I posted is just an example, it might not be perfectly applicable to your case.

What do you mean with “Parameter”, do you mean the **Curve.PointAtParameter** node?

Curve.PointAtParameter creates a point or multiple points on a Curve.

---

<div class="post-metadata">

**Author:** ![vickykurlem](https://avatars.discourse-cdn.com/v4/letter/v/c5a1d2/32.png) [@vickykurlem](https://forum.dynamobim.com/u/vickykurlem)\
**Post date:** [March 30, 2021, 11:30am UTC](https://forum.dynamobim.com/t/script-to-move-elements-vector-in-revit-from-dynamo/62265/7 "2021-03-30T11:30:06Z")

</div>

in nurbs and set location shows null

 ![ac](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/4/b47fa5074ef3ccd4fa043b84de97c042c9aaee4d.jpeg)

---

<div class="post-metadata">

**Author:** ![Joelmick](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/joelmick/32/93148_2.png) [@Joelmick](https://forum.dynamobim.com/u/Joelmick)\
**Post date:** [March 30, 2021, 11:32am UTC](https://forum.dynamobim.com/t/script-to-move-elements-vector-in-revit-from-dynamo/62265/8 "2021-03-30T11:32:14Z")

</div>

What Kind of Elements are you trying to relocate?

---

<div class="post-metadata">

**Author:** ![vickykurlem](https://avatars.discourse-cdn.com/v4/letter/v/c5a1d2/32.png) [@vickykurlem](https://forum.dynamobim.com/u/vickykurlem)\
**Post date:** [March 30, 2021, 11:32am UTC](https://forum.dynamobim.com/t/script-to-move-elements-vector-in-revit-from-dynamo/62265/9 "2021-03-30T11:32:58Z")

</div>

walls, columns, beams…

---

<div class="post-metadata">

**Author:** ![Joelmick](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/joelmick/32/93148_2.png) [@Joelmick](https://forum.dynamobim.com/u/Joelmick)\
**Post date:** [March 30, 2021, 11:34am UTC](https://forum.dynamobim.com/t/script-to-move-elements-vector-in-revit-from-dynamo/62265/10 "2021-03-30T11:34:13Z")

</div>

Walls will not work with this method.

This method only works for Families…

Let me think of something else.

---

<div class="post-metadata">

**Author:** ![vickykurlem](https://avatars.discourse-cdn.com/v4/letter/v/c5a1d2/32.png) [@vickykurlem](https://forum.dynamobim.com/u/vickykurlem)\
**Post date:** [March 30, 2021, 11:35am UTC](https://forum.dynamobim.com/t/script-to-move-elements-vector-in-revit-from-dynamo/62265/11 "2021-03-30T11:35:46Z")

</div>

okey, here i am using elements from active view…

---

<div class="post-metadata">

**Author:** ![Joelmick](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/joelmick/32/93148_2.png) [@Joelmick](https://forum.dynamobim.com/u/Joelmick)\
**Post date:** [March 30, 2021, 11:48am UTC](https://forum.dynamobim.com/t/script-to-move-elements-vector-in-revit-from-dynamo/62265/12 "2021-03-30T11:48:52Z")

</div>

I am guessing you want to relocate you whole project? I think that is quite a hard thing to do with Dynamo since it is not really selecting everything and use move.

With getting all the elements in the active view, you will also get things you cannot “move”

---

<div class="post-metadata">

**Author:** ![vickykurlem](https://avatars.discourse-cdn.com/v4/letter/v/c5a1d2/32.png) [@vickykurlem](https://forum.dynamobim.com/u/vickykurlem)\
**Post date:** [March 30, 2021, 11:52am UTC](https://forum.dynamobim.com/t/script-to-move-elements-vector-in-revit-from-dynamo/62265/13 "2021-03-30T11:52:02Z")

</div>

no, no the hole project only the elements that are linked to the model that are 43…

---

<div class="post-metadata">

**Author:** ![vickykurlem](https://avatars.discourse-cdn.com/v4/letter/v/c5a1d2/32.png) [@vickykurlem](https://forum.dynamobim.com/u/vickykurlem)\
**Post date:** [March 31, 2021, 10:46am UTC](https://forum.dynamobim.com/t/script-to-move-elements-vector-in-revit-from-dynamo/62265/14 "2021-03-31T10:46:58Z")

</div>

![Captura](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/5/15ea8ffe871cbf90fcbb04d5b98104bfef876dfc.jpeg)

@Joelmick i tryed what you shown me and not having results…

---

<div class="post-metadata">

**Author:** ![Steven2026](https://avatars.discourse-cdn.com/v4/letter/s/c5a1d2/32.png) [@Steven2026](https://forum.dynamobim.com/u/Steven2026)\
**Post date:** [July 14, 2025, 1:47pm UTC](https://forum.dynamobim.com/t/script-to-move-elements-vector-in-revit-from-dynamo/62265/15 "2025-07-14T13:47:58Z")

</div>

When I use the “Element.SetLocation” node, the points from the families move but not the families .

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

---

<div class="post-metadata">

**Author:** ![bvs1982](https://avatars.discourse-cdn.com/v4/letter/b/43a26b/32.png) [@bvs1982](https://forum.dynamobim.com/u/bvs1982)\
**Post date:** [July 14, 2025, 2:17pm UTC](https://forum.dynamobim.com/t/script-to-move-elements-vector-in-revit-from-dynamo/62265/16 "2025-07-14T14:17:43Z")

</div>

Are you trying to change the **offset** or something of that kind?  
Because i see you are trying to change the **Z**.

If so, i think you need another approach.

So you cant change this…

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

…by changing this (AFAIK).

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

---

<div class="post-metadata">

**Author:** ![Steven2026](https://avatars.discourse-cdn.com/v4/letter/s/c5a1d2/32.png) [@Steven2026](https://forum.dynamobim.com/u/Steven2026)\
**Post date:** [July 15, 2025, 1:35pm UTC](https://forum.dynamobim.com/t/script-to-move-elements-vector-in-revit-from-dynamo/62265/17 "2025-07-15T13:35:45Z")

</div>

I want to change the elevation of an element. Currently, I don’t have access to the file which means I don’t exactly know how the element is modelled. So, I just placed couple families and test the script. It looks like the “Z” suppose to change “Elevation from level”. I think because the box is grey out so the elevation doesn’t change. I tried another family which I can input the “Elevation from level” and it works.

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

---

<div class="post-metadata">

**Author:** ![bvs1982](https://avatars.discourse-cdn.com/v4/letter/b/43a26b/32.png) [@bvs1982](https://forum.dynamobim.com/u/bvs1982)\
**Post date:** [July 15, 2025, 1:42pm UTC](https://forum.dynamobim.com/t/script-to-move-elements-vector-in-revit-from-dynamo/62265/18 "2025-07-15T13:42:52Z")

</div>

Maybe the difference is one Family is  
_Workplane_ based?

---

<div class="post-metadata">

**Author:** ![Steven2026](https://avatars.discourse-cdn.com/v4/letter/s/c5a1d2/32.png) [@Steven2026](https://forum.dynamobim.com/u/Steven2026)\
**Post date:** [July 15, 2025, 1:49pm UTC](https://forum.dynamobim.com/t/script-to-move-elements-vector-in-revit-from-dynamo/62265/19 "2025-07-15T13:49:57Z")

</div>

I think you are right. The difference is whether the family can be moved from the host.
