
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I want to subscribe to every single Command in Revit.
I've read this: Replacing Built-In Commands and Obtaining Their Ids and grabbed the list of Ids provided but it's got me wondering:
What if there are new commands that aren't on this list? How do I capture them? Is there an enum I can iterate over yet?
The Command Ids are an integer, right? So here's a wonderfully terrible idea: I could iterate through all the possible Id values and just catch{} all the exceptions. It'd guarantee that I didn't miss any and it'd be 100% future proof (unless they changed how Ids are stored). It'd also take a crazy amount of time.
But it'd work!
But it's stupid and brute force.
There's got to be a better way, right?
Solved! Go to Solution.