- Hide/show objects
- Isolate/unisolate objects
- Color objects based on properties
FilteringExtension take object ids as a means to select objects for filtering.
Like any other extension you need to add it at initialisation time:
Hiding and Showing
Let’s say we want to hide all the walls of a model. First thing we need to do is to find out the ids of the walls we want to hide. Depending on the model, a wall object might mean different things, but let’s consider a Revit example where a wall object has theRevitWall speckle type.
Isolating and Unisolating
Similar to hiding, let’s say we want to isolate all floors. Here’s how:Coloring by Properties
This filtering operation is different than the ones before as it involves the notion ofproperties. The viewer needs PropertyInfo objects in order to filter by color, but that’s fine because there’s a builtin way of getting them by using:
Filtering Example