# How to create a dynamo script in nodes that copy the width of duct category to a shared parameter with the same name

**URL:** <https://forum.dynamobim.com/t/how-to-create-a-dynamo-script-in-nodes-that-copy-the-width-of-duct-category-to-a-shared-parameter-with-the-same-name/106069>\
**Category:** Uncategorized\
**Created:** [November 24, 2024, 6:40pm UTC](https://forum.dynamobim.com/t/how-to-create-a-dynamo-script-in-nodes-that-copy-the-width-of-duct-category-to-a-shared-parameter-with-the-same-name/106069 "2024-11-24T18:40:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![victorJohn.gregory](https://avatars.discourse-cdn.com/v4/letter/v/9d8465/32.png) [@victorJohn.gregory](https://forum.dynamobim.com/u/victorJohn.gregory)\
**Post date:** [November 24, 2024, 6:40pm UTC](https://forum.dynamobim.com/t/how-to-create-a-dynamo-script-in-nodes-that-copy-the-width-of-duct-category-to-a-shared-parameter-with-the-same-name/106069/1 "2024-11-24T18:40:17Z")

</div>

Hi

I am trying to create a dynamo Script that copy the width of a duct to a shared parameter with the same name. I am not getting any errors but the value for the shared parameter is not updating or not transferring

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/c/2c87e3e13945cfa989ce0e50566e47005d04698e.png)  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/5/955a670690de494da08dae6893b308d78c34543a.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:** [November 24, 2024, 9:18pm UTC](https://forum.dynamobim.com/t/how-to-create-a-dynamo-script-in-nodes-that-copy-the-width-of-duct-category-to-a-shared-parameter-with-the-same-name/106069/2 "2024-11-24T21:18:20Z")

</div>

Unfortunatly there is no Node to SetparameterbyparameterId  
That has always been on my wishlist  
Give it a go you Python nerds 😜

---

<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:** [November 24, 2024, 9:45pm UTC](https://forum.dynamobim.com/t/how-to-create-a-dynamo-script-in-nodes-that-copy-the-width-of-duct-category-to-a-shared-parameter-with-the-same-name/106069/3 "2024-11-24T21:45:05Z")

</div>

Hi @victorJohn.gregory yeah or just check if it shared in that case maybe…

 ![Skærmbillede 2024-11-24 224336](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/7/27a92090171e5e934191624863e4a79b03f2caa1.jpeg)

---

<div class="post-metadata">

**Author:** ![victorJohn.gregory](https://avatars.discourse-cdn.com/v4/letter/v/9d8465/32.png) [@victorJohn.gregory](https://forum.dynamobim.com/u/victorJohn.gregory)\
**Post date:** [November 25, 2024, 2:41am UTC](https://forum.dynamobim.com/t/how-to-create-a-dynamo-script-in-nodes-that-copy-the-width-of-duct-category-to-a-shared-parameter-with-the-same-name/106069/4 "2024-11-25T02:41:03Z")

</div>

Hi @sovitek , Thank you for example, I tried to do it but getting errors and it’s saying the parameter storage is not a number in Parameter Set Value

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

---

<div class="post-metadata">

**Author:** ![victorJohn.gregory](https://avatars.discourse-cdn.com/v4/letter/v/9d8465/32.png) [@victorJohn.gregory](https://forum.dynamobim.com/u/victorJohn.gregory)\
**Post date:** [November 25, 2024, 2:52am UTC](https://forum.dynamobim.com/t/how-to-create-a-dynamo-script-in-nodes-that-copy-the-width-of-duct-category-to-a-shared-parameter-with-the-same-name/106069/5 "2024-11-25T02:52:28Z")

</div>

@sovitek I Convert the value into string then it works! Thanks!

---

<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:** [November 25, 2024, 7:20am UTC](https://forum.dynamobim.com/t/how-to-create-a-dynamo-script-in-nodes-that-copy-the-width-of-duct-category-to-a-shared-parameter-with-the-same-name/106069/6 "2024-11-25T07:20:52Z")

</div>

Hi @victorJohn.gregory seems its a string if so try something here

 ![Skærmbillede 2024-11-25 081956](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/c/4c8e220b4f0e440abbdbc8ffb6958abfe61b83a8.jpeg)
