/// <summary> /// Cleans up the stuff so that the plugin set to the initial state /// as if it is loaded at first. /// </summary> public static void OnCleanUpCommand() { // remove all point cloud instances s_temporary_outlier_deletion = true; OutlierPointCloudEngine.RemovePointCloud(); InlierPointCloudEngine.RemoveAllPointClouds(); DirectShapeEngine.RemoveAllDirectShapes(); OnPluginShutdown(); OnPluginStartUp(); }
/// <summary> /// Removes all the stuffs this plugin made when Revit closed the document. /// </summary> /// <param name="e">The arguments of the event</param> public static void OnDocumentClosing(Autodesk.Revit.DB.Events.DocumentClosingEventArgs e) { OutlierPointCloudEngine.RemovePointCloud(); InlierPointCloudEngine.RemoveAllPointClouds(); DirectShapeEngine.RemoveAllDirectShapes(); }