Message 1 of 4
Filter element by custom family parameter value
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a generic model family with custom parameters loaded into project, and I want to filter all of its instances whose family parameter is of certain value. Since Revit API provides us with ElementParameterFilter, I would like to use it instead of checking the parameter value by.Net Linq for performance reason. However, I can't find a way to retrieve the custom family parameter Id. The closest thing to my desired solution is what I have found here:
Find family elements by name parameter
I tried filtering ParameterElement, parameter definition, Builtin parameter ... without hope. I am wondering is this approach is even possible at all for Revit API 2021. If it is, how can I implement it?
Thanks in advance.