# Write instance parameters to another field

**URL:** <https://forum.dynamobim.com/t/write-instance-parameters-to-another-field/91069>\
**Category:** Revit\
**Tags:** revit, dynamo\
**Created:** [June 23, 2023, 8:35am UTC](https://forum.dynamobim.com/t/write-instance-parameters-to-another-field/91069 "2023-06-23T08:35:28Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![0philipp0](https://avatars.discourse-cdn.com/v4/letter/0/9de0a6/32.png) [@0philipp0](https://forum.dynamobim.com/u/0philipp0)\
**Post date:** [June 23, 2023, 8:35am UTC](https://forum.dynamobim.com/t/write-instance-parameters-to-another-field/91069/1 "2023-06-23T08:35:28Z")

</div>

Good day  
I would like to write the created phases of walls in another information field e.g. Pset\_WallCommon.Status. The currently created script is attached as a screenshot. Unfortunately, this script does not work completely, currently no value is written to me. Also, is there a way to extend this script to use all categories or do I have to create this script for each category individually?  
Thank you for your support in advance.  
Greetings Philipp

 ![Dynamo](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/4/a432f4ea0bb2a57ca62daf077c56a1dea9399e90.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:** [June 23, 2023, 8:37am UTC](https://forum.dynamobim.com/t/write-instance-parameters-to-another-field/91069/2 "2023-06-23T08:37:51Z")

</div>

Hello @0philipp0 and welcome here 😉 try something here…and try get the phase name as string

 ![Capture.PNG](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/4/44c393e42d2097d2b55a47123c794a605d05733f.jpeg)

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

---

<div class="post-metadata">

**Author:** ![0philipp0](https://avatars.discourse-cdn.com/v4/letter/0/9de0a6/32.png) [@0philipp0](https://forum.dynamobim.com/u/0philipp0)\
**Post date:** [June 23, 2023, 9:21am UTC](https://forum.dynamobim.com/t/write-instance-parameters-to-another-field/91069/3 "2023-06-23T09:21:48Z")

</div>

Hello Sovitek

Thank you for your quick feedback.  
I have made the adjustment to the Dynamo script.  
Unfortunately the last module “Element.SetParameterByName” is not working properly.  
I still have the dynamo file in the following link.  
so you can also see the error message.  
Greetings Philipp

> **[Filter Bestand.png](https://wetransfer.com/downloads/6e46b6d452509f11e438f58beaa800b920230623092106/5e79b8)**
>
> 2 files sent via WeTransfer, the simplest way to send your files around the world

---

<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:** [June 23, 2023, 9:48am UTC](https://forum.dynamobim.com/t/write-instance-parameters-to-another-field/91069/4 "2023-06-23T09:48:03Z")

</div>

Hi @0philipp0 …I assume wænde is wall…and its phase created you wanna write to another parameter…

 ![Capture.PNG](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/6/f6892946e793386dd7a61299d996a4fda1f64ffb.jpeg)

---

<div class="post-metadata">

**Author:** ![0philipp0](https://avatars.discourse-cdn.com/v4/letter/0/9de0a6/32.png) [@0philipp0](https://forum.dynamobim.com/u/0philipp0)\
**Post date:** [June 23, 2023, 12:09pm UTC](https://forum.dynamobim.com/t/write-instance-parameters-to-another-field/91069/5 "2023-06-23T12:09:04Z")

</div>

Hello  
Thanks for the tip, I have now chosen the structure like this but I now have the following error message:  
Element.SetParameterByName failed.  
The location of the parameter is not an element.  
The parameter in which I want to write the information is a normal text parameter.  
Greetings Philipp

---

<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:** [June 23, 2023, 12:24pm UTC](https://forum.dynamobim.com/t/write-instance-parameters-to-another-field/91069/6 "2023-06-23T12:24:19Z")

</div>

hmmm are your sure you spell it right ?, is it a type parameter ? and be sure its a text parameter…

 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/6/26fd7f088b43ad5d4790866a61ee109f3dd5b68c.png)  
 ![1Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/e/ae9960e1d836d74074b1c19871f15e43feb42cc7.png)

---

<div class="post-metadata">

**Author:** ![0philipp0](https://avatars.discourse-cdn.com/v4/letter/0/9de0a6/32.png) [@0philipp0](https://forum.dynamobim.com/u/0philipp0)\
**Post date:** [June 23, 2023, 12:55pm UTC](https://forum.dynamobim.com/t/write-instance-parameters-to-another-field/91069/7 "2023-06-23T12:55:28Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/0/f05ce9bc00f9f8c5dfd14965460991cde4f57911.png)  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/2/320d4294dec286f726588d67e3a1f9e6159af860.png)  
For me, it is an instance parameter “Exemplarparameter”. I have selected the same settings as 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:** [June 23, 2023, 1:01pm UTC](https://forum.dynamobim.com/t/write-instance-parameters-to-another-field/91069/8 "2023-06-23T13:01:22Z")

</div>

Looks all good 😉 could you show your grapg with all nodes expanded because now i am a little confused as in your first image there getparameter give elements ? isnt it phasecreated parameter you read from ? it should give a string…if that node gives element then try take its name as string and feed into setparemeter…hope it make sense

 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/9/99b8b4623a10303429d08163e80bdb10b7fe7350.png)

looks like you get the phases itself with getparameter in your first image…strange…which version are in ? …

 ![Capture.PNG](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/1/e1773a9f776a6173a401ddb72538505591e5a59f.jpeg)

---

<div class="post-metadata">

**Author:** ![0philipp0](https://avatars.discourse-cdn.com/v4/letter/0/9de0a6/32.png) [@0philipp0](https://forum.dynamobim.com/u/0philipp0)\
**Post date:** [June 23, 2023, 1:34pm UTC](https://forum.dynamobim.com/t/write-instance-parameters-to-another-field/91069/9 "2023-06-23T13:34:59Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/b/4b22aa78ae7e724cf177eaff5dbfc23c236767d1.jpeg)  
Hello  
cool now it works it was the name issue that was missing. Thanks for your help.  
Greetings Philipp
