# Data transfer between the same element in separate duplicate models

**URL:** <https://forum.dynamobim.com/t/data-transfer-between-the-same-element-in-separate-duplicate-models/96367>\
**Category:** Revit\
**Tags:** python, geometry, dynamo\
**Created:** [December 13, 2023, 12:20pm UTC](https://forum.dynamobim.com/t/data-transfer-between-the-same-element-in-separate-duplicate-models/96367 "2023-12-13T12:20:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![willem.creffierKCWFB](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/willem.creffierkcwfb/32/180663_2.png) [@willem.creffierKCWFB](https://forum.dynamobim.com/u/willem.creffierKCWFB)\
**Post date:** [December 13, 2023, 12:20pm UTC](https://forum.dynamobim.com/t/data-transfer-between-the-same-element-in-separate-duplicate-models/96367/1 "2023-12-13T12:20:28Z")

</div>

Hi there,

in a previous post I did find this very usefull script to compare two diverted versions of the same model.

[Comparing the same element in separate duplicate models - Revit - Dynamo (dynamobim.com)](https://forum.dynamobim.com/t/comparing-the-same-element-in-separate-duplicate-models/64782/5)

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

I would like to take it as the start to copy metadata from 1 version to the other.

please Consider this simplified model…

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/2/82986a9f5c94a1b97c574dcf71a71bf0b9dc3ca0.png)  
Different geometry and same data seams to be difficult with parameters reporting dimensions, but everything is accounted for.

I made the old model transparent for easy interpretation.

I am familiar with the get/set Parameter values routines, but do not see how to acces the parameter values in the linked (old) model, in order to write them to the corresponding elements in the current model.

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

I could save the data to a spreadsheet, and copy it with the UID’s.  
But it should be doable all at once, no?

Old linked model is the “PreviousversionDocument”

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

Any thoughts on accessing its data within the graph?

---

<div class="post-metadata">

**Author:** ![willem.creffierKCWFB](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/willem.creffierkcwfb/32/180663_2.png) [@willem.creffierKCWFB](https://forum.dynamobim.com/u/willem.creffierKCWFB)\
**Post date:** [December 13, 2023, 12:30pm UTC](https://forum.dynamobim.com/t/data-transfer-between-the-same-element-in-separate-duplicate-models/96367/2 "2023-12-13T12:30:38Z")

</div>

[Model Comparison kleine test.dyn](https://forum.dynamobim.com/uploads/short-url/xCBBJFXHsle6KG2mUt8u1E91NKz.dyn) (66.3 KB)

---

<div class="post-metadata">

**Author:** ![willem.creffierKCWFB](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/willem.creffierkcwfb/32/180663_2.png) [@willem.creffierKCWFB](https://forum.dynamobim.com/u/willem.creffierKCWFB)\
**Post date:** [December 13, 2023, 12:56pm UTC](https://forum.dynamobim.com/t/data-transfer-between-the-same-element-in-separate-duplicate-models/96367/3 "2023-12-13T12:56:47Z")

</div>

[new 2.rvt](https://forum.dynamobim.com/uploads/short-url/fOYg2IIbGR0NPUhCWKL5N9KJ0Ez.rvt) (464 KB)  
[old.rvt](https://forum.dynamobim.com/uploads/short-url/zZ1Jdqutsv3fBWNkbkhINkpe4uQ.rvt) (424 KB)

---

<div class="post-metadata">

**Author:** ![Mostafa\_El\_Ayoubi](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/mostafa_el_ayoubi/32/7815_2.png) [@Mostafa\_El\_Ayoubi](https://forum.dynamobim.com/u/Mostafa_El_Ayoubi)\
**Post date:** [December 13, 2023, 2:14pm UTC](https://forum.dynamobim.com/t/data-transfer-between-the-same-element-in-separate-duplicate-models/96367/4 "2023-12-13T14:14:58Z")

</div>

hey @willem.creffierKCWFB !

One option I can think of is to get elements from the link using one of the “_Get Elements Of Category in Link Document_” type of nodes that are available (there are some in [Archi-Lab](https://forum.dynamobim.com/t/revit-2022-dynamo-2-10-package-not-showing-up-and-icons-missing/62933/7?) and in Data Shapes), then create a dictionary where the value is the element, and the key is the Id or Guid. Then you should be able to get the elements by their Id using the dictionary without having to export things. I hope this makes sense ! 🙂

---

<div class="post-metadata">

**Author:** ![willem.creffierKCWFB](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/willem.creffierkcwfb/32/180663_2.png) [@willem.creffierKCWFB](https://forum.dynamobim.com/u/willem.creffierKCWFB)\
**Post date:** [December 15, 2023, 12:59pm UTC](https://forum.dynamobim.com/t/data-transfer-between-the-same-element-in-separate-duplicate-models/96367/5 "2023-12-15T12:59:46Z")

</div>

Bonjour @Mostafa_El_Ayoubi

merci de prendre le temps de regarder cette défi.

I was a bit disappointed that there are no outs at the Modification Tracker to handle the elements in the current model, but maybe it makes sense not to analyze and change data in the same script.

I follow your advice and it works well.

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

A part from the fact that only 1 of 2 parameters are set.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/7/27b8f2bb22c3eb05e8daea2bd8322ef30f59d5ee.png)\<  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/4/44e78539a19df1222e2d9fa712631c243637baef.png)

I Guess it’s something in the Levels or the Lacing…

[Model Comparison kleine test 03.dyn](https://forum.dynamobim.com/uploads/short-url/jkdX23WSWAujljmo4nAVI1rwbVb.dyn) (55.3 KB)
