Oct 30, 2022
Isolate Elements with Revit API and python
There is no method to permanently isolate elements. So I will show you how to use .Excluding method of FilteredElementCollector to hide everything except elements we need.
❓How to Isolate Elements with Revit API
So you have come to the point where you wanted to isolate your elements and you could not find the right method. You might have seen IsolateElementsTemporary method but that's not exactly what we want.
There are probably many different ways to Isolate your elements, but I like to get elements I want to isolate, and then get elements to hide using .Excluding method of FilteredElementCollector to get all elements except for the ones I want to isolate and hide them (if possible).
💡 I am getting selected elements just as an example, adjust to your own needs!