Esempio n. 1
0
        public Result OnStartup(UIControlledApplication a)
        {
            DeletionUpdater deletionUpdater
              = new DeletionUpdater(a.ActiveAddInId);

            UpdaterRegistry.RegisterUpdater(
              deletionUpdater);

            ElementClassFilter filter
              = new ElementClassFilter(
                typeof(Dimension), true);

            UpdaterRegistry.AddTrigger(
              deletionUpdater.GetUpdaterId(), filter,
              Element.GetChangeTypeElementDeletion());

            //FailureDefinitionRegistry

            return Result.Succeeded;
        }
Esempio n. 2
0
        public Result OnStartup(UIControlledApplication a)
        {
            DeletionUpdater deletionUpdater
                = new DeletionUpdater(a.ActiveAddInId);

            UpdaterRegistry.RegisterUpdater(
                deletionUpdater);

            ElementClassFilter filter
                = new ElementClassFilter(
                      typeof(Dimension), true);

            UpdaterRegistry.AddTrigger(
                deletionUpdater.GetUpdaterId(), filter,
                Element.GetChangeTypeElementDeletion());

            //FailureDefinitionRegistry

            return(Result.Succeeded);
        }