Group Parameters
It's nice to feel like a part of something bigger 🌍
Last updated
Was this helpful?
It's nice to feel like a part of something bigger 🌍
Last updated
Was this helpful?
In Revit 2018, the developers added a new kind of parameter to the application: the Model Group parameter. When creating a Parameter in the Project Parameters dialog, there was now a category in the Categories list for 'Model Groups'.
The introductory section on has already covered the relationship between FamilyInstance and FamilyType objects. This exact relationship appears again with and objects.
Like families, groups have an abstract definition, called a GroupType, which defines all of the elements it contains. Any placed instances of this GroupType in the model are known simply as Groups.
When setting up the parameter in the Project Parameters dialog, there is a toggle to either make it an 'Instance' or a 'Type' parameter - this assigns the parameter to the Group or GroupType depending on which you choose. This also corresponds to the way they are accessed in the Revit API.
Any instance parameters can be read directly from a group instance. This can either be collecting using a FilteredElementCollector, or passed as an argument into the Python Script node.
The above script outputs a object, which can be queried for its name or value using one of the typical .
Just like reading a FamilyType's parameters, we first need to get access to the GroupType object. We can either collect all of these using a with the .WhereElementIsElementType() filter applied, or by accessing it from a placed group instance.
This gets us a Parameter object and, as above, we would use one of the to then read its value.