Hi
I am trying to count filled regions in Revit file, with the model checker.
I created a filter for the category filled region, but it doesn't find anything, when I run the check I get result:0
Can someone tell me why?
Thanks for your help.
Gelöst! Gehe zur Lösung
Gelöst von JasonKunkel. Gehe zur Lösung
Oddly enough, Filled Regions (and many other annotation elements) are not the category you would expect - in this case OST_FilledRegion. They are OST_DetailComponents. Many other elements are, too, so you end up with a lot of items you don't want. Once you start with the right category you will need to filter out things that you don't want. I would recommend getting the Revit Lookup Tool to query elements in your model and see what properties they have that you can drill into. The Lookup Tool also lets you know the true category that elements are.
This is a 3-part deep dive into making complex checks. I would suggest taking a look and seeing if anything here helps as well.
https://www.caddmicrosystems.com/blog/2019/06/advanced-revit-model-check-part-1/
https://www.caddmicrosystems.com/blog/2019/07/advanced-revit-model-check-part-2/
https://www.caddmicrosystems.com/blog/2019/08/advanced-revit-model-check-part-3/
Thank you so much for your message this is really helpful.
I still have a question tough, I filtered detail items category + family name = "Filled regions", it works but in the results I get all details items that are not filled regions but that contain some (Bricks, screws...). Any idea how I could remove those from the results?
Thanks again
That's wild. Somewhere in the definition of the details and repeating details it must know it has a Filled Region and is reporting it back.
Another route to try. You can refer directly to the class used in the Revit database by referring to the API Type in the filter criteria. This is usually as far as you can go with these checks, but testing might get you some more granular results. Looking for Autodesk.Revit.DB.FilledRegion will get you all the instances and Autodesk.Revit.DB.FilledRegionType will get all the types.
Is there a way to use "Count" as a property to filter element count >1?
Thanks
Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.