Preflight Checks: Elements per Workset Check crashes Revit

I’m using Revit 2025.4 with pyRevit version 5.1.0.

I have an architecture model with 550,000+ elements and 41 worksets (client driven). When I run the Elements per Workset preflight check, it takes a while to run and at some point the outline of the results window appears then Revit crashes and closes soon after without showing the results. The script does take a few minutes to run on some of the other models without crashing, but those models don’t have has many elements in them.

Has anyone else encountered this issue? Is there a limit to the number of elements that the script can support and process? Is it too much to publish in the results window?

cheers,

Jason C.

Running 5.3 here in production… Can’t say I’ve ever really run the preflight tools, but gave it a spin. I did get an error but it continued gracefully and completed. Might try versions newer than 5.1. There are a number of closed issues for this script on GitHub and only one open issue.