private static void shtConfigSheetParts(SheetSystemManager ShtSysMgr) { SheetPartData[] sheetParts = new [] { new SheetPartData(SP_BLDG_PHASE_PHASE_ID, PartIdType.SHEETNUMBER, 1, "Phase Id", @"^(\d*)", 0, 1, 10, "{0}"), new SheetPartData(SP_BLDG_PHASE_BLDG_ID, PartIdType.SHEETNUMBER, 2, "Building Id", @"^\d*([A-Z]*)", 1, 1, 10, "{0}"), new SheetPartData(SP_BLDG_PHASE_SHEET_ID, PartIdType.SHEETNUMBER, 3, "Sheet Id", @"^.*? (.*?) ", 1, 2, 20, " {0}"), new SheetPartData(SP_BLDG_PHASE_SHEET_NAME, PartIdType.SHEETNAME, 1, "Sheet Name", @"^.*? .*? (.*(?=\.[Pp][Dd][Ff])|.*)", 1, 2, 0, "{0}"), new SheetPartData(SP_NON_BLDG_PHASE_SHEET_ID, PartIdType.SHEETNUMBER, 1, "Sheet Id", @"^(.*?) ", 1, 2, 20, "{0}"), new SheetPartData(SP_NON_BLDG_PHASE_SHEET_NAME, PartIdType.SHEETNAME, 1, "Sheet Name", @"^.*? (.*(?=\.[Pp][Dd][Ff])|.*)", 1, 2, 0, "{0}") }; ShtSysMgr.AddSheetPartData(sheetParts); }
private static void shtSysConfigNoBldgPhase(SheetSystemManager ShtSysMgr) { ShtSysMgr.ConfigSheetType( ST_NON_PHASE_NON_BLDG, "Non-phase-building Sheets", @"^(([A-Z]+?)\d+(\.\d+\-\w+|\.\d+| ))(.*)", 2, false, new [] { SP_NON_BLDG_PHASE_SHEET_ID, SP_NON_BLDG_PHASE_SHEET_NAME }); }
/* * adjusted to discount the .PDF extension * regex for building, no phase: * @"^(([A-Z]+) ([A-Z]+?)\d+(\.\d+\-\w+|\.\d+| ))(.*)" * regex for phase, no building: * @"^(([0-9]+) ([A-Z]+?)\d+(\.\d+\-\w+|\.\d+| ))(.*)" * regex for phase and building: * @"^(([0-9]+[A-Z]+) ([A-Z]+?)\d+(\.\d+\-\w+|\.\d+| ))(.*)" * regex for non phase-building: * @"^(([A-Z]+?)\d+(\.\d+\-\w+|\.\d+| ))(.*)" * * discipline specific - must occur before above general sheet types * regex for civil sheets * @"^((C)\d+(\.\d+\-\w+|\.\d+| ))(.*)" * regex for landscape sheets * @"^((L)\d+(\.\d+\-\w+|\.\d+| ))(.*)" */ public static void Config() { SheetSystemManager ShtSysMgr = new SheetSystemManager(); SheetSystemManager.MaxSheetParts = 4; SheetSystemManager.MinSheetParts = 2; shtConfigSheetParts(ShtSysMgr); shtSysConfigPhaseBldg(ShtSysMgr); // phase / building shtSysConfigPhaseNoBldg(ShtSysMgr); // phase / no building shtSysConfigNoPhaseBldg(ShtSysMgr); // no phase / building shtSysConfigNoBldgPhase(ShtSysMgr); // no phase / no building }
private static void shtSysConfigPhaseNoBldg(SheetSystemManager ShtSysMgr) { ShtSysMgr.ConfigSheetType( ST_PHASE_NON_BLDG, "Phase, no-bldg sheets", @"^(([0-9]+) ([A-Z]+?)\d+(\.\d+\-\w+|\.\d+| ))(.*)", 3, false, new [] { SP_BLDG_PHASE_PHASE_ID, SP_BLDG_PHASE_SHEET_ID, SP_BLDG_PHASE_SHEET_NAME }); }