コード例 #1
0
        public static Result OnShutdown(UIControlledApplication app)
        {
            LineStyleUpdater updater = new LineStyleUpdater(app.ActiveAddInId);

            UpdaterRegistry.UnregisterUpdater(updater.GetUpdaterId());
            return(Result.Succeeded);
        }
コード例 #2
0
        public static void RegisterUpdater(AddInId id)
        {
            LineStyleUpdater updater = new LineStyleUpdater(id);

            UpdaterRegistry.RegisterUpdater(updater, true);
            UpdaterRegistry.AddTrigger(updater.GetUpdaterId(),
                                       new ElementClassFilter(typeof(CurveElement)),
                                       Element.GetChangeTypeGeometry());
            UpdaterRegistry.AddTrigger(updater.GetUpdaterId(),
                                       new ElementClassFilter(typeof(CurveElement)),
                                       Element.GetChangeTypeElementAddition());
        }