namespace HStation.Revit
{
///
/// 管道状态
///
public class PipeStatus
{
///
/// 开启
///
public const string Open = "Open";
///
/// 关闭
///
public const string Closed = "Closed";
///
/// CV 意味着管道包含了限制流向的止回阀
///
public const string CV = "CV";
///
/// 包含
///
public static bool Contains(string status)
{
if (string.IsNullOrEmpty(status))
{
return false;
}
if (status == Open)
{
return true;
}
if (status == Closed)
{
return true;
}
if (status == CV)
{
return true;
}
return false;
}
}
}