# Script to update shared parameter value of multiple families available?

**URL:** <https://forum.dynamobim.com/t/script-to-update-shared-parameter-value-of-multiple-families-available/64526>\
**Category:** Uncategorized\
**Created:** [May 30, 2021, 6:21pm UTC](https://forum.dynamobim.com/t/script-to-update-shared-parameter-value-of-multiple-families-available/64526 "2021-05-30T18:21:21Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![j.sunnyT6MVA](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/j.sunnyt6mva/32/128323_2.png) [@j.sunnyT6MVA](https://forum.dynamobim.com/u/j.sunnyT6MVA)\
**Post date:** [May 30, 2021, 6:21pm UTC](https://forum.dynamobim.com/t/script-to-update-shared-parameter-value-of-multiple-families-available/64526/1 "2021-05-30T18:21:22Z")

</div>

I have a set a revit families in one folder with a same shared parameter present in all families.I want to update the shared parameter value in each family with different values.Is anybody aware of existing scripts to do the same.

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

---

<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:** [May 30, 2021, 7:36pm UTC](https://forum.dynamobim.com/t/script-to-update-shared-parameter-value-of-multiple-families-available/64526/2 "2021-05-30T19:36:02Z")

</div>

NO. You have to make at least a first effort and you have to ask if/where it goes wrong and explain that,  
After that you’ll get all the help you need.

---

<div class="post-metadata">

**Author:** ![GavinNicholls](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/gavinnicholls/32/190442_2.png) [@GavinNicholls](https://forum.dynamobim.com/u/GavinNicholls)\
**Post date:** [May 30, 2021, 10:21pm UTC](https://forum.dynamobim.com/t/script-to-update-shared-parameter-value-of-multiple-families-available/64526/3 "2021-05-30T22:21:21Z")

</div>

At the least you’l need an excel table with the type_parameter for row_column to get values. Dynamo aint a mind reader so you’ll need to give it the data.

The orchid package has nodes for these types of things, so i suggest downloading that package from the erfajo github and beginning there.

As marcel said, you’ have more luck getting help if you develop a script for review.

---

<div class="post-metadata">

**Author:** ![j.sunnyT6MVA](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/j.sunnyt6mva/32/128323_2.png) [@j.sunnyT6MVA](https://forum.dynamobim.com/u/j.sunnyT6MVA)\
**Post date:** [May 31, 2021, 3:32am UTC](https://forum.dynamobim.com/t/script-to-update-shared-parameter-value-of-multiple-families-available/64526/4 "2021-05-31T03:32:01Z")

</div>

sure…Developing it…Will post Update

---

<div class="post-metadata">

**Author:** ![j.sunnyT6MVA](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/j.sunnyt6mva/32/128323_2.png) [@j.sunnyT6MVA](https://forum.dynamobim.com/u/j.sunnyT6MVA)\
**Post date:** [May 31, 2021, 3:32am UTC](https://forum.dynamobim.com/t/script-to-update-shared-parameter-value-of-multiple-families-available/64526/5 "2021-05-31T03:32:20Z")

</div>

thanks…Developing it…Will post Update

---

<div class="post-metadata">

**Author:** ![j.sunnyT6MVA](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/j.sunnyt6mva/32/128323_2.png) [@j.sunnyT6MVA](https://forum.dynamobim.com/u/j.sunnyT6MVA)\
**Post date:** [May 31, 2021, 6:51am UTC](https://forum.dynamobim.com/t/script-to-update-shared-parameter-value-of-multiple-families-available/64526/6 "2021-05-31T06:51:56Z")

</div>

@GavinNicholls @Marcel_Rijsmus Here is the script I have developed…Something is wrong while adding value to shared parameter.both the families are updated with a value of 1000.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/a/2a2fb60d6a5cedd398c54f18587d93d6e3bb96ed.png)  
[02\_Set Parameter value to Multiple Families.dyn](https://forum.dynamobim.com/uploads/short-url/aYK9eQQEXzSQzUoEoVK3TG2UI7v.dyn) (33.6 KB)  
Dynamo 2.0.4

---

<div class="post-metadata">

**Author:** ![GavinNicholls](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/gavinnicholls/32/190442_2.png) [@GavinNicholls](https://forum.dynamobim.com/u/GavinNicholls)\
**Post date:** [May 31, 2021, 7:17am UTC](https://forum.dynamobim.com/t/script-to-update-shared-parameter-value-of-multiple-families-available/64526/7 "2021-05-31T07:17:18Z")

</div>

I can rarely get Orchid to work across multiple background documents and multiple fields unless I use list cycles and repeated items to force the data into parallel sets. This should work in principle, but I’m sure there’s a way to do it with the right combination of list levels.

[02\_Set Parameter value to Multiple Families.dyn](https://forum.dynamobim.com/uploads/short-url/1moBYMa4140x5GbbmDyMaqZzrf0.dyn) (24.1 KB)

---

<div class="post-metadata">

**Author:** ![Jean-Marc](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jean-marc/32/79122_2.png) [@Jean-Marc](https://forum.dynamobim.com/u/Jean-Marc)\
**Post date:** [June 1, 2021, 8:29am UTC](https://forum.dynamobim.com/t/script-to-update-shared-parameter-value-of-multiple-families-available/64526/8 "2021-06-01T08:29:10Z")

</div>

> [@j.sunnyT6MVA](#):
>
> ere is the script I have developed…Something is wrong while adding value to shared parameter.both the families are updated with a value of 1000.

it has to do with lacing options or your input list structure  
check out @erfajo samples here [https://github.com/erfajo/OrchidForDynamo/tree/master/Samples](https://github.com/erfajo/OrchidForDynamo/tree/master/Samples)  
and look at the list structure and lacing applied on each node. You should get there

---

<div class="post-metadata">

**Author:** ![j.sunnyT6MVA](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/j.sunnyt6mva/32/128323_2.png) [@j.sunnyT6MVA](https://forum.dynamobim.com/u/j.sunnyT6MVA)\
**Post date:** [June 1, 2021, 12:15pm UTC](https://forum.dynamobim.com/t/script-to-update-shared-parameter-value-of-multiple-families-available/64526/9 "2021-06-01T12:15:40Z")

</div>

great observation…It worked thanks 🙂
