public Result Execute( ExternalCommandData commandData, ref string message, ElementSet elements) { UIApplication uiapp = commandData.Application; uidoc = uiapp.ActiveUIDocument; Application app = uiapp.Application; doc = uidoc.Document; sel = uidoc.Selection; Setting = SettingManagerSection.Instance.GetSetting(); if (Setting.FamilySymbol == null && Setting.Parameter == null) { var form = new FrmSettingManagerSection(this, doc); form.ShowDialog(); } ViewModel = new ManagerSectionModel(doc, Setting); Run(doc); return(Result.Succeeded); }
private void btn_Setting_Click(object sender, EventArgs e) { var form = new FrmSettingManagerSection(_data, _doc); form.ShowDialog(); }