Hi All,
Would someone be able to help me modify this (modified) code to select Model Groups from a Linked File? I donât have the coding knowledge
Thanks in advance,
Mark
#Copyright© 2015, Konrad Sobon
# @arch_laboratory, http://archi-lab.net
import clr
clr.AddReference(âProtoGeometryâ)
**from Autodesk.DesignScript.Geometry import ***
# Import DocumentManager and TransactionManager
clr.AddReference(âRevitServicesâ)
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
# Import RevitAPI
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