i use Element Types + All Elements Of Types Nodes to collect all of my loaded windows, but it return all of my revit families, how can i collect all of my loaded windows in this way or in any other way ?
Assuming you’re looking for all instances of the category ‘window’, try an All Elements of Category
node, and a Category
node.
Types will return the family types rather than the instances.
1 Like
Hi Jacob, i need some nodes to collect these window types or any other window types those are exist in this section(project browser --> families --> windows) not just instances .
I might use Python for this…
import clr
clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import DocumentManager
doc = DocumentManager.Instance.CurrentDBDocument
clr.AddReference("RevitAPI")
from Autodesk.Revit.DB import *
doc = DocumentManager.Instance.CurrentDBDocument
OUT = FilteredElementCollector(doc).OfCategory(BuiltInCategory.OST_Windows).WhereElementIsElementType().ToElements()
Mostly a Built In Category just has OST_ infront of the name… You can find a complete list of built in categories here…
https://www.revitapidocs.com/2016/ba1c5b30-242f-5fdc-8ea9-ec3b61e6e722.htm
If you would like to do more sophisticated things with your FEC, this is a great resource…
Hopefully that is useful.
Mark
1 Like
Wow, it works !
thank you sooo much
1 Like