public AddParametersForm(SharedParameters sp)
 {
     this.SharedParameters = sp;
     this.DataContext      = this;
     this.SharedParameters = sp;
     InitializeComponent();
 }
Beispiel #2
0
        public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
        {
            UIApplication uiapp = commandData.Application;
            UIDocument uidoc = uiapp.ActiveUIDocument;
            Application app = uiapp.Application;
            Document doc = uidoc.Document;

            try
            {
                using (Transaction transaction = new Transaction(doc))
                {
                    SharedParameters sp = new SharedParameters(app, uiapp, "G:\\#WORK\\V\\3D\\#PROCHEM_HVAC_plik_parametrow.txt");
                    AddParametersForm form = new AddParametersForm(sp);
                    form.Show();
                }
            }
            catch (Exception)
            {
                throw;
            }


            return Result.Succeeded;
        }