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); }
public Result Execute( ExternalCommandData commandData, ref string message, ElementSet elements) { UIDocument uiDoc = commandData.Application.ActiveUIDocument; CCPaintPanel.PaintByMaterial(uiDoc, Params.Finish); return(Result.Succeeded); }