Using Phase filters to filter Rhino geometry when Importing

Hi everyone,

I’m working on bringing in geometry from Revit based on the phase filter, specifically the “Show Complete” phase filter. My goal is to import only the elements that are visible in the “Show Complete” view of Revit.

I’ve attached a version of the script I’m using and a sample Revit model. Currently, my script imports all elements at once. For instance, when I change the size of a window, it shows both the new and old window openings.

I’ve used this forum as a guide and feel like I’m close, but I need some help to get it working correctly. Any advice or suggestions on how to achieve this would be greatly appreciated!

I am using Revit 2022 and Rhino 8 all my plug-ins are the most up to date

Thank you!

2024.0516 Importer (18.6 KB)

Revit File Here

The screenshots attached show that Revit is layering from all phases.
Screenshot 2024-05-16 at 5.03.29 PM