# Copy data from one parameter to family type name

**URL:** <https://forum.dynamobim.com/t/copy-data-from-one-parameter-to-family-type-name/16984>\
**Category:** Revit\
**Tags:** revit, dynamo\
**Created:** [November 30, 2017, 12:12pm UTC](https://forum.dynamobim.com/t/copy-data-from-one-parameter-to-family-type-name/16984 "2017-11-30T12:12:13Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![olga.b](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/olga.b/32/34604_2.png) [@olga.b](https://forum.dynamobim.com/u/olga.b)\
**Post date:** [November 30, 2017, 12:12pm UTC](https://forum.dynamobim.com/t/copy-data-from-one-parameter-to-family-type-name/16984/1 "2017-11-30T12:12:13Z")

</div>

Hi. I m trying to copy data from one text parameter to family type name. I created a Dynamo script, but I get a warning: “Warning: Element.SetParameterByName operation failed. The parameter’s storage type is not a string.”

---

<div class="post-metadata">

**Author:** ![olga.b](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/olga.b/32/34604_2.png) [@olga.b](https://forum.dynamobim.com/u/olga.b)\
**Post date:** [November 30, 2017, 12:17pm UTC](https://forum.dynamobim.com/t/copy-data-from-one-parameter-to-family-type-name/16984/2 "2017-11-30T12:17:10Z")

</div>

![copy data to type parameter](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/2/222fee735ba11bf0b13ed6c08db340e0322eaf49.png)

---

<div class="post-metadata">

**Author:** ![olga.b](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/olga.b/32/34604_2.png) [@olga.b](https://forum.dynamobim.com/u/olga.b)\
**Post date:** [November 30, 2017, 12:17pm UTC](https://forum.dynamobim.com/t/copy-data-from-one-parameter-to-family-type-name/16984/3 "2017-11-30T12:17:38Z")

</div>

![data to family type](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/2/82c88945a102fc1cdb9d3dd1e3deddee21f9b368.png)

---

<div class="post-metadata">

**Author:** ![olga.b](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/olga.b/32/34604_2.png) [@olga.b](https://forum.dynamobim.com/u/olga.b)\
**Post date:** [November 30, 2017, 2:04pm UTC](https://forum.dynamobim.com/t/copy-data-from-one-parameter-to-family-type-name/16984/4 "2017-11-30T14:04:30Z")

</div>

I tryed as well the Element.SetName node, but it doesnt copy data from TFM-parameter to Type. Type name doesnt change.

 ![RIB - SetName](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/6/c6abb5c659836fb478e4ad8ecd7ae6ce467d8560.png)

---

<div class="post-metadata">

**Author:** ![Claus](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/claus/32/37199_2.png) [@Claus](https://forum.dynamobim.com/u/Claus)\
**Post date:** [November 30, 2017, 2:18pm UTC](https://forum.dynamobim.com/t/copy-data-from-one-parameter-to-family-type-name/16984/5 "2017-11-30T14:18:42Z")

</div>

What if you try to make it a string with the String from object node? and then pass it into name?

---

<div class="post-metadata">

**Author:** ![olga.b](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/olga.b/32/34604_2.png) [@olga.b](https://forum.dynamobim.com/u/olga.b)\
**Post date:** [November 30, 2017, 2:25pm UTC](https://forum.dynamobim.com/t/copy-data-from-one-parameter-to-family-type-name/16984/6 "2017-11-30T14:25:06Z")

</div>

Thanx for reply. I tryed, but doesnt work.

 ![RIB - string](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/e/9e9afec03cbaaefd108d3da51615edf72b121b58.png)

---

<div class="post-metadata">

**Author:** ![Yna\_Db](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/yna_db/32/30641_2.png) [@Yna\_Db](https://forum.dynamobim.com/u/Yna_Db)\
**Post date:** [November 30, 2017, 2:31pm UTC](https://forum.dynamobim.com/t/copy-data-from-one-parameter-to-family-type-name/16984/7 "2017-11-30T14:31:07Z")

</div>

> [@olga.b](#):
>
> The parameter’s storage type is not a string

This means that the input has to be something else than a string. Check the [Storage Type](http://dictionary.dynamobim.com/#/Revit/Elements/Parameter/Query/StorageType) of your parameter.

---

<div class="post-metadata">

**Author:** ![olga.b](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/olga.b/32/34604_2.png) [@olga.b](https://forum.dynamobim.com/u/olga.b)\
**Post date:** [November 30, 2017, 2:40pm UTC](https://forum.dynamobim.com/t/copy-data-from-one-parameter-to-family-type-name/16984/8 "2017-11-30T14:40:01Z")

</div>

I guess that storage type for Type Name is Element Type. But I still dont know how to make my script work and if it is possible to push data to Type Name. Thanx though )

---

<div class="post-metadata">

**Author:** ![Yna\_Db](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/yna_db/32/30641_2.png) [@Yna\_Db](https://forum.dynamobim.com/u/Yna_Db)\
**Post date:** [November 30, 2017, 2:41pm UTC](https://forum.dynamobim.com/t/copy-data-from-one-parameter-to-family-type-name/16984/9 "2017-11-30T14:41:23Z")

</div>

No, I think Type Name is [Read Only](http://dictionary.dynamobim.com/#/Revit/Elements/Parameter/Query/IsReadOnly), you will need to set the Type parameter instead…

---

<div class="post-metadata">

**Author:** ![Claus](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/claus/32/37199_2.png) [@Claus](https://forum.dynamobim.com/u/Claus)\
**Post date:** [November 30, 2017, 2:41pm UTC](https://forum.dynamobim.com/t/copy-data-from-one-parameter-to-family-type-name/16984/10 "2017-11-30T14:41:39Z")

</div>

Maybe this topic could give you the right direction?

> [@"Element.SetParameterByName" with a list of multiple values for "parameterName"](https://forum.dynamobim.com/t/element-setparameterbyname-with-a-list-of-multiple-values-for-parametername/4876/3):
>
> Or if you want old school this should work.

---

<div class="post-metadata">

**Author:** ![olga.b](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/olga.b/32/34604_2.png) [@olga.b](https://forum.dynamobim.com/u/olga.b)\
**Post date:** [December 5, 2017, 1:25pm UTC](https://forum.dynamobim.com/t/copy-data-from-one-parameter-to-family-type-name/16984/11 "2017-12-05T13:25:47Z")

</div>

![RIB-overwrite type with TFM](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/5/152c7f0df6d278609e82444208b79c493e7624ed.png)

Modified the script and it s working now. To change type parameter I had to use Duplicate node.  
Here is the definition.
