# Batch add shared parameters to families in project from .txt file with ui.multipleinputform ++

**URL:** <https://forum.dynamobim.com/t/batch-add-shared-parameters-to-families-in-project-from-txt-file-with-ui-multipleinputform/8705>\
**Category:** Packages\
**Tags:** data-shapes\
**Created:** [January 8, 2017, 5:27pm UTC](https://forum.dynamobim.com/t/batch-add-shared-parameters-to-families-in-project-from-txt-file-with-ui-multipleinputform/8705 "2017-01-08T17:27:56Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![i.tzivanidis](https://avatars.discourse-cdn.com/v4/letter/i/dec6dc/32.png) [@i.tzivanidis](https://forum.dynamobim.com/u/i.tzivanidis)\
**Post date:** [January 8, 2017, 5:27pm UTC](https://forum.dynamobim.com/t/batch-add-shared-parameters-to-families-in-project-from-txt-file-with-ui-multipleinputform/8705/1 "2017-01-08T17:27:56Z")

</div>

The workflow works great, but it would allow even greater flexibility to the user, to be able to specify in a family level - rather than Category level as it currently is- to add the shared parameters.

I think it is not possible without modifying the code though is it?

> **[Batch add shared parameters from .txt file with UI.MultipleInputForm ++](https://data-shapes.net/2016/12/11/batch-add-shared-parameters-from-txt-file-with-ui-multipleinputform/comment-page-1/#comment-69)**
>
> Adding shared parameters to a project is often a pain because you can’t batch add them through Revit’s user interface. There are a couple of workarounds online that do the job just fine…

---

<div class="post-metadata">

**Author:** ![i.tzivanidis](https://avatars.discourse-cdn.com/v4/letter/i/dec6dc/32.png) [@i.tzivanidis](https://forum.dynamobim.com/u/i.tzivanidis)\
**Post date:** [January 8, 2017, 5:28pm UTC](https://forum.dynamobim.com/t/batch-add-shared-parameters-to-families-in-project-from-txt-file-with-ui-multipleinputform/8705/2 "2017-01-08T17:28:15Z")

</div>

@Mostafa_El_Ayoubi

---

<div class="post-metadata">

**Author:** ![Mostafa\_El\_Ayoubi](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/mostafa_el_ayoubi/32/7815_2.png) [@Mostafa\_El\_Ayoubi](https://forum.dynamobim.com/u/Mostafa_El_Ayoubi)\
**Post date:** [January 8, 2017, 5:48pm UTC](https://forum.dynamobim.com/t/batch-add-shared-parameters-to-families-in-project-from-txt-file-with-ui-multipleinputform/8705/3 "2017-01-08T17:48:04Z")

</div>

Hi @i.tzivanidis  
I gave it a shot since the question was asked on the blog,  
I checked online to see if there was something available before diving into it myself, I wasn’t disapointed! 🙂 @Dimitar_Venkov had already proposed some really nice code :

> <https://stackoverflow.com/questions/35513566/revit-api-dynamo-creating-a-family-parameter-from-project-document>

So I added that to my workflow with UI.MultipleInputForm++, and just added a little code to get all families in the project :

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/6/1665dd57b012def28129f86095dc9bfd4d1820ff.png)

[Add shared params to families.dyn](https://forum.dynamobim.com/uploads/short-url/cEipmOeVbyEM8Zpi4TeqXJtOhS0.dyn) (29.4 KB)

---

<div class="post-metadata">

**Author:** ![i.tzivanidis](https://avatars.discourse-cdn.com/v4/letter/i/dec6dc/32.png) [@i.tzivanidis](https://forum.dynamobim.com/u/i.tzivanidis)\
**Post date:** [January 11, 2017, 2:37pm UTC](https://forum.dynamobim.com/t/batch-add-shared-parameters-to-families-in-project-from-txt-file-with-ui-multipleinputform/8705/6 "2017-01-11T14:37:51Z")

</div>

![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/0/80176e7da733d645bfa0cf71f3bba6a86c7781b8.png)

Hello Mostafa and thanks again for the workflow!  
Works splendind for type parameters and saves me typing and boredom. But for instance parameters i get this error:

I suspect is something in line 33 of the code?

Regards,

John

---

<div class="post-metadata">

**Author:** ![Mostafa\_El\_Ayoubi](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/mostafa_el_ayoubi/32/7815_2.png) [@Mostafa\_El\_Ayoubi](https://forum.dynamobim.com/u/Mostafa_El_Ayoubi)\
**Post date:** [January 11, 2017, 4:08pm UTC](https://forum.dynamobim.com/t/batch-add-shared-parameters-to-families-in-project-from-txt-file-with-ui-multipleinputform/8705/7 "2017-01-11T16:08:56Z")

</div>

@i.tzivanidis ,  
I tested it with revit 2016 and dynamo 1.2, it works for me :

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/d/ade7f99bbddbc2c30994a9de200eed8bf58cd9e1.gif)

What are the category of the family and the parameter group you try to add shared parameters to?

---

<div class="post-metadata">

**Author:** ![i.tzivanidis](https://avatars.discourse-cdn.com/v4/letter/i/dec6dc/32.png) [@i.tzivanidis](https://forum.dynamobim.com/u/i.tzivanidis)\
**Post date:** [January 11, 2017, 4:49pm UTC](https://forum.dynamobim.com/t/batch-add-shared-parameters-to-families-in-project-from-txt-file-with-ui-multipleinputform/8705/8 "2017-01-11T16:49:25Z")

</div>

Identity\_data I will try it again in another family maybe its instance specific

---

<div class="post-metadata">

**Author:** ![Mostafa\_El\_Ayoubi](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/mostafa_el_ayoubi/32/7815_2.png) [@Mostafa\_El\_Ayoubi](https://forum.dynamobim.com/u/Mostafa_El_Ayoubi)\
**Post date:** [January 11, 2017, 5:06pm UTC](https://forum.dynamobim.com/t/batch-add-shared-parameters-to-families-in-project-from-txt-file-with-ui-multipleinputform/8705/9 "2017-01-11T17:06:21Z")

</div>

@i.tzivanidis I know that some parameter groups are not available in all family categories…  
But also I just read the error you got. When you get that error, try restarting dynamo. It usually does the trick

---

<div class="post-metadata">

**Author:** ![i.tzivanidis](https://avatars.discourse-cdn.com/v4/letter/i/dec6dc/32.png) [@i.tzivanidis](https://forum.dynamobim.com/u/i.tzivanidis)\
**Post date:** [March 21, 2017, 4:43pm UTC](https://forum.dynamobim.com/t/batch-add-shared-parameters-to-families-in-project-from-txt-file-with-ui-multipleinputform/8705/10 "2017-03-21T16:43:14Z")

</div>

Hello @Mostafa_El_Ayoubi, The workflow helped me A LOT since last post but now i get this issue:

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/f/7f3d674cd267dcba0c7963187d74b903cf65353b.png)

Any ideas?

Rgards,

John

---

<div class="post-metadata">

**Author:** ![Mostafa\_El\_Ayoubi](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/mostafa_el_ayoubi/32/7815_2.png) [@Mostafa\_El\_Ayoubi](https://forum.dynamobim.com/u/Mostafa_El_Ayoubi)\
**Post date:** [March 22, 2017, 10:21am UTC](https://forum.dynamobim.com/t/batch-add-shared-parameters-to-families-in-project-from-txt-file-with-ui-multipleinputform/8705/11 "2017-03-22T10:21:19Z")

</div>

Hi @i.tzivanidis  
It’s hard to say just from what I see in your screenshot… Could you provide enough material to reproduce the issue (a dummy file with the family you try to add the parameter to + a .txt containing the parameter would help)?

---

<div class="post-metadata">

**Author:** ![i.tzivanidis](https://avatars.discourse-cdn.com/v4/letter/i/dec6dc/32.png) [@i.tzivanidis](https://forum.dynamobim.com/u/i.tzivanidis)\
**Post date:** [March 23, 2017, 1:05pm UTC](https://forum.dynamobim.com/t/batch-add-shared-parameters-to-families-in-project-from-txt-file-with-ui-multipleinputform/8705/12 "2017-03-23T13:05:58Z")

</div>

I sorted it. It was an issue with the particular family!

---

<div class="post-metadata">

**Author:** ![s.rooble](https://avatars.discourse-cdn.com/v4/letter/s/278dde/32.png) [@s.rooble](https://forum.dynamobim.com/u/s.rooble)\
**Post date:** [December 17, 2018, 8:26pm UTC](https://forum.dynamobim.com/t/batch-add-shared-parameters-to-families-in-project-from-txt-file-with-ui-multipleinputform/8705/13 "2018-12-17T20:26:00Z")

</div>

Hi Mostafa,

Thank you for this workflow I appreciate everything you’ve done I would like to add shared parameter to the actual family so for the next time the shared parameter is there do I use the same script or edited version your support is much appreciated.

Thanks  
Sagal

 ![cobie%20isse%202](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/f/3f9f9793ade162ace300a8dc9ad64891e8e86b85.jpeg)

---

<div class="post-metadata">

**Author:** ![RubenVivancos](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/rubenvivancos/32/185795_2.png) [@RubenVivancos](https://forum.dynamobim.com/u/RubenVivancos)\
**Post date:** [April 8, 2019, 2:39am UTC](https://forum.dynamobim.com/t/batch-add-shared-parameters-to-families-in-project-from-txt-file-with-ui-multipleinputform/8705/15 "2019-04-08T02:39:15Z")

</div>

@Mostafa_El_Ayoubi, sorry I try to use the script of Dynamo but all the custom nodes are missing, please can you advise of which Dynamo package is used? I searched for UI.MultipleInputForm++ to see if it is the package but not.

---

<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:** [April 8, 2019, 11:19am UTC](https://forum.dynamobim.com/t/batch-add-shared-parameters-to-families-in-project-from-txt-file-with-ui-multipleinputform/8705/16 "2019-04-08T11:19:33Z")

</div>

@RubenVivancos try “Data-Shapes” from the package manager

---

<div class="post-metadata">

**Author:** ![Revit\_Noob](https://avatars.discourse-cdn.com/v4/letter/r/a587f6/32.png) [@Revit\_Noob](https://forum.dynamobim.com/u/Revit_Noob)\
**Post date:** [October 20, 2021, 6:51am UTC](https://forum.dynamobim.com/t/batch-add-shared-parameters-to-families-in-project-from-txt-file-with-ui-multipleinputform/8705/17 "2021-10-20T06:51:00Z")

</div>

the Parameter Group from Archilab is missing…  
what is the alternative node for this?

---

<div class="post-metadata">

**Author:** ![Lewis\_Cullinane](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/lewis_cullinane/32/138540_2.png) [@Lewis\_Cullinane](https://forum.dynamobim.com/u/Lewis_Cullinane)\
**Post date:** [September 20, 2022, 10:53am UTC](https://forum.dynamobim.com/t/batch-add-shared-parameters-to-families-in-project-from-txt-file-with-ui-multipleinputform/8705/18 "2022-09-20T10:53:35Z")

</div>

Looking at this currently - try ‘Parameter Groups’ from the Archilab (2022.212.3221) package.
