public static bool IsBayWindow(FamilyInstance _fi) { var type = _fi.GetEnviFamilyType(); return(type == EnviFamilyType.wb_BayWindow_B || type == EnviFamilyType.wb_BayWindow_C); }