I need to suppress the Instance of linked .rvt file needs Coordination Review dialog while I'm running an add-in that opens multiple models because I don't want the user to need to click through a bunch of dialogs. I've added an event handler to UIApplication.DialogBoxShowing
and it checks if the dialog has HelpId == 1011
(found here) which is the dialog that I'm looking for. However, when I try the e.OverrideResult
method it always seems to cancel the action. I've tried TaskDialogResult.Ok
and DialogResult.Ok
but both of them cancel the action.
Here is my event handler:
private void application_DialogBoxShowing(object sender,
DialogBoxShowingEventArgs e)
{
if (e.HelpId == 1011)
e.OverrideResult((int)TaskDialogResult.Ok);
}
What dialog result can I pass to make the action continue?