1234567891011121314151617181920212223242526272829303132333435363738 |
- using Autodesk.Revit.DB;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace FWindSoft.Revit.Mep
- {
- /*
- * 关联对象可以写成泛型形式,可传入Pipe,Conduit,Duct等,但现在没必要写的这么细
- * 弱化设计时的限定,在运行时执行时,在动态判定
- */
- /// <summary>
- /// 连接对象封装
- /// </summary>
- public class JoinElementWraper
- {
- public JoinElementWraper(Element element)
- {
- AssociateElement = element;
- IsFamilyInstance = element is FamilyInstance;
- }
- /// <summary>
- /// 关联元素
- /// </summary>
- public Element AssociateElement { get; private set; }
- /// <summary>
- /// 连接过程中使用到的连接点
- /// </summary>
- public Connector UseConnector { get; set; }
- /// <summary>
- /// 标志是否是设备
- /// </summary>
- public bool IsFamilyInstance { get;private set; }
- }
- }
|