# Copying elements across multiple Floors

**URL:** <https://forum.dynamobim.com/t/copying-elements-across-multiple-floors/104381>\
**Category:** Revit\
**Tags:** dynamo\
**Created:** [September 16, 2024, 1:45am UTC](https://forum.dynamobim.com/t/copying-elements-across-multiple-floors/104381 "2024-09-16T01:45:43Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![liamyongging](https://avatars.discourse-cdn.com/v4/letter/l/258eb7/32.png) [@liamyongging](https://forum.dynamobim.com/u/liamyongging)\
**Post date:** [September 16, 2024, 1:45am UTC](https://forum.dynamobim.com/t/copying-elements-across-multiple-floors/104381/1 "2024-09-16T01:45:43Z")

</div>

Hey gang,

New to dynamo here. I’m trying to copy an element ( door ) at a fixed position, across multiple levels.  
Can someone point out to me what i’ve gotten wrong here. Im aware the  
FamilyInstance.ByPointandLevel is potentially allowing me to copy it to only 1 floor?

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/0/30f6af61c5cc11446cf91aa44464160d66673991.jpeg)

I got this message saying ive got a list of levels instead of a list of levels. Ive tried using just the 1 level but the problem persist as well.

Will appreciate any help

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

[Copying Across Multiple Floors.dyn](https://forum.dynamobim.com/uploads/short-url/iR1Gci9a3Zvfo2weeL2Z4N14fEH.dyn) (32.2 KB)

---

<div class="post-metadata">

**Author:** ![rajeshjamariya16](https://avatars.discourse-cdn.com/v4/letter/r/58956e/32.png) [@rajeshjamariya16](https://forum.dynamobim.com/u/rajeshjamariya16)\
**Post date:** [September 16, 2024, 2:10am UTC](https://forum.dynamobim.com/t/copying-elements-across-multiple-floors/104381/2 "2024-09-16T02:10:33Z")

</div>

You are feeding family Instance, it expects family type.  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/0/d0e8b86caeb4ac629b05fc09ac39a4bba640b42a.png)

---

<div class="post-metadata">

**Author:** ![liamyongging](https://avatars.discourse-cdn.com/v4/letter/l/258eb7/32.png) [@liamyongging](https://forum.dynamobim.com/u/liamyongging)\
**Post date:** [September 16, 2024, 2:26am UTC](https://forum.dynamobim.com/t/copying-elements-across-multiple-floors/104381/3 "2024-09-16T02:26:16Z")

</div>

interesting. thanks for getting back @rajeshjamariya16 , im really new to dynamo. if i then feed it a family type, will it be able to tell which specific element in that family i\m looking to copy?

Also, im not entirely sure if Familyinstance.bypointandlevel is the right node for coping a single element across multiple floors

---

<div class="post-metadata">

**Author:** ![rajeshjamariya16](https://avatars.discourse-cdn.com/v4/letter/r/58956e/32.png) [@rajeshjamariya16](https://forum.dynamobim.com/u/rajeshjamariya16)\
**Post date:** [September 16, 2024, 2:30am UTC](https://forum.dynamobim.com/t/copying-elements-across-multiple-floors/104381/4 "2024-09-16T02:30:26Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/5/058d5a82774c02cc8d2a72a889759170a001cbd3.png)  
use this node :  
first input expects the family - you can use “family.byname” node to get the family  
second input is the name of the family type (instance) you want to place.

---

<div class="post-metadata">

**Author:** ![Mike.Buttery](https://avatars.discourse-cdn.com/v4/letter/m/b19c9b/32.png) [@Mike.Buttery](https://forum.dynamobim.com/u/Mike.Buttery)\
**Post date:** [September 16, 2024, 4:00am UTC](https://forum.dynamobim.com/t/copying-elements-across-multiple-floors/104381/5 "2024-09-16T04:00:47Z")

</div>

Place an _Element.ElementType_ node between the selection and _FamilyInstance.ByPointAndLevel_

---

<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:** [September 16, 2024, 6:39am UTC](https://forum.dynamobim.com/t/copying-elements-across-multiple-floors/104381/6 "2024-09-16T06:39:21Z")

</div>

And use family instance by point and host for Doors and windows

---

<div class="post-metadata">

**Author:** ![liamyongging](https://avatars.discourse-cdn.com/v4/letter/l/258eb7/32.png) [@liamyongging](https://forum.dynamobim.com/u/liamyongging)\
**Post date:** [September 17, 2024, 11:58pm UTC](https://forum.dynamobim.com/t/copying-elements-across-multiple-floors/104381/7 "2024-09-17T23:58:27Z")

</div>

hi @rajeshjamariya16  
Apologies for the trouble, but i was wondering how to to retrieve the Revit.Elements.Family, string. Im aware i have a Pure string input at the moment.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/3/934754589f24baf0b39e2ab42cf4d70086397d23.png)

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

---

<div class="post-metadata">

**Author:** ![liamyongging](https://avatars.discourse-cdn.com/v4/letter/l/258eb7/32.png) [@liamyongging](https://forum.dynamobim.com/u/liamyongging)\
**Post date:** [September 18, 2024, 12:00am UTC](https://forum.dynamobim.com/t/copying-elements-across-multiple-floors/104381/8 "2024-09-18T00:00:35Z")

</div>

@Mike.Buttery Hi Mike, thanks for trying to be helpful. Unfortunately im really new to this and may need a lil bit more help. Is this what you mean? Im aware that ive selected model by element because im looking to copy only 1 item

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

---

<div class="post-metadata">

**Author:** ![liamyongging](https://avatars.discourse-cdn.com/v4/letter/l/258eb7/32.png) [@liamyongging](https://forum.dynamobim.com/u/liamyongging)\
**Post date:** [September 18, 2024, 12:01am UTC](https://forum.dynamobim.com/t/copying-elements-across-multiple-floors/104381/9 "2024-09-18T00:01:39Z")

</div>

@sovitek Hi mate, thanks for getting back. With your method, i was wondering how i can retrieve the point of the next floor, or a matter of fact multiple floors at the same point. Appreciate your patience

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

---

<div class="post-metadata">

**Author:** ![rajeshjamariya16](https://avatars.discourse-cdn.com/v4/letter/r/58956e/32.png) [@rajeshjamariya16](https://forum.dynamobim.com/u/rajeshjamariya16)\
**Post date:** [September 18, 2024, 2:07am UTC](https://forum.dynamobim.com/t/copying-elements-across-multiple-floors/104381/10 "2024-09-18T02:07:14Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/d/5d861dce48689fef5a5e7951a0b1da2febebd0d6.png)  
You can use this node to get the family and feed it as an input, if you read the error it says it expects a “revit.elements.family” input and you are feeding a string.

---

<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:** [September 18, 2024, 6:28am UTC](https://forum.dynamobim.com/t/copying-elements-across-multiple-floors/104381/11 "2024-09-18T06:28:19Z")

</div>

Use family instance by point and host for inserts…not family instance by point

---

<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:** [September 18, 2024, 6:31am UTC](https://forum.dynamobim.com/t/copying-elements-across-multiple-floors/104381/12 "2024-09-18T06:31:49Z")

</div>

> [@liamyongging](#):
>
> Hi mate, thanks for getting back. With your method, i was wondering how i can retrieve the point of the next floor, or a matter of fact multiple floors at the same point

I recommend levels instead of floors as the task becomes basic math which will be faster.

1. Get the levels you want to copy to via custom input (Datashapes UI++ nodes), or get all levels and filter out those you don’t want, or just have the users select one level at a time via the dropdown, or have them select the levels in a view.
2. Pull the elevation of each level.
3. Get the level each door is on (Parameter value will return a string so follow that with a filtering method, dictionary lookup, or selection by name to attain the level), and pull the elevation of each.
4. Subtract each door level elevation from the associated target elevations. Watch you list levels and lacing. The resulting numbers are the Z axis distances you want copy each door by.

---

<div class="post-metadata">

**Author:** ![liamyongging](https://avatars.discourse-cdn.com/v4/letter/l/258eb7/32.png) [@liamyongging](https://forum.dynamobim.com/u/liamyongging)\
**Post date:** [September 18, 2024, 11:45pm UTC](https://forum.dynamobim.com/t/copying-elements-across-multiple-floors/104381/13 "2024-09-18T23:45:36Z")

</div>

HI @sovitek , apologies i was double loading on different platforms. Let me consolidate my questions into one. In a previous post you had an animation of your process, which i thought was powerful.

with the limited amount of knowledge that I have, your solution is perhaps the closest I can get to working. I just have 2 questions if that’s okay.

1. Element.Host

I’m having trouble identifying the element host of my model element ( See attached screengrab ). My understanding is that I only need to feed it my model element ? in this instance it would be my doors.

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

1. Code block  
I’m looking to understand what you’re doing with the code block. It seems like you’re identifying the Level of your doors. Is that correct? In my instance it will be a number of 22860 ( See screengrab attached ).

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/0/200b01a0106a89052f723f266983a8e6e0569833.png)

My file attached for reference

[Copying Across Multiple Floors.dyn](https://forum.dynamobim.com/uploads/short-url/9Rudb1CE8CrkqLuZghn5Je5iPTN.dyn) (48.1 KB)

Appreciate your patience…

---

<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:** [September 19, 2024, 5:13am UTC](https://forum.dynamobim.com/t/copying-elements-across-multiple-floors/104381/14 "2024-09-19T05:13:32Z")

</div>

no worries 😉 …try something here

 ![Skærmbillede 2024-09-19 071214](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/7/f72c1ba7c0f081ddcacae7ba1dc4ba8e41831ac9.jpeg)

---

<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:** [September 19, 2024, 5:31am UTC](https://forum.dynamobim.com/t/copying-elements-across-multiple-floors/104381/15 "2024-09-19T05:31:24Z")

</div>

and you will probably need a flipfacing as well…that node here is from clockwork

 ![Skærmbillede 2024-09-19 071214](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/3/0307afe28a4ff0df744e365b2fe06186e9fb0a23.png)

---

<div class="post-metadata">

**Author:** ![liamyongging](https://avatars.discourse-cdn.com/v4/letter/l/258eb7/32.png) [@liamyongging](https://forum.dynamobim.com/u/liamyongging)\
**Post date:** [September 23, 2024, 5:26am UTC](https://forum.dynamobim.com/t/copying-elements-across-multiple-floors/104381/16 "2024-09-23T05:26:59Z")

</div>

Thanks for your patience Soren and gang. This is so close to working… The only issue left is that the copied elements are all hosted on 1 level, and then being offset from it.

Any idea why this is happening? Ive tried rehosting / hosting other elements but the problem persists.

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

Kindest,  
LL

---

<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:** [September 23, 2024, 6:14am UTC](https://forum.dynamobim.com/t/copying-elements-across-multiple-floors/104381/17 "2024-09-23T06:14:08Z")

</div>

Hi @liamyongging are your walls split by level ?..if so try something here…another option could probably be copy to level from clockwork,  
 ![Revit_YxJG5rPLth](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/b/4b78e91722fbee42a02ad2ce9a17d4d749c69bb4.gif)  
[testlevel.dyn](https://forum.dynamobim.com/uploads/short-url/zRFDXDt8ZVpbJN3OXdI5SzS2VwH.dyn) (42.9 KB)

---

<div class="post-metadata">

**Author:** ![liamyongging](https://avatars.discourse-cdn.com/v4/letter/l/258eb7/32.png) [@liamyongging](https://forum.dynamobim.com/u/liamyongging)\
**Post date:** [September 23, 2024, 6:39am UTC](https://forum.dynamobim.com/t/copying-elements-across-multiple-floors/104381/18 "2024-09-23T06:39:49Z")

</div>

no its not split by level @sovitek you’re spot on. the reason is because we’re still in early stages of the project. thinking of only splitting it in IFC but can already see its giving us issues. I’ll try what you suggested and come back to you !

---

<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:** [September 23, 2024, 6:41am UTC](https://forum.dynamobim.com/t/copying-elements-across-multiple-floors/104381/19 "2024-09-23T06:41:34Z")

</div>

yeah if the wall is not split your doors will host on that wall and give that level or set level after

---

<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:** [September 23, 2024, 7:01am UTC](https://forum.dynamobim.com/t/copying-elements-across-multiple-floors/104381/20 "2024-09-23T07:01:13Z")

</div>

allright if not split something here then  
 ![Revit_ZLISpj3lSs](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/0/202f7bbe66f61c1c6df7192d93f04f470323d4ff.gif)

[testlevel.dyn](https://forum.dynamobim.com/uploads/short-url/3eQHgOLoUWygMO31iqzGOMs6tE8.dyn) (40.2 KB)

[Next page](https://forum.dynamobim.com/t/copying-elements-across-multiple-floors/104381.md?page=2)
