Class to cache info about Analytical Support Data
コード例 #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();
        }
コード例 #2
0
        public void 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();
        }
コード例 #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();
        }