Revit二次开发之ISelectionFilter 接口的用法
来源:互联网 发布:淘宝链接咋发 编辑:程序博客网 时间:2024/04/29 20:17
这个接口用来过滤Revit对象,比如你希望选择元素的时候,只选择某一类。
public static IList<Element> GetManyRefByRectangle(UIDocument doc){ ReferenceArray ra = new ReferenceArray(); ISelectionFilter selFilter = new MassSelectionFilter(); IList<Element> eList = doc.Selection.PickElementsByRectangle(selFilter, "Select multiple faces") as IList<Element>; return eList;}//重写两个方法,添加过滤条件。public class MassSelectionFilter : ISelectionFilter{ public bool AllowElement(Element element) { if (element.Category.Name == "Mass") { return true; } return false; } public bool AllowReference(Reference refer, XYZ point) { return false; }}
- Revit二次开发之ISelectionFilter 接口的用法
- Revit开发之框选过滤ISelectionFilter
- Revit 二次开发之安装包的制作
- Revit二次开发之入门
- Revit二次开发之“族”操作
- Revit二次开发之“族”操作
- revit二次开发之单位转换
- revit二次开发之找到与管道连接的连接器名称
- Revit二次开发之材料Material的设置【比目鱼原创】
- Revit二次开发之获取参数绑定的类别【比目鱼原创】
- Revit 二次开发
- Revit二次开发之“创建窗体执行Revit命令”
- Revit二次开发之Revit事务模式(TransactionMode)【比目鱼原创】
- Revit二次开发之如何选取Revit元素【比目鱼原创】
- Revit二次开发之向Revit窗体发送虚拟按键
- Revit二次开发之“墙体开洞NewOpening”
- Revit二次开发之可停靠窗口
- Revit二次开发之Parameter单位转换
- linux下svn命令大全
- java classLoader
- C++程序设计语言--第十二章:派生类
- Multi-View视频序列链接
- jsp的模式对象
- Revit二次开发之ISelectionFilter 接口的用法
- TCP三次握手/四次挥手详解
- tomcat6管理员的配置
- Hadoop运行流程分析
- ACM恺撒密码C++实现
- 给工厂分配公司代码
- out隐式对象
- 验证码与flash图片交换效果的实现
- 野指针