jeremytammik / RevitLookup

Interactive Revit RFA and RVT project database exploration tool to view and navigate BIM element parameters, properties and relationships.
http://thebuildingcoder.typepad.com
MIT License
1.03k stars 294 forks source link

Add BuiltInCategory in element parameters #249

Closed Kibatun closed 3 weeks ago

Kibatun commented 3 weeks ago

Hello, I tried to find BuiltInCategory parameter of an element in my Revit project, but couldn't find it in the latest version of Lookup. Could you please bring it back as it was in previous versions (e.g. 2019.0012)? It would help a lot in writing plugins and understanding the code. I'll show you how it was: var annotations = new FilteredElementCollector(doc).OfCategory(BuiltInCategory.OST_TitleBlocks).WherePasses(viewFilter).ToList(); And as it is now: var annotations = new FilteredElementCollector(doc).Where(elem => elem.Category.Id.ToInt64() == -2000280).WherePasses(viewFilter).ToList();

Nice3point commented 3 weeks ago

Duplicated https://github.com/jeremytammik/RevitLookup/issues/162

Enable extensions, this is not a native API property in versions before 2023

изображение

Kibatun commented 3 weeks ago

Thank you