Ejemplo n.º 1
0
        // Implement the interface to execute some tasks when Revit shuts down.
        public Result OnShutdown(
            UIControlledApplication InApplication             // handle to the application being shut down
            )
        {
            if (ExportMessages != null && !ExportMessages.IsDisposed)
            {
                ExportMessages.Close();
            }

            return(Result.Succeeded);
        }
Ejemplo n.º 2
0
        // Implement the interface to execute some tasks when Revit shuts down.
        public Result OnShutdown(
            UIControlledApplication InApplication             // handle to the application being shut down
            )
        {
            InApplication.ControlledApplication.DocumentClosing -= DocumentClosingHandler;
            InApplication.ViewActivated -= ViewActivatedHandler;

            DocumentClosingHandler = null;
            ViewActivatedHandler   = null;

            if (ExportMessagesDialog != null && !ExportMessagesDialog.IsDisposed)
            {
                ExportMessagesDialog.Close();
            }
            FDatasmithFacadeDirectLink.Shutdown();
            return(Result.Succeeded);
        }