Message 1 of 13
Resume original command with CreateAddInCommandBinding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
If I use CreateAddInCommandBinding to intercept a command is there any way to resume the command in the Executed event handler?
For example something like this:
var cmd = RevitCommandId.LookupCommandId("ID_FILE_SAVE_TO_MASTER"); var binding = app.CreateAddInCommandBinding(cmd); binding.Executed += Binding_Executed;
private static void Binding_Executed(object sender, ExecutedEventArgs e) { // Run my code here
// Resume original command }
I know in this example I could programmatically do a sync but I want to display the sync dialog to the user as normal