Dear Specialists,
My endgoal it to receive all elements in the document. Not only the active view.
When i call WhereElementIsNotElementType I dont receive all elements that are in document (only active view). So i Call WhereElementIsElementType. After this I receive ElementTypes or other types.
How to convert this to a normal Element where I can work with?
From
To
Or could I directly call all elements in document (not only active view) without via ElementType?
import clr
#load the Revit API
from Autodesk.Revit.DB import *
#load the Documentmanager out of library RevitServices
from RevitServices.Persistence import DocumentManager
#load the Current View (with Revit Services)
doc = DocumentManager.Instance.CurrentDBDocument
#load the Elements in view (with Revit API) and Unwrap it!
ELEMENTEN = UnwrapElement(FilteredElementCollector(doc).WhereElementIsElementType().ToElements())
OUT = ELEMENTEN