Example #1
0
        /// <summary>
        /// Clears all element collections on nodes and resets the visualization manager and the old value.
        /// </summary>
        private void ResetForNewDocument()
        {
            dynSettings.Controller.DynamoModel.Nodes.ToList().ForEach(x => x.ResetOldValue());
            VisualizationManager.ClearVisualizations();

            OnRevitDocumentChanged();
        }
Example #2
0
        public virtual void ShutDown()
        {
            VisualizationManager.ClearVisualizations();

            dynSettings.Controller.DynamoModel.OnCleanup(null);
            dynSettings.Controller = null;

            Selection.DynamoSelection.Instance.ClearSelection();

            DynamoLogger.Instance.FinishLogging();
        }