Revit开发BuildingEnvelopeAnalyzer
来源:互联网 发布:热化学数据库建库情况 编辑:程序博客网 时间:2024/05/18 06:43
Revit API 里有个BuildingEnvelopeAnalyzer类,帮助文档里对它描述如下:
This class uses a combination of ray-casting and flood-fill algorithms in order to find the building elements that are exposed to the outside of the building. This method can also look for the bounding building elements for enclosed space volumes inside the building.
大概意思就是说这个类可以获取在建筑外面的建筑构件,
下面是一个小测试,
Document doc = commandData.Application.ActiveUIDocument.Document;
BuildingEnvelopeAnalyzerOptions opt = new BuildingEnvelopeAnalyzerOptions();
opt.AnalyzeEnclosedSpaceVolumes = true;
opt.OptimizeGridCellSize = false;
opt.GridCellSize = 1;
BuildingEnvelopeAnalyzer analyzer = BuildingEnvelopeAnalyzer.Create(doc, opt);
IList<LinkElementId> ids = analyzer.GetBoundingElements();
List<ElementId> nids = ids.Select(m => m.HostElementId).ToList();
UIDocument uidoc = new UIDocument(doc);
uidoc.Selection.SetElementIds(nids);
return Result.Succeeded;
- Revit开发BuildingEnvelopeAnalyzer
- Revit开发起始篇
- Revit 二次开发 - 开发资源
- Revit插件开发HelloWorld
- Revit开发参数读取
- Revit开发选中元素
- Revit开发之AddInCommandBinding
- Revit开发之PreviewControl
- Revit开发之IUpdater
- Revit开发之SelectionFilterElement
- Revit开发之ElementParameterFilter
- Revit开发楼梯创建
- Revit开发之多线程
- Revit开发自定义警告
- Revit开发之管段
- Revit开发ImageView
- Revit基本开发环境搭建
- Revit开发编辑族参数
- C#&&UnityEngine:Intelface接口的简单实现
- C# 打印详解
- 排序
- Codeforces Round #436 (Div. 2) E. Fire(01背包+输出路径)
- React Native带你一步步实现热更新(CodePush-Android)
- Revit开发BuildingEnvelopeAnalyzer
- yii2 使用mysql ,实现点赞功能
- 最新最全的angular4.x、anuglar2入门实战视频教程
- linux 内核栈及crash信息介绍
- ◆练习题目◆◇区间动态规划◇ Brackets
- 我的第一篇blog
- 当 curl 返回的数据是 xml 怎么获取节点的值
- Shell语法
- 1.spring boot启动不了,application放置路径不对