private void buttonSelectScale_Click(object sender, EventArgs e)
        {
            string scaleStr = this.comboBoxSelectScale.SelectedItem.ToString();
            int    scaleInt = KbBimstoreConst.getScaleValue(scaleStr);

            List <Autodesk.Revit.DB.ViewSheet> curViewSheets = getSheetsByViewScale(scaleInt);

            if (curViewSheets.Count > 0)
            {
                uiapp.ActiveUIDocument.ActiveView = curViewSheets[0];
                this.DialogResult = DialogResult.OK;
                this.scaleResult  = true;
                this.Close();
                this.Dispose();
            }
            else
            {
                this.DialogResult = DialogResult.None;
                TaskDialog.Show("Info", ("There are no sheets with scale " + scaleStr));
            }
        }
Example #2
0
 private int GetScaleFromString(string scalestr)
 {
     return(KbBimstoreConst.getScaleValue(scalestr));
 }
 private List <string> GetScalesNames()
 {
     return(KbBimstoreConst.getScalesNames());
 }
Example #4
0
        private void PageAlignmentToolProcessor_SelectedValueChanged(object sender, EventArgs e)
        {
            string selectedScaleStr = form.getScaleComboBox().SelectedItem.ToString();

            this.selectedScale = KbBimstoreConst.getScaleValue(selectedScaleStr);
        }