SharedParameter.Add groupType is not having it

I cant get SharedParameter.Add node in the Orchid package 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[]).

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).

Any ideas?

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:

1 Like

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:

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)

I will mention this on Orchid GitHub :sunglasses:

1 Like