I am trying to delete unused elevations first then delete unused sections
I followed this link and it deletes all of the elevations not just the unused. (placed on sheets) The code seems correct but I must be missing something
You should check the two Parameters associated with a view being on a sheet.
Edit: Not sure why the BIP aren’t working correctly, but they kept giving me NonType errors so I resorted to LookupParameter in stead. This however gives different results for the two different parameters if they are “null” or None.
That worked perfect. I just removed the used out of the output and ran the delete. Thanks for pointing me in the right direction (Pretty much did it for me lol) Now on to the sections for me
OK went in another direction and got it to work here is my solution. I had to add in another one for callouts because revit even though it is a section it is for a detail view not section lol