# Adding parameters to shared parmeter file

**URL:** <https://forum.dynamobim.com/t/adding-parameters-to-shared-parmeter-file/88268>\
**Category:** Revit\
**Tags:** revit, dynamo, orchid, family\
**Created:** [April 6, 2023, 11:07am UTC](https://forum.dynamobim.com/t/adding-parameters-to-shared-parmeter-file/88268 "2023-04-06T11:07:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Neel](https://avatars.discourse-cdn.com/v4/letter/n/f475e1/32.png) [@Neel](https://forum.dynamobim.com/u/Neel)\
**Post date:** [April 6, 2023, 11:07am UTC](https://forum.dynamobim.com/t/adding-parameters-to-shared-parmeter-file/88268/1 "2023-04-06T11:07:05Z")

</div>

Hi there,  
I have to rename every shared parameters to a new name with out loosing data in the Revit family. I have gone through 2 video by Aussie BIM Guru and tried to make a new workflow from it.  
[Replace Family Parameters using Dynamo!](https://www.youtube.com/watch?v=z_l68VqA2e0)  
[Create a Shared Parameters File using Dynamo!](https://www.youtube.com/watch?v=pHgxkq-NGdg&list=RDCMUCry22yTdpgEDdzIZig7NSMQ&index=1)

My work flow is to take all the information about shared parameters in current family document and create a shared parameter txt file from it. Later we can replace old parameters with new ones as said in the video about " Replace Family Parameters using Dynamo!" . But unfortunately its not working. It says my parameter type has some invalid argument. I have tried using a “List.Combine” node but not worked that one too. any body please help?I am using Revit 2021. Thanks in advance.  
[00Revit\_Dynamo\_Family\_Parameter\_creation.dyn](https://forum.dynamobim.com/uploads/short-url/bmUW8WDjmBqlV1TPv0yagFWT139.dyn) (57.1 KB)

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

---

<div class="post-metadata">

**Author:** ![scottW4TRA](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/scottw4tra/32/158886_2.png) [@scottW4TRA](https://forum.dynamobim.com/u/scottW4TRA)\
**Post date:** [April 6, 2023, 7:34pm UTC](https://forum.dynamobim.com/t/adding-parameters-to-shared-parmeter-file/88268/2 "2023-04-06T19:34:04Z")

</div>

Type from familyparameter.properties is returning the value of the parameter. sharedparameter.create is expecting a string.

Your script image posted doesn’t match your script you supplied. Try to make sure you script matches your screen shots so we can see what you plugged in from where.

---

<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:** [April 6, 2023, 9:36pm UTC](https://forum.dynamobim.com/t/adding-parameters-to-shared-parmeter-file/88268/3 "2023-04-06T21:36:11Z")

</div>

There is no easy way to do this workflow, although some steps are automateable to some degree.

I will have an updated workflow on the channel on 17th April (2 weeks time) that effectively uses this script set I built here:

> [@Convert Family Parameter to Existing Shared Parameter](https://forum.dynamobim.com/t/convert-family-parameter-to-existing-shared-parameter/48075/19):
>
> If you could make the change or tell me what i have to change in the Python to make it work for Non Shared to Shared that would be much appreciated (again innocent). Sort of. I guess i have to rename the Parameters i want to change firs, but that i can do… Agreed. As i said, it is really on my list. I probably have some time ‘dip my toes’ into this next few weeks. smile

Some limitations of note:

1. If a parameter is used in an arrayed element and associated at instance level, the parameter will not replace. This is a revit limitation (and prevents parameter placement manually also).
2. The script does not deal with parameters in nested families. Could be possible but would be a massive undertaking and not one I will derive any value from personally, so not interested in making it. It also ties into the last limit…
3. If you replace parameters then reload a nested family, all associations will be lost at that level. Associations can be made using Revit API, but there would simply be way too many places to look for them feasibly I think to automate recreating them all

Generally I recommend against full parameter rehauls where possible, especially if its ‘how can we take a set of content with a prefix, and make it our prefix instead’. I literally disclaim my own revit content with this limitation of non automateable complete rebranding (I use BG\_ in all my shared params) for these reasons. Also prevents competitors from lowballing me and stealing/rebranding my content, and helps that these types are generally lazy and not capable of automation as a result of that too.
