Every rule in BIM Checker is stored in MongoDB (cc_core.rules) as the single source of truth. When you open Settings → Edit Configuration → Rules → Configure (sliders icon), you can override individual Harvester Scope (ECSQL) fields or Rule Parameters for that specific configuration (cc_core.configs.ruleOverrides) without altering the global baseline rule.
Important: Clicking Apply to Configuration Draft only updates the dialog draft. Always click Update Configuration in the parent dialog to persist your overrides to MongoDB.
The Harvester Scope (ECSQL) section controls which iModel elements are fetched before a rule evaluates geometry or properties:
| Field | Purpose | Example |
|---|---|---|
whereClause |
ECSQL WHERE filter applied to the target class (aliased as e). Controls which elements appear as Candidates in Data Readiness and Audits. |
e.Category.Id IN (SELECT ECInstanceId FROM bis.Category WHERE CodeValue LIKE '%OLE%' OR CodeValue LIKE '%Bridge%') |
targetClasses |
Comma-separated BIS class names queried by the harvester. | bis.PhysicalElement |
If Data Readiness reports '0 elements matched' for bis.PhysicalElement.whereClause, see Fixing Harvester WHERE Clause.
spatialProfile MeansspatialProfile is a structured JSON object stored on spatial clearance rules that tells the clearance evaluation handler which 3D geometric envelope shape to sweep and what minimum clearance distance to enforce.
{
"profileType": "OLE_25KV_BUFFER",
"requiredClearance": 270
}
spatialProfile| Field | Type | Meaning |
|---|---|---|
profileType |
string |
Selects the geometric clearance profile evaluated by the handler: • OLE_25KV_BUFFER — 25 kV Overhead Line Equipment (OLE) live conductor electrical clearance envelope.• DOOR_CLEARANCE — Effective clear door width and swing arc clearance.• STAIR_CLEARANCE — Stairway flight clear width and headroom clearance.• CORRIDOR_CLEARANCE — 2D circulation pinch-point / bottleneck width clearance. |
requiredClearance |
number |
Minimum required clearance distance for the profile, expressed in the rule's unit (e.g., 270 when unit is mm, or 0.27 when unit is m). |
corridorWidth |
number (optional) |
Used by circulation/corridor rules when specifying the required clear passage width. |
Unit Consistency Tip: Keep
nominalThreshold,spatialProfile.requiredClearance, andunitin matching units! For example, for a 270 mm 25 kV electrical clearance check (BS_EN_50122_ELECTRICAL_270), usenominalThreshold: 270,spatialProfile.requiredClearance: 270, andunit: "mm"(or0.27withunit: "m"). Mixing270withunit: "m"would evaluate as 270 metres.
Rail electrification and kinematic gauge rules (such as BS_EN_50122_OCLZ_CCZ_HOOD, BS_EN_50122_OCLZ_250, BS_EN_50122_PANTOGRAPH_350, and NETWORK_RAIL_GAUGE_450) read their geometric dimensions directly from MongoDB rule.parameters (or your configuration's ruleOverrides):
| Parameter | Typical Unit | Description |
|---|---|---|
totalHeight |
m |
Total vertical height of the OCLZ/CCZ hood above Top of Rail (TOR), e.g. 5.596 m (BS EN 50122-1). |
contactWireHeight |
m |
Nominal height of the 25 kV contact wire above Top of Rail, e.g. 5.12 m. |
pantographClearance |
m |
Additional vertical electrical clearance above the contact wire / pantograph zone, e.g. 0.476 m. |
cczHalfWidth |
m |
Half-width of the upper Current Collection Zone (CCZ) measured laterally from track centreline, e.g. 1.451 m (total width 2.902 m). |
oclzBaseHalfWidth |
m |
Half-width of the lower Overhead Contact Line Zone (OCLZ) base measured laterally from track centreline, e.g. 3.085 m (total width 6.17 m). |
earthDepth |
m |
Depth below Top of Rail included for trackbed / earthing checks, e.g. 0.6 m. |
railClearanceRequired |
m |
Minimum lateral clearance from track centreline to lineside structures (e.g. 2.5 m for BS_EN_50122_OCLZ_250). |
pantographClearanceRequired |
m |
Minimum radial/overhead clearance around the live pantograph zone (e.g. 3.5 m for BS_EN_50122_PANTOGRAPH_350). |
warningBuffer |
m |
Amber warning margin outside the statutory fail threshold (e.g. 0.05 m = 50 mm). Elements inside [threshold, threshold + warningBuffer] are flagged as warnings. |
torOffset |
m |
Vertical offset from substructure/deck datum to Top of Rail (TOR) when deriving alignment from slab/deck geometry, e.g. 2.4 m. |
nominalThreshold |
unit |
Primary statutory pass/fail threshold for the rule (e.g. 2.5 m for BS_EN_50122_OCLZ_250, 3.5 m for BS_EN_50122_PANTOGRAPH_350, 4.5 m for NETWORK_RAIL_GAUGE_450). |
unit |
string |
Measurement unit (mm, m, m²) governing nominalThreshold and spatialProfile.requiredClearance. |
comparisonOperator |
string |
Comparison direction (>= for minimum clearances/widths, <= for maximum limits). |