My Project template has 9 levels above ground, and 3 levels below. I started doing that years ago, when i watched architects cartoon a large project. It took them FOREVER. (Truthfully, i stop at 9 above ground because over 10 and suddenly some naming conventions need an extra character). While a Dynamo script to go additive would be much more valuable, that would take forever for me to figure out, since im a hardcore n00bie. So, many thanks to some of the Dynogeeks on twitter, for helping me when i got stuck with String.Contains.
Now its all working:
All the user has to do is pick number of stories above ground, and below ground. Obviously it maxes out at the number of levels in the Template. It also fails if the Levels are renamed. Its meant to be done right when a project starts. It strips out the levels, all of the views, and all of the sheets, for the levels you don’t want. So if you say 2 levels above ground, and 0 levels below, it deletes everything underground, and all levels at or above level 3.