Hi All,
I am creating a IExternalApplication plugin for Revit.
When I run this it locks Revit functions out. (after clicking message box)
It's as if there is a dialogue box open.
I have no problem registering events etc.. but why is my code not returning to a usable state ?
Is this normal ? am I using the correct approach ?
Thanks in advance
Code:
class Example: IExternalApplication {
public Result OnStartup(UIControlledApplication application) {
try {
MessageBox.Show("onstartup");
} catch (Exception) {
return Autodesk.Revit.UI.Result.Failed;
}
return Autodesk.Revit.UI.Result.Succeeded;
}
public Result OnShutdown(UIControlledApplication application) {
try {
MessageBox.Show("on shutdown");
} catch (Exception) {
return Autodesk.Revit.UI.Result.Failed;
}
return Autodesk.Revit.UI.Result.Succeeded;
}
}