# Copy elements from linked model - wrong location

**URL:** <https://forum.dynamobim.com/t/copy-elements-from-linked-model-wrong-location/31023>\
**Category:** Revit\
**Tags:** revit, dynamo\
**Created:** [January 22, 2019, 8:59am UTC](https://forum.dynamobim.com/t/copy-elements-from-linked-model-wrong-location/31023 "2019-01-22T08:59:01Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![j.krol](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/j.krol/32/68986_2.png) [@j.krol](https://forum.dynamobim.com/u/j.krol)\
**Post date:** [January 22, 2019, 8:59am UTC](https://forum.dynamobim.com/t/copy-elements-from-linked-model-wrong-location/31023/1 "2019-01-22T08:59:01Z")

</div>

Hello everyone!

I found a script which can copy elements from linked model to new one.  
It works, but with warnings; windows are copied, but aren’t in right location.

I made some test models and effect are always the same - windows are moved 30.48cm.  
Maybe I do something wrong with inserting architectural model - I insert model by Projects Base Point to Projects Base Point.

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

Any ideas why it isn’t work?

I attach my test models - architectural and structural (before use script and after) and script.  
link: [https://www.dropbox.com/s/d99q8dclut8ktre/test.rar?dl=0](https://www.dropbox.com/s/d99q8dclut8ktre/test.rar?dl=0)

Best wishes  
Jadwiga

---

<div class="post-metadata">

**Author:** ![Marcel\_Rijsmus](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/marcel_rijsmus/32/8539_2.png) [@Marcel\_Rijsmus](https://forum.dynamobim.com/u/Marcel_Rijsmus)\
**Post date:** [January 22, 2019, 9:22am UTC](https://forum.dynamobim.com/t/copy-elements-from-linked-model-wrong-location/31023/2 "2019-01-22T09:22:56Z")

</div>

thats one foot exactly  
can it be a units thing?

---

<div class="post-metadata">

**Author:** ![kennyb6](https://avatars.discourse-cdn.com/v4/letter/k/7ba0ec/32.png) [@kennyb6](https://forum.dynamobim.com/u/kennyb6)\
**Post date:** [January 22, 2019, 9:29am UTC](https://forum.dynamobim.com/t/copy-elements-from-linked-model-wrong-location/31023/3 "2019-01-22T09:29:40Z")

</div>

Hello.

Try running this script in either of the projects and see if all of the numbers in the Linked Projects node match the ones in the Current Project node (particularly the Active Project Location). If they do not, that could be your problem.

[Project Locations.dyn](https://forum.dynamobim.com/uploads/short-url/BhMVdIf3vJJGQpF4Fxz4T5leeB.dyn) (15.3 KB)

---

<div class="post-metadata">

**Author:** ![j.krol](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/j.krol/32/68986_2.png) [@j.krol](https://forum.dynamobim.com/u/j.krol)\
**Post date:** [January 22, 2019, 10:45am UTC](https://forum.dynamobim.com/t/copy-elements-from-linked-model-wrong-location/31023/4 "2019-01-22T10:45:20Z")

</div>

@kennyb6  
I can’t open this file.  
In which version of Dynamo was make?

---

<div class="post-metadata">

**Author:** ![kennyb6](https://avatars.discourse-cdn.com/v4/letter/k/7ba0ec/32.png) [@kennyb6](https://forum.dynamobim.com/u/kennyb6)\
**Post date:** [January 22, 2019, 10:56am UTC](https://forum.dynamobim.com/t/copy-elements-from-linked-model-wrong-location/31023/5 "2019-01-22T10:56:05Z")

</div>

It was made in 2.0. I can upload a 1.3 version tomorrow.

---

<div class="post-metadata">

**Author:** ![j.krol](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/j.krol/32/68986_2.png) [@j.krol](https://forum.dynamobim.com/u/j.krol)\
**Post date:** [January 22, 2019, 12:14pm UTC](https://forum.dynamobim.com/t/copy-elements-from-linked-model-wrong-location/31023/6 "2019-01-22T12:14:23Z")

</div>

Okay, I found another script which work correct.  
Link: [Batch copying elements from a linked file](https://forum.dynamobim.com/t/batch-copying-elements-from-a-linked-file/2085/3)

But still I’m curious why previous script doesn’t work.  
Where is the crucial difference?

---

<div class="post-metadata">

**Author:** ![Mark.Ackerley](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/mark.ackerley/32/79310_2.png) [@Mark.Ackerley](https://forum.dynamobim.com/u/Mark.Ackerley)\
**Post date:** [January 22, 2019, 12:17pm UTC](https://forum.dynamobim.com/t/copy-elements-from-linked-model-wrong-location/31023/7 "2019-01-22T12:17:31Z")

</div>

Hey,

I would guess that it’s because of a shift in the Project North? One node might account for the difference between 2 files’ Project Norths, the other might not…

Hope that’s helpful,

Mark

---

<div class="post-metadata">

**Author:** ![Thomas\_Mahon](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/thomas_mahon/32/64209_2.png) [@Thomas\_Mahon](https://forum.dynamobim.com/u/Thomas_Mahon)\
**Post date:** [January 22, 2019, 12:19pm UTC](https://forum.dynamobim.com/t/copy-elements-from-linked-model-wrong-location/31023/8 "2019-01-22T12:19:41Z")

</div>

…also, coming soon to BimorphNodes. Should be out some time before end of Q1. As BimorphNodes LinkElements contain all their transform data, this works out where their host location is by default, so the inputs are minimal, plus it optimises the copy process if you throw multiple linked elements from multiple different Linked files at it, i.e. it does all the transform and link doc data management internally:

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

---

<div class="post-metadata">

**Author:** ![Mark.Ackerley](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/mark.ackerley/32/79310_2.png) [@Mark.Ackerley](https://forum.dynamobim.com/u/Mark.Ackerley)\
**Post date:** [January 22, 2019, 12:23pm UTC](https://forum.dynamobim.com/t/copy-elements-from-linked-model-wrong-location/31023/9 "2019-01-22T12:23:56Z")

</div>

Sounds awesome Thomas, thanks a lot! Can I get an auto notification when your package updates?

---

<div class="post-metadata">

**Author:** ![Thomas\_Mahon](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/thomas_mahon/32/64209_2.png) [@Thomas\_Mahon](https://forum.dynamobim.com/u/Thomas_Mahon)\
**Post date:** [January 22, 2019, 12:25pm UTC](https://forum.dynamobim.com/t/copy-elements-from-linked-model-wrong-location/31023/10 "2019-01-22T12:25:23Z")

</div>

Of course, there will be the obligatory post on the forum detailing all the updates (there’s some more goodies in the pipeline), I’ll cc you in the comments in any case when I announce the release.

---

<div class="post-metadata">

**Author:** ![kennyb6](https://avatars.discourse-cdn.com/v4/letter/k/7ba0ec/32.png) [@kennyb6](https://forum.dynamobim.com/u/kennyb6)\
**Post date:** [January 23, 2019, 1:54am UTC](https://forum.dynamobim.com/t/copy-elements-from-linked-model-wrong-location/31023/11 "2019-01-23T01:54:02Z")

</div>

Hi Thomas. Have you experienced issues with copying from one linked project to current when project base points match but project active locations differ?

This became an issue when trying to use nodes like Elements in spaces between a current and linked project. The linked project in a Revit view was in the correct place (based on project base point) but Dynamo saw the linked project at the project active location instead, so in Dynamo element locations did not match up.

---

<div class="post-metadata">

**Author:** ![Thomas\_Mahon](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/thomas_mahon/32/64209_2.png) [@Thomas\_Mahon](https://forum.dynamobim.com/u/Thomas_Mahon)\
**Post date:** [January 23, 2019, 2:29am UTC](https://forum.dynamobim.com/t/copy-elements-from-linked-model-wrong-location/31023/12 "2019-01-23T02:29:39Z")

</div>

Hi @kennyb6 yes that’s the Revit API ‘linked-element’ limitation which restricts elements from a linked file to their origin-to-origin location/source file coordinates rather then their host location in the active file. The transform property of the RevitLinkInstance however enables this to be corrected, and thats what this node uses - or rather, LinkElement instances store the transform - meaning the copy is positioned where you see it in your active file.

---

<div class="post-metadata">

**Author:** ![kennyb6](https://avatars.discourse-cdn.com/v4/letter/k/7ba0ec/32.png) [@kennyb6](https://forum.dynamobim.com/u/kennyb6)\
**Post date:** [January 23, 2019, 2:31am UTC](https://forum.dynamobim.com/t/copy-elements-from-linked-model-wrong-location/31023/13 "2019-01-23T02:31:05Z")

</div>

Awesome! That will save many headaches. Thank you!

---

<div class="post-metadata">

**Author:** ![GEORGESGTDV6](https://avatars.discourse-cdn.com/v4/letter/g/ce73a5/32.png) [@GEORGESGTDV6](https://forum.dynamobim.com/u/GEORGESGTDV6)\
**Post date:** [November 8, 2019, 3:38pm UTC](https://forum.dynamobim.com/t/copy-elements-from-linked-model-wrong-location/31023/14 "2019-11-08T15:38:56Z")

</div>

Hey Thomas

Is there a way to copy elements from a linked view of a Revit link without the Linked view being visible in the host View?

---

<div class="post-metadata">

**Author:** ![Allard\_DStudio](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@Allard\_DStudio](https://forum.dynamobim.com/u/Allard_DStudio)\
**Post date:** [January 28, 2020, 1:37pm UTC](https://forum.dynamobim.com/t/copy-elements-from-linked-model-wrong-location/31023/15 "2020-01-28T13:37:08Z")

</div>

### Hello,

Was someone already able to resolve the issue of elements appearing in wrong location after copying? I tried already a lot of “solutions” that I found here but it is still copied to a wrong location. @Thomas_Mahon I also tried the nodes of BimorphNodes but without success. The files are linked by Project Base Point and Internal Origin is not at the same place for both models.

Thanks in advance

---

<div class="post-metadata">

**Author:** ![Marcel\_Rijsmus](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/marcel_rijsmus/32/8539_2.png) [@Marcel\_Rijsmus](https://forum.dynamobim.com/u/Marcel_Rijsmus)\
**Post date:** [January 28, 2020, 3:35pm UTC](https://forum.dynamobim.com/t/copy-elements-from-linked-model-wrong-location/31023/16 "2020-01-28T15:35:29Z")

</div>

Hoi Allard,  
There might be something useful in the Genius\_Loci package.  
Marcel

---

<div class="post-metadata">

**Author:** ![Thomas\_Mahon](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/thomas_mahon/32/64209_2.png) [@Thomas\_Mahon](https://forum.dynamobim.com/u/Thomas_Mahon)\
**Post date:** [January 28, 2020, 7:51pm UTC](https://forum.dynamobim.com/t/copy-elements-from-linked-model-wrong-location/31023/17 "2020-01-28T19:51:55Z")

</div>

Transforming the elements will resolve differences in origins. This sounds like something else is going on with your files. Create a minimal reproducible case - i.e. 1 wall in a linked model which exhibits the behaviour you’ve observed and share the files.

---

<div class="post-metadata">

**Author:** ![Allard\_DStudio](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@Allard\_DStudio](https://forum.dynamobim.com/u/Allard_DStudio)\
**Post date:** [January 29, 2020, 8:02am UTC](https://forum.dynamobim.com/t/copy-elements-from-linked-model-wrong-location/31023/18 "2020-01-29T08:02:56Z")

</div>

Hello Marcel,

I do not immediately find a node that can help me. Do you have one in mind?

Allard

---

<div class="post-metadata">

**Author:** ![Allard\_DStudio](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@Allard\_DStudio](https://forum.dynamobim.com/u/Allard_DStudio)\
**Post date:** [January 29, 2020, 8:11am UTC](https://forum.dynamobim.com/t/copy-elements-from-linked-model-wrong-location/31023/19 "2020-01-29T08:11:42Z")

</div>

Hello Thomas,

Here you have a link with the models. The goal is to import the elements from the opening model in the STRU model. [Wetransfer Link](https://we.tl/t-L1qgxDgZCB)

Allard

---

<div class="post-metadata">

**Author:** ![j.krol](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/j.krol/32/68986_2.png) [@j.krol](https://forum.dynamobim.com/u/j.krol)\
**Post date:** [January 29, 2020, 8:52am UTC](https://forum.dynamobim.com/t/copy-elements-from-linked-model-wrong-location/31023/20 "2020-01-29T08:52:55Z")

</div>

Hello Allard

I know where is the problem.  
Your void family is base on level.  
So, for correct program operation, you have to have in target model exactly the same level which is in sources model void element.

I copied level L090\_Bestaand and then the BimorphNodes worked.

 ![obraz](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/0/100fecd64d594ccaa8fbb93e7120e7e25d0c02ad.png)

You could copy the level by Copy/Monitor or prepare Dynamo graph which read the source level, copy it and copy instance element.

I hope it will be helpfull.  
Jadwiga

[Next page](https://forum.dynamobim.com/t/copy-elements-from-linked-model-wrong-location/31023.md?page=2)
