Exemple #1
0
        public SettingDimgrid GetSetting()
        {
            SettingDimgrid setting = SettingExtension.GetSetting <SettingDimgrid>(GetFullFileName());

            if (setting == null)
            {
                setting = new SettingDimgrid();
            }
            return(setting);
        }
Exemple #2
0
        public Result Execute(
            ExternalCommandData commandData,
            ref string message,
            ElementSet elements)
        {
            UIApplication uiapp = commandData.Application;
            UIDocument    uidoc = uiapp.ActiveUIDocument;
            Application   app   = uiapp.Application;

            doc            = uidoc.Document;
            sel            = uidoc.Selection;
            Setting        = SettingDimgrid.Instance.GetSetting();
            dimensionTypes = DimBrick.Instance.GetDimensions(doc);
            var form = new FrmDimgrid(this, doc);

            form.ShowDialog();
            //XYZ point = sel.PickPoint();
            //Dimgrid(rf, point);
            return(Result.Succeeded);
        }