Ejemplo n.º 1
0
        /// <summary>
        /// Executes the command.
        /// </summary>
        /// <param name="data">The data.</param>
        /// <param name="message">The message.</param>
        /// <param name="elements">The elements.</param>
        /// <returns></returns>
        /// 创建人:刘俊  创建时间:2019/9/6 17:55
        protected override Result ExecuteCommand(ExternalCommandData data, ref string message, ElementSet elements)
        {
            _app = data.Application;
            _doc = data.Application.ActiveUIDocument.Document;
            FamilyManageViewModel vm = new FamilyManageViewModel();

            vm.SetFamily = SetFamily;
            vm.SetMulFam = SetMulFamily;
            FamilyManageView frm = new FamilyManageView(vm);

            frm.ShowDialog();
            return(Result.Succeeded);
        }
Ejemplo n.º 2
0
 public FamilyManageView(FamilyManageViewModel model)
 {
     InitializeComponent();
     this.DataContext = model;
 }