Any help would be welcome. I want to select a particular detail view and the beam in the detail view
import clr
clr.AddReference("ProtoGeometry")
from Autodesk.DesignScript import *
clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
clr.AddReference("RevitNodes")
import Revit
clr.AddReference("RevitAPI")
import Autodesk
from Autodesk.Revit.DB import *
views = UnwrapElement(IN[0])
doc = DocumentManager.Instance.CurrentDBDocument
elements=[]
elementinview = None
for view in views:
if(view is ElementType):
viewelement=Element(view)
elementinview = FilteredElementCollector(doc, viewelement.Id).OfCategory (BuiltInCategory.OST_StructuralFraming).WhereElementIsNotElementType().ToElements().ToList().First()
elements.append(elementinview)
OUT = elements