# Copy type parameter to another type

**URL:** https://forum.dynamobim.com/t/copy-type-parameter-to-another-type/29586
**Category:** Revit
**Created:** [December 11, 2018, 8:25pm UTC](https://forum.dynamobim.com/t/copy-type-parameter-to-another-type/29586 "2018-12-11T20:25:35Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Costas](https://avatars.discourse-cdn.com/v4/letter/c/97f17d/32.png) [@Costas](https://forum.dynamobim.com/u/Costas)
#### Post date: [December 11, 2018, 8:25pm UTC](https://forum.dynamobim.com/t/copy-type-parameter-to-another-type/29586/1 "2018-12-11T20:25:35Z")

</div>

I’m using this script I found on the Autodesk website that lets you copy an instance parameter from one to another and it works great, however if I type in a type parameter I get the error from the node Element.SetParameterByName that the parameter I typed in doesn’t exist. I found out there’s a Rhythm package that has a node that works but unfortunately I’m in Dynamo 0.9 in Revit 2016 so that package won’t work. Any suggestions?

 ![test](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/9/f9713fb60e8ddafe0f0932d3656fa7706c7dae86.png)

---

<div class="post-metadata">

### Author: ![lucifer](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/lucifer/32/67268_2.png) [@lucifer](https://forum.dynamobim.com/u/lucifer)
#### Post date: [December 11, 2018, 8:32pm UTC](https://forum.dynamobim.com/t/copy-type-parameter-to-another-type/29586/2 "2018-12-11T20:32:22Z")

</div>

try to add Element.ElementType node after All Elements of Category

---

<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: [December 11, 2018, 8:36pm UTC](https://forum.dynamobim.com/t/copy-type-parameter-to-another-type/29586/3 "2018-12-11T20:36:44Z")

</div>

Under R2016 you can upgrade up to Dynamo 1.21 i think.  
Also, if you make a Schedule and group might work, (if your parameters are Shared Parameters)

---

<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: [December 11, 2018, 8:37pm UTC](https://forum.dynamobim.com/t/copy-type-parameter-to-another-type/29586/4 "2018-12-11T20:37:41Z")

</div>

Keep in mind that type parameters can only have one value, so you’d have to get the type, then move values from type parameters to type parameters. Varying instance parameters assigned to a type parameter will result in only one value being kept (the last one in the list).

---

<div class="post-metadata">

### Author: ![Costas](https://avatars.discourse-cdn.com/v4/letter/c/97f17d/32.png) [@Costas](https://forum.dynamobim.com/u/Costas)
#### Post date: [December 11, 2018, 9:16pm UTC](https://forum.dynamobim.com/t/copy-type-parameter-to-another-type/29586/5 "2018-12-11T21:16:52Z")

</div>

Is that part of a certain package? It didn’t come up in the search, closest thing was Element.TypeName which seems like it didn’t work

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

---

<div class="post-metadata">

### Author: ![Costas](https://avatars.discourse-cdn.com/v4/letter/c/97f17d/32.png) [@Costas](https://forum.dynamobim.com/u/Costas)
#### Post date: [December 11, 2018, 9:17pm UTC](https://forum.dynamobim.com/t/copy-type-parameter-to-another-type/29586/6 "2018-12-11T21:17:58Z")

</div>

Whoops, sorry if I didn’t word it clear, I’m trying to copy one type parameter to another type parameter. Instance parameters aren’t being touched, but the script I found was intended for that instead.

---

<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: [December 11, 2018, 9:39pm UTC](https://forum.dynamobim.com/t/copy-type-parameter-to-another-type/29586/7 "2018-12-11T21:39:27Z")

</div>

Elements.Type in the archilab package should do the trick then.

---

<div class="post-metadata">

### Author: ![Costas](https://avatars.discourse-cdn.com/v4/letter/c/97f17d/32.png) [@Costas](https://forum.dynamobim.com/u/Costas)
#### Post date: [December 11, 2018, 10:08pm UTC](https://forum.dynamobim.com/t/copy-type-parameter-to-another-type/29586/8 "2018-12-11T22:08:41Z")

</div>

Is it listed as [arch-lab.net](http://arch-lab.net)? I installed it but it doesn’t appear to include that node

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/f/2ff5321518608ac67555539caf8f357ad6454c52.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: [December 11, 2018, 10:43pm UTC](https://forum.dynamobim.com/t/copy-type-parameter-to-another-type/29586/9 "2018-12-11T22:43:10Z")

</div>

That’s the one. You may need an older version as it looks like you may be using an outdated Dynamo build, and that build is intended for Revit 2019, Dynamo 2, and is issue #8 of that combination. Find the newest version which is xxxx.1.yy and see if that resolves the issue.
