# Adding Shared Parameters based on Family Type

**URL:** <https://forum.dynamobim.com/t/adding-shared-parameters-based-on-family-type/66044>\
**Category:** Packages\
**Tags:** revit, dynamo, orchid\
**Created:** [July 11, 2021, 3:48pm UTC](https://forum.dynamobim.com/t/adding-shared-parameters-based-on-family-type/66044 "2021-07-11T15:48:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![clausneergaard](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/clausneergaard/32/111547_2.png) [@clausneergaard](https://forum.dynamobim.com/u/clausneergaard)\
**Post date:** [July 11, 2021, 3:48pm UTC](https://forum.dynamobim.com/t/adding-shared-parameters-based-on-family-type/66044/1 "2021-07-11T15:48:18Z")

</div>

Hello all –

I have a topic that I’ve struggled a bit with, to which I hope that someone in here could help me grapple.

So, here goes;

I want to be able to have a Shared Parameter file, which has all the groupings corresponding to all the Family types. This, I have created. When adding a Shared Parameter manually, I need to select the category / grouping, and then add the parameter. This, I can skip by using the Orchid-package (@erfajo), which is great.

Now, I want the Dynamo-definition to go in, read which Family-type it is that I am working on (is it a Door, is it a Window, is it a Furniture, is it a Mass, etc.), and then go in under the corresponding, grouping in the Shared Parameter-file, and add all of these Shared Parameters.

So, I’ve managed to extract the Family-type of the current / open Family, i.e.; Door, Window, Furniture, Mass, etc.), as a String. How can I use this String as a “selector” for my Shared Parameter-category, without having to do it manually, which, experience-wise, could be pretty error-prone?

Is this even possible? This could be a nice way to keep all the Shared Parameters in one file, and then, by just running the Dynamo-definition, I can add all of the written Shared Parameters under a specific category, to the current Family.

I hope that this makes sense?  
Thank you so much in advance.

All thoughts are appreciated, and please see attached definition to this post (which, by the way, should come with a “quite-messy”-warning, as I’ve been trying out a lot of stuff).

Cheers!

 ![WORKS - DYNAMO-SCRIPT-WORKING-SO-FAR_2021-06-21_03-58-05 - ANNOTATED](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/f/efc4d8732edb2d870104591e64917f2e715e7636.png)

/Claus

[DYNAMO - ADDING SHARED PARAMETERS BASED ON FAMILY-TYPE.dyn](https://forum.dynamobim.com/uploads/short-url/wmjYEpCnpSp7I5HJaQADbkeLBrv.dyn) (215.5 KB)  
[SHARED PARAMETERS.txt](https://forum.dynamobim.com/uploads/short-url/rEWSOdTs35j1BXkswf96AaaGHhT.txt) (21.3 KB)
