Revit api 获取文档内所有对象根列表

来源:互联网 发布:mac怎么建立文件夹 编辑:程序博客网 时间:2024/06/06 09:28
       Document thisDoc =tempData.Application.ActiveUIDocument.Document;
            Settings thisDocSetting = thisDoc.Settings;
            Categories thisCataGroup = thisDocSetting.Categories;
            sizeText.Text =thisCataGroup.Size.ToString();
            foreach(Category catalName in thisCataGroup)
            {
                myListbox.Items.Add(catalName.Name);
                
            }
            myListbox.Items.Refresh();
阅读全文
0 0
原创粉丝点击