Select Group and Group Parameters



Is there a way to select ‘Groups’ using Dynamo? I’d like to change the workset parameter for a number of groups but presently can’t find any way to select them to do this…

thanks in advance for any pointers!




If you modify Konrads python in the Get All Detail Groups node you can get it to select the model ones pretty easily. Here’s the revised code:

#Copyright© 2015, Konrad Sobon


import clr
from Autodesk.DesignScript.Geometry import *

Import DocumentManager and TransactionManager

import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager

Import RevitAPI

import Autodesk
from Autodesk.Revit.DB import *

doc = DocumentManager.Instance.CurrentDBDocument
uiapp = DocumentManager.Instance.CurrentUIApplication
app = uiapp.Application

from System.Collections.Generic import *

#The inputs to this node will be stored as a list in the IN variable.
dataEnteringNode = IN

collector = FilteredElementCollector(doc)
groups = collector.OfCategory(BuiltInCategory.OST_IOSModelGroups).WhereElementIsNotElementType().ToElements()
OUT = groups


Hi Ketih,

Check out the post below for an example on how to select group instances with the built-in node “All Elements of Type” :


Thanks guys - I think that should give me what I want - I’ll update later once I’ve got it added into my script.