예제 #1
0
        protected virtual void OnElementsAdded(ElementUpdateEventArgs e)
        {
            var handler = ElementsAdded;

            if (handler != null)
            {
                handler(e.GetUniqueIds());
            }
        }
예제 #2
0
        protected virtual void OnElementsDeleted(ElementUpdateEventArgs e)
        {
            var handler = ElementsDeleted;

            if (handler != null)
            {
                handler(e.RevitDocument, e.Elements);
            }

            var updateHandler = ElementsUpdated;

            if (updateHandler != null)
            {
                updateHandler(this, e);
            }
        }
예제 #3
0
        protected virtual void OnElementsModified(ElementUpdateEventArgs e)
        {
            var handler = ElementsModified;

            if (handler != null)
            {
                handler(e.GetUniqueIds());
            }

            var updateHandler = ElementsUpdated;

            if (updateHandler != null)
            {
                updateHandler(this, e);
            }
        }