UI which displays the information
Inheritance: System.Windows.Forms.Form
Exemple #1
0
        AnalyticalSupportData()
        {
            //ElementSet selectedElements = m_revitApp.ActiveUIDocument.Selection.Elements;
            ICollection <ElementId> selectedElementIds = m_revitApp.ActiveUIDocument.Selection.GetElementIds();

            //if (selectedElements.IsEmpty)

            if (0 == selectedElementIds.Count)
            {
                MessageBox.Show("No Elements were selected.");
                return;
            }

            AnalyticalSupportData.Info analysisData = new AnalyticalSupportData.Info(
                m_revitApp.ActiveUIDocument.Document, selectedElementIds);

            if (analysisData.ElementInformation.Rows.Count == 0)
            {
                MessageBox.Show("No Elements with Analytical Support Data were selected.");
                return;
            }

            AnalyticalSupportData.InfoForm form = new AnalyticalSupportData.InfoForm(analysisData);
            form.ShowDialog();
        }
Exemple #2
0
        public void AnalyticalSupportData()
        {
            ElementSet selectedElements = m_revitApp.ActiveUIDocument.Selection.Elements;

            if (selectedElements.IsEmpty) {
                MessageBox.Show("No Elements were selected.");
                return;
            }

            AnalyticalSupportData.Info analysisData = new AnalyticalSupportData.Info(selectedElements);
            if (analysisData.ElementInformation.Rows.Count == 0) {
                MessageBox.Show("No Elements with Analytical Support Data were selected.");
                return;
            }

            AnalyticalSupportData.InfoForm form = new AnalyticalSupportData.InfoForm(analysisData);
            form.ShowDialog();
        }
Exemple #3
0
        AnalyticalSupportData()
        {
            ElementSet selectedElements = m_revitApp.ActiveUIDocument.Selection.Elements;

            if (selectedElements.IsEmpty)
            {
                MessageBox.Show("No Elements were selected.");
                return;
            }

            AnalyticalSupportData.Info analysisData = new AnalyticalSupportData.Info(selectedElements);
            if (analysisData.ElementInformation.Rows.Count == 0)
            {
                MessageBox.Show("No Elements with Analytical Support Data were selected.");
                return;
            }

            AnalyticalSupportData.InfoForm form = new AnalyticalSupportData.InfoForm(analysisData);
            form.ShowDialog();
        }
    AnalyticalSupportData()
    {
      //ElementSet selectedElements = m_revitApp.ActiveUIDocument.Selection.Elements;
      ICollection<ElementId> selectedElementIds = m_revitApp.ActiveUIDocument.Selection.GetElementIds();

      //if (selectedElements.IsEmpty) 

      if( 0 == selectedElementIds.Count )
      {
        MessageBox.Show( "No Elements were selected." );
        return;
      }

      AnalyticalSupportData.Info analysisData = new AnalyticalSupportData.Info(
        m_revitApp.ActiveUIDocument.Document, selectedElementIds );

      if( analysisData.ElementInformation.Rows.Count == 0 )
      {
        MessageBox.Show( "No Elements with Analytical Support Data were selected." );
        return;
      }

      AnalyticalSupportData.InfoForm form = new AnalyticalSupportData.InfoForm( analysisData );
      form.ShowDialog();
    }