Exemplo n.º 1
0
 protected virtual void OnUpdated(UpdaterArgs args)
 {
     if (Updated != null)
     {
         Updated(this, args);
     }
 }
Exemplo n.º 2
0
 protected virtual void OnUpdated(UpdaterArgs args)
 {
     if (Updated != null)
     {
         Updated(this, args);
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// Handler for the ElementTypeSpecificUpdater's Updated event.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="args"></param>
 void RevitServicesUpdater_Updated(object sender, UpdaterArgs args)
 {
     var doc = DocumentManager.Instance.CurrentDBDocument;
     var added = args.Added.Select(x => doc.GetElement(x).UniqueId);
     var addedIds = args.Added;
     var modified = args.Modified.Select(x => doc.GetElement(x).UniqueId).ToList();
     var deleted = args.Deleted;
     ProcessUpdates(doc, modified, deleted, added, addedIds);
 }
Exemplo n.º 4
0
        /// <summary>
        /// Handler for the ElementTypeSpecificUpdater's Updated event.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="args"></param>
        void RevitServicesUpdater_Updated(object sender, UpdaterArgs args)
        {
            var doc      = DocumentManager.Instance.CurrentDBDocument;
            var added    = args.Added.Select(x => doc.GetElement(x).UniqueId);
            var addedIds = args.Added;
            var modified = args.Modified.Select(x => doc.GetElement(x).UniqueId).ToList();
            var deleted  = args.Deleted;

            ProcessUpdates(doc, modified, deleted, added, addedIds);
        }
Exemplo n.º 5
0
        /// <summary>
        /// Handler for the ElementTypeSpecificUpdater's Updated event.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="args"></param>
        void RevitServicesUpdater_Updated(object sender, UpdaterArgs args)
        {
            var doc = DocumentManager.Instance.CurrentDBDocument;

            // Are we loaded yet?
            if (doc == null)
            {
                // No
                return;
            }

            var addedIds = args.Added;
            var modified = args.Modified;
            var deleted  = args.Deleted;

            ProcessUpdates(doc, modified, deleted, addedIds, Enumerable.Empty <string>());
        }