public Result OnStartup(UIControlledApplication uiApp)
        {
            try { uiApp.CreateRibbonTab(tabName); } catch {};
            CCPaintPanel.PaintPanel(uiApp);
            UpdateTab.CreatePanel(uiApp);
            FamilyReorganize.Run();

            //DetailPanel.DetailTab(uiApp, tabName);
            //ObjStylesTab.ObjTab(uiApp, tabName);
            //QCTab.QCPanel(uiApp, tabName);
            // MFPanel.MFTab(uiApp, tabName);
            //AnalysisTab.AnalysisPanel(uiApp, tabName);
            //SchduleTab.SchedulePanel(uiApp, tabName);
            //uiApp.LoadFamPanel(tabName);

            //try { LineStyleUpdater.OnStartup(uiApp); } catch (Exception e) { e.OutputError(); }
            try { LineStyleNetworkUpdater.OnStartup(uiApp); } catch (Exception e) { e.OutputError(); }
            try { MFTypeNameChange.OnStartup(uiApp); } catch (Exception e) { e.OutputError(); }
            try { TypeNamingUpdater.OnStartup(uiApp); } catch (Exception e) { e.OutputError(); }
            try { DocumentSaved.OnStartup(uiApp); } catch (Exception e) { e.OutputError(); }
            try { PlaneTypeUpdater.OnStartup(uiApp); } catch (Exception e) { e.OutputError(); }
            //try { ObjStyleUpdater.OnStartup(uiApp); } catch (Exception e) { e.OutputError(); }
            try { ObjStyleNetworkUpdater.OnStartup(uiApp); } catch (Exception e) { e.OutputError(); }
            return(Result.Succeeded);
        }
Beispiel #2
0
        public static void OnStartup(UIControlledApplication application)
        {
            PlaneTypeUpdater updater = new PlaneTypeUpdater(application.ActiveAddInId);

            UpdaterRegistry.RegisterUpdater(updater, true);

            ElementClassFilter refFilter = new ElementClassFilter(typeof(ReferencePlane));

            UpdaterRegistry.AddTrigger(updater.GetUpdaterId(), refFilter, Element.GetChangeTypeAny());
            UpdaterRegistry.AddTrigger(updater.GetUpdaterId(), refFilter, Element.GetChangeTypeElementAddition());
        }
 public Result OnShutdown(UIControlledApplication uiApp)
 {
     //LineStyleUpdater.OnShutdown(uiApp);
     LineStyleNetworkUpdater.OnShutdown(uiApp);
     MFTypeNameChange.OnShutdown(uiApp);
     TypeNamingUpdater.OnShutdown(uiApp);
     DocumentSaved.OnShutdown(uiApp);
     PlaneTypeUpdater.OnShutdown(uiApp);
     //ObjStyleUpdater.OnShutdown(uiApp);
     ObjStyleNetworkUpdater.OnShutdown(uiApp);
     return(Result.Succeeded);
 }
Beispiel #4
0
        public static void OnShutdown(Autodesk.Revit.UI.UIControlledApplication application)
        {
            PlaneTypeUpdater updater = new PlaneTypeUpdater(application.ActiveAddInId);

            UpdaterRegistry.UnregisterUpdater(updater.GetUpdaterId());
        }