using Autodesk.Revit.DB;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FWindSoft.Revit
{
public class ConnectorSearchOptions
{
///
/// 允许元素限定
///
public Predicate AllowElement { get; set; }
///
/// 允许连接件限定
///
public Predicate AllowConnector { get; set; }
///
/// Connector可用判定
///
///
///
public bool ConnectorUsable(Connector connector)
{
return AllowConnector == null || AllowConnector(connector);
}
///
/// 元素可用判定
///
///
///
public bool ElementUsable(Element element)
{
return AllowElement == null || AllowElement(element);
}
}
}