These are two key pieces of Revit API technology that work great together like peanut butter and chocolate
To be honest, RegisterDockablePane + XAML + IExternalEventHandler don’t taste as good as a Reese’s Peanut Butter Cup. But you can use them to create a simple little modeless dialog with a button that creates new drafting views. And from here this basic sample can be a launching pad to all sorts of great Revit tools.
If you like these tools, please support Boost Your BIM so we can make even more of them – take one of our online courses in API programming or support Boost Your BIM at Patreon
Like with all the Boost Your BIM Terrific Tools, you can find the source code & installer at https://bitbucket.org/BoostYourBIM/boostyourbimterrifictools/src/master/