Hi,
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!
cheers
K.
Hi,
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!
cheers
K.
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
clr.AddReference(‘ProtoGeometry’)
from Autodesk.DesignScript.Geometry import *
clr.AddReference(“RevitServices”)
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
clr.AddReference(“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” :
http://dynamobim.org/forums/topic/changing-parameters-of-elements-in-model-groups/#post-33567
Thanks guys - I think that should give me what I want - I’ll update later once I’ve got it added into my script.
Cheers
K.