# SharedParameter.Add groupType is not having it

**URL:** <https://forum.dynamobim.com/t/sharedparameter-add-grouptype-is-not-having-it/100685>\
**Category:** Revit\
**Tags:** orchid\
**Created:** [May 3, 2024, 10:04pm UTC](https://forum.dynamobim.com/t/sharedparameter-add-grouptype-is-not-having-it/100685 "2024-05-03T22:04:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![EatRevitPoopCAD](https://avatars.discourse-cdn.com/v4/letter/e/bb73d2/32.png) [@EatRevitPoopCAD](https://forum.dynamobim.com/u/EatRevitPoopCAD)\
**Post date:** [May 3, 2024, 10:04pm UTC](https://forum.dynamobim.com/t/sharedparameter-add-grouptype-is-not-having-it/100685/1 "2024-05-03T22:04:42Z")

</div>

I cant get SharedParameter.Add node in the [Orchid package](https://github.com/erfajo/OrchidForDynamo) to work. Issue is with the **groupType** input.

Getting this error, it doesnt like the string input for **groupType** , which is what i see everyone else doing on the forums…

`Warning: SharedParameter.Add expects argument type(s) (Revit.Application.Document, string[], String, Revit.Elements.GroupType, bool, bool, bool), but was called with (Revit.Application.Document[], string[], string[], System.Enum[], bool[], bool[], bool[]).`

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

I tried inputting BIPG but that did not work as well and then i get different error…

Warning: SharedParameter.Add expects argument type(s) (Revit.Application.Document, string, string, Revit.Elements.GroupType, bool, bool, bool), but was called with (Revit.Application.Document, string, string, System.Enum, bool, bool, bool).

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

Any ideas?

---

<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:** [May 6, 2024, 2:01am UTC](https://forum.dynamobim.com/t/sharedparameter-add-grouptype-is-not-having-it/100685/2 "2024-05-06T02:01:28Z")

</div>

I haven’t had luck getting this node to work for a while (I recognize my tutorial nodes).

I generally send people over to the Orchid github by erfajo to request a working example. Hopefully one is there in the issues, but I know most people don’t go and do it when suggested…

I think this might be a solved one that shows the sample of how to use the nodes:

> <https://github.com/erfajo/OrchidForDynamo/issues/232>
>
> \### Revit, Dynamo and Orchid version
> (\_Which version of Revit, Dynamo and Orchi…d are you using? Go to Help \> About if you're not sure. for Orchid version, go to Packages \> Manage Packages\_)
> Revit: 2023.1.3
> Dynamo: 2.16.2
> Orchid: 2.16
> 
> \### The issue
> The previous versions of this node (revit22 and earlier) used to take string for group type, now it calls for element group type. i have been using excel to create the lists for the inputs. how do i pull the group types for the new input? 
> 
> thank you
> !\[orchid isue\](https://github.com/erfajo/OrchidForDynamo/assets/154545059/51990ca3-de75-4e4f-82ae-28eb49d12ecf)

---

<div class="post-metadata">

**Author:** ![EatRevitPoopCAD](https://avatars.discourse-cdn.com/v4/letter/e/bb73d2/32.png) [@EatRevitPoopCAD](https://forum.dynamobim.com/u/EatRevitPoopCAD)\
**Post date:** [May 6, 2024, 9:58pm UTC](https://forum.dynamobim.com/t/sharedparameter-add-grouptype-is-not-having-it/100685/3 "2024-05-06T21:58:28Z")

</div>

Thanks, Gavin!

I managed to get it working thanks to those GitHub samples (99 percent functional at least—good enough for government work).

I had to use **GroupType.ByName** & **DataStream.Await** nodes. See the image:

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

Interestingly, the **GroupType.ByName** node works for every group type except **Other**. I attempted various string inputs such as “Other”, “INVALID”, and even “null”, but the output for **GroupType.ByName** remains null, which the **SharedParameter.Add** node cannot accept for the **groupType** input.

I’m fairly certain this is a developer oversight in the GroupType.ByName node, as it’s easy to overlook when referencing the Revit API documentation, where “Other” is not mentioned.

[BuiltInParameterGroup Enumeration (revitapidocs.com)](https://www.revitapidocs.com/2023/9942b791-2892-0658-303e-abf99675c5a6.htm)

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/5/4542f042e0da616eb04a226309b98d6b5f7016dd.png)

I will mention this on Orchid GitHub 🕶
