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等,但现在没必要写的这么细
* 弱化设计时的限定,在运行时执行时,在动态判定
*/
///
/// 连接对象封装
///
public class JoinElementWraper
{
public JoinElementWraper(Element element)
{
AssociateElement = element;
IsFamilyInstance = element is FamilyInstance;
}
///
/// 关联元素
///
public Element AssociateElement { get; private set; }
///
/// 连接过程中使用到的连接点
///
public Connector UseConnector { get; set; }
///
/// 标志是否是设备
///
public bool IsFamilyInstance { get;private set; }
}
}