I have built a script to batch create elevation views for exterior windows/doors. The script determines which way the element(s) are facing and positions the views appropriately, then it crops the views to match the elements’ bounding box, sets the view template for each view, and renames the views to match the mark value of the elements.
The script works on two projects that I have tested it on, but on a third project I receive errors stating that the view names are already in use. Once these errors appear the script stops. I have confirmed that elevations with those names don’t already exist before running the script, and I’ve even tried deleting every elevation view in the project prior to running it as well. But I still receive the same errors.
Does anybody have any idea what could be causing this? Any help is greatly appreciated!