presents a category option to choose from
Inheritance: System.Windows.Forms.Form
コード例 #1
0
        /// <summary>
        ///
        /// </summary>
        public void Import()
        {
            BrowseCategory bcat = new BrowseCategory(m_activeDoc);

            if (bcat.ShowDialog() == DialogResult.OK)
            {
                Category   category = bcat.Category;
                ElementSet elemSet  = Utils.Selection.FilterToCategory((BuiltInCategory)category.Id.IntegerValue, false, m_activeDoc);
                foreach (Element elem in elemSet)
                {
                    Update(elem);
                }
                m_errorLogger.SaveErrorLog();
            }
        }
コード例 #2
0
ファイル: Importer.cs プロジェクト: yj-won/RevitLookup
        /// <summary>
        ///
        /// </summary>
        public void Import()
        {
            BrowseCategory bcat = new BrowseCategory(m_activeDoc);

            if (bcat.ShowDialog() == DialogResult.OK)
            {
                Category category = bcat.Category;
                //ElementSet elemSet = Utils.Selection.FilterToCategory( (BuiltInCategory) category.Id.IntegerValue, false, m_activeDoc );
                ICollection <ElementId> ids = Utils.Selection.FilterToCategory((BuiltInCategory)category.Id.IntegerValue, false, m_activeDoc);
                foreach (ElementId id in ids)
                {
                    Element elem = m_activeDoc.GetElement(id);
                    Update(elem);
                }
                m_errorLogger.SaveErrorLog();
            }
        }
コード例 #3
0
ファイル: Importer.cs プロジェクト: halad/RevitLookup
 /// <summary>
 /// 
 /// </summary>
 public void Import()
 {
     BrowseCategory bcat = new BrowseCategory( m_activeDoc );
       if( bcat.ShowDialog() == DialogResult.OK )
       {
     Category category = bcat.Category;
     ElementSet elemSet = Utils.Selection.FilterToCategory( (BuiltInCategory) category.Id.IntegerValue, false, m_activeDoc );
     foreach( Element elem in elemSet )
     {
       Update( elem );
     }
     m_errorLogger.SaveErrorLog();
       }
 }
コード例 #4
0
ファイル: Importer.cs プロジェクト: jeremytammik/RevitLookup
 /// <summary>
 /// 
 /// </summary>
 public void Import()
 {
     BrowseCategory bcat = new BrowseCategory( m_activeDoc );
       if( bcat.ShowDialog() == DialogResult.OK )
       {
     Category category = bcat.Category;
     //ElementSet elemSet = Utils.Selection.FilterToCategory( (BuiltInCategory) category.Id.IntegerValue, false, m_activeDoc );
     ICollection<ElementId> ids = Utils.Selection.FilterToCategory( (BuiltInCategory) category.Id.IntegerValue, false, m_activeDoc );
     foreach( ElementId id in ids )
     {
       Element elem = m_activeDoc.GetElement( id );
       Update( elem );
     }
     m_errorLogger.SaveErrorLog();
       }
 }