/*private List<int> GetPipeIds(E3Project project) { NormalDevice device = project.GetNormalDeviceById(0); List<int> pipeIds = new List<int>(); foreach (int id in project.DeviceIds) { device.Id = id; string function = device.GetComponentAttributeValue("Function"); if (ContainsIgnoreCase(function,"труб", StringComparison.OrdinalIgnoreCase) || ContainsIgnoreCase(function, "металлорукав", StringComparison.OrdinalIgnoreCase)) pipeIds.Add(id); } return pipeIds; }*/ private static HashSet<int> GetElectricSchemeSheetIds(E3Project project ,Sheet sheet, int electricShemeTypeCode) { HashSet<int> electricSchemeSheetIds = new HashSet<int>(); foreach (int sheetId in project.SheetIds) { sheet.Id = sheetId; if (sheet.IsSchematicTypeOf(electricShemeTypeCode)) electricSchemeSheetIds.Add(sheetId); } return electricSchemeSheetIds; }