Well - didn’t think the API would let me do that. (…and it probably shouldn’t)
Updating a setup program for some additional automation and doing some setup for our newer improve’ed standards. So, making some new ElementTypes and renaming some old ones.
being lazy, I just did a try/except for duplicating a viewport. Worked just fine, but # 4 kept getting duplicated. Revit barks at you i you try and do that manually. So, I thought a try/except would be fine. And it is. Except…
…unless you duplicate ElementType “X” to the same name. Revit smiles and goes right ahead and does it.
Surprised I’ve never run into that before.