Hello friends, I want to filter linked elements that is visible in the view, how can I do that?
Hi @f.saeedian
See this topic. It can help you.
thanks, can be used for 3D View?
no, however, if you use Revit 2024 and more, you can try with this Revit API method
example
cat_list = [BuiltInCategory.OST_Columns, BuiltInCategory.OST_Floors, BuiltInCategory.OST_StructuralFraming]
typed_list = List[BuiltInCategory](cat_list)
filtercat = ElementMulticategoryFilter(typed_list)
#
lnk_elem_in_view = FilteredElementCollector(hostDocument, hostviewId, linkId).WherePasses(filtercat).WhereElementIsNotElementType().ToElements()
I used bellow workflow for filtering in 3D view