# Batch Assign: Shared Parameters to Categories from txt with existing GUIDs

**URL:** <https://forum.dynamobim.com/t/batch-assign-shared-parameters-to-categories-from-txt-with-existing-guids/58590>\
**Category:** Revit\
**Tags:** dynamo\
**Created:** [December 21, 2020, 9:13pm UTC](https://forum.dynamobim.com/t/batch-assign-shared-parameters-to-categories-from-txt-with-existing-guids/58590 "2020-12-21T21:13:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bartholin](https://avatars.discourse-cdn.com/v4/letter/b/e68b1a/32.png) [@Bartholin](https://forum.dynamobim.com/u/Bartholin)\
**Post date:** [December 21, 2020, 9:13pm UTC](https://forum.dynamobim.com/t/batch-assign-shared-parameters-to-categories-from-txt-with-existing-guids/58590/1 "2020-12-21T21:13:32Z")

</div>

Hello.  
I’ve been playing around with the default “Parameter.CreateSharedParameter” node, and it works. . Sort of.

But only if you don’t care about the GUIDs.  
When i am using this default node with some prepared data from excel I am able to generate “new” shared parameters and assign those newly generated shared parameters to categories of my choosing.

My Problem is that i already have a shared parameter txt file with specific names, GUIDs and various properties that i wish to batch assign to specific categories across multiple Revit models.  
It is super important for me that the GUID stays the same, hence my problem with this method.

Is there a kind soul who would care to point me in the right direction?  
(I only need to assign existing shares parameters to categories within project, Not individual families.)

I’ve been searching like a mad man, the closest link i found so far was this.  
However i don’t seem to be able to download the content anymore.

> **[Batch add shared parameters from .txt file with UI.MultipleInputForm ++](https://data-shapes.io/2016/12/11/batch-add-shared-parameters-from-txt-file-with-ui-multipleinputform/)**
>
> 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…

Thanks!

---

<div class="post-metadata">

**Author:** ![Alban\_de\_Chasteigner](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alban_de_chasteigner/32/39650_2.png) [@Alban\_de\_Chasteigner](https://forum.dynamobim.com/u/Alban_de_Chasteigner)\
**Post date:** [December 21, 2020, 9:50pm UTC](https://forum.dynamobim.com/t/batch-assign-shared-parameters-to-categories-from-txt-with-existing-guids/58590/2 "2020-12-21T21:50:09Z")

</div>

Hi @Bartholin,

You can indeed add shared parameters with the Data-Shapes nodes. Another alternative is to use the _Genius Loci_ nodes (and visualize the GUID).

 ![Add shared parameters](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/2/a23523ed6aea0671f55686215909ca48e44daf3e.png)

---

<div class="post-metadata">

**Author:** ![Bartholin](https://avatars.discourse-cdn.com/v4/letter/b/e68b1a/32.png) [@Bartholin](https://forum.dynamobim.com/u/Bartholin)\
**Post date:** [December 21, 2020, 11:59pm UTC](https://forum.dynamobim.com/t/batch-assign-shared-parameters-to-categories-from-txt-with-existing-guids/58590/3 "2020-12-21T23:59:33Z")

</div>

Thank you for sharing! I decided to start with Data-Shape.

I’ve managed to move forward a bit. I am now wondering if it is possible to control parameter groups for each parameter from list or not. My script doesn’t seem to work.

However if use a single node of “Select BuiltIn Parameter Group” for all parameters they all seem to be assigned to category.

Any ideas how i could control Parameter Group in excel for each parameter?

**Image of script that doesn’t work**

 ![Help](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/c/3ce87a182948b354932c98b68290cafd8e5ba5cb.png)

**Image of script that kinda works**

 ![Worked](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/b/cb1c264ed3676ac2ddafa19ca2499a263017b02b.png)

---

<div class="post-metadata">

**Author:** ![Alban\_de\_Chasteigner](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alban_de_chasteigner/32/39650_2.png) [@Alban\_de\_Chasteigner](https://forum.dynamobim.com/u/Alban_de_Chasteigner)\
**Post date:** [December 22, 2020, 5:21pm UTC](https://forum.dynamobim.com/t/batch-assign-shared-parameters-to-categories-from-txt-with-existing-guids/58590/4 "2020-12-22T17:21:27Z")

</div>

Hi,

You must use the longest lacing to assign several Parameter groups.

 ![Add shared parameters](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/d/cddadfd2a62e945d8f41121b9be5e4e7d2bf39ef.png)

---

<div class="post-metadata">

**Author:** ![Bartholin](https://avatars.discourse-cdn.com/v4/letter/b/e68b1a/32.png) [@Bartholin](https://forum.dynamobim.com/u/Bartholin)\
**Post date:** [December 23, 2020, 3:55pm UTC](https://forum.dynamobim.com/t/batch-assign-shared-parameters-to-categories-from-txt-with-existing-guids/58590/5 "2020-12-23T15:55:20Z")

</div>

Thank you mister!  
Exactly the type of input i needed. Thanks for taken the time to assist. Much appreciated.

I managed to make it work, however it may look silly to some of you experienced users.  
(Beginner at work).

**Result**

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

---

<div class="post-metadata">

**Author:** ![waqar.a.khan949](https://avatars.discourse-cdn.com/v4/letter/w/2bfe46/32.png) [@waqar.a.khan949](https://forum.dynamobim.com/u/waqar.a.khan949)\
**Post date:** [March 22, 2022, 4:53pm UTC](https://forum.dynamobim.com/t/batch-assign-shared-parameters-to-categories-from-txt-with-existing-guids/58590/6 "2022-03-22T16:53:55Z")

</div>

Hi @Alban_de_Chasteigner

Can you please help me on this issue

> [@Batch Create Shared Parameters In Families From Directory](https://forum.dynamobim.com/t/batch-create-shared-parameters-in-families-from-directory/74659/4):
>
> Sounds good. Re: [orchid](https://github.com/erfajo/OrchidForDynamo/issues) the author prefers you ask about his package over on github, but either way good luck with the graph! Perhaps others can chime in here as well.
