Walkthrough: Configuring & Validating a Linear Rail iModel

Overview & Scenario

Unlike vertical buildings—where elements are organized by discrete floor levels (IfcBuildingStorey)—linear rail infrastructure spans kilometres of continuous horizontal and vertical alignment. Validating a rail corridor requires three coordinated pieces:

  1. Model Geometry & Classification: Track centrelines, sleepers, ballast/track slab, overhead line equipment (OLE), bridges, parapets, and platforms exported with valid 3D world bounding boxes (bis.SpatialIndex) and consistent class/category naming.
  2. Asset & Context Configuration: Binding chainage bounds, kinematic structure gauge profile, track spacing, Top of Rail (TOR) offset, and railway systems slab dimensions in the Asset & Context Configuration Studio.
  3. Deterministic Clearance & Gauge Rules: Executing BS_EN_50122_OCLZ_CCZ_HOOD (dual-zone 25 kV electrification hood), BS_EN_50122_PANTOGRAPH_350 (live pantograph clearance), NETWORK_RAIL_GAUGE_450 (kinematic structure gauge), and RAILWAY_SYSTEMS_SLAB against the live iModel changeset.

Phase 3: Validation & Publishing

Phase 2: Asset & Context Studio

Phase 1: What Must Be in the Rail iModel

Track Alignment / Centreline
(IfcRail / RT-Ss_80_70_70)

Trackbed & Substructure
(Slab, Ballast, Deck, Sleepers)

Lineside & Overhead Assets
(OLE Masts, Parapets, Bridges, Platforms)

Select Rail Config Profile
(HS2 Technical Standards & Clearances)

Bind Asset Preset
(e.g., Dinsdale - Allens West / CCS-NR-001)

Set Chainage, Gauge Profile,
Track Spacing & Slab Dimensions

Run Kinematic Gauge & OCLZ/CCZ Audit

Inspect 3D Corridor Sweeps & Clashes

Publish Dynamic Aspects (IFCDynamic)


1. What Must Be in the Rail iModel

Before running automated clearance checks in BIM Checker, verify that your federated iModel (synchronized via IFC 4.3 / iTwin Bridge) contains the following physical and spatial data:

A. Track Alignment & Centreline Geometry

BIM Checker's 3D clearance engine (queryRailTrackAlignment and Hs2OclzCczClearanceHandler) resolves the 3D track reference line in priority order:

  1. Explicit Track Categories / Labels in the iModel: bis.GeometricElement3d elements whose bis.Category (CodeValue or UserLabel) or UserLabel matches:
    • %RT-Ss_80_70_70% (Uniclass 2015 High-Speed / Heavy Rail Track Systems)
    • %HighSpeedRail%, %TrackCentreline%, %RailLineComponent%, %Track%, or %Rail%
    • For twin-track corridors, h2ml-01 / track 1 / upline and h2ml-02 / track 2 / downline labels separate UP and DOWN tracks automatically.
  2. Trackbed / Deck Slab Fallback: If no explicit centreline geometry is present, the evaluator can derive alignment from deck/ballast/slab elements matching deckElementPatterns (e.g. %Slab%, %Deck%, %Ballast%, %Trackbed%), applying the configured Top of Rail (TOR) Offset.
  3. Asset Preset Polyline (centerlinePoints): If the model lacks queryable centreline geometry, the engine uses the centerlinePoints (or startPoint → endPoint chord) stored on the bound Asset Preset.

B. Trackbed, Slab & Structural Obstacles

The BS_EN_50122_OCLZ_CCZ_HOOD harvester (QueryBuilder.buildSpatialHarvestQuery) queries bis.PhysicalElement joined to bis.SpatialIndex for lineside and overhead structures using ec_className(e.ECClassId, 's.c') and e.UserLabel:


2. How to Prepare & Tag Your Model Before Publishing

To ensure zero InsufficientInfo results when synchronizing Civil 3D, OpenRail Designer, or Revit/IFC 4.3 models into an iModel:

  1. Assign Uniclass / IFC 4.3 Classes Cleanly:
    • Export track alignments and rails using IfcAlignment / IfcRail or assign the Uniclass category RT-Ss_80_70_70-M-HighSpeedRailTrackCentreline3D.
    • Classify track slabs, ballast, and viaduct decks as IfcSlab / IfcCivilElement with descriptive UserLabel names (TrackSlab, Ballast, BridgeDeck).
    • Classify OLE masts, portals, acoustic barriers, and bridge parapets with clear UserLabel or CodeValue tags (OLE Mast, Parapet, Acoustic Barrier).
  2. Verify World Coordinate System & Units:
    • Ensure all federated discipline models share a single project coordinate system (e.g., OSGB36 / SnakeGrid in metres).
    • Confirm that the bis.SpatialIndex R*Tree is populated after synchronization in the iModel Console.
  3. Avoid Grouping Entire Corridors into a Single Mesh:
    • Model individual parapets, masts, spans, and slabs as distinct PhysicalElement instances so clash bounding boxes pinpoint the exact offending chainage and element ID.

3. How to Configure Your Asset in Asset & Context Configuration Studio

BIM Checker uses a 3-tier polymorphic hierarchy so project teams can inherit universal rail standards while overriding corridor-specific geometry:

  1. Domain Baseline (Universal): Sector-wide defaults across all rail projects.
  2. iTwin Project Override: Corridor-level settings (e.g., Darlington - Allens West).
  3. iModel Container Override: Model-specific overrides (e.g., CCS-NR-001).

Step-by-Step Asset Configuration

  1. Open BIM Checker and select your iTwin (e.g., Darlington - Allens West) and iModel (e.g., CCS-NR-001).
  2. Navigate to BIM Requirements and select HS2 Technical Standards & Clearances (config-hs2-technical) from the Validation Config Selector.
  3. Open the Asset Preset Selector and choose your rail asset (e.g., preset-nr-dinsdale-allens-west — Dinsdale to Allens West).
  4. Click the Asset & Context Configuration Studio button and select the General & Infrastructure tab:
    • Start Chainage (km) / End Chainage (km): e.g., 0+000 to 5+000 (for the 5 km Dinsdale to Allens West corridor).
    • Kinematic Structure Gauge Profile: e.g., HS2-G2 Structure Gauge Envelope (or Network Rail gauge profile).
    • Slab Height (m) & Track Slab Width (m): e.g., 0.35 m height, 3.80 m width (used by RAILWAY_SYSTEMS_SLAB).
    • Track Spacing (m) & Top of Rail (TOR) Offset (m): Default 4.50 m twin-track spacing and 2.40 m TOR offset above substructure datum.
  5. Choose the target context tier (Domain Baseline, iTwin Project Override, or iModel Container Override) and click Save Override.

4. Validating Kinematic Structure Gauge & BS EN 50122-1 Electrification Clearance

Once the asset and configuration are bound:

  1. In BIM Requirements, verify the assigned rail rules are active:
    • BS_EN_50122_OCLZ_CCZ_HOOD: Dual-zone polygonal Overhead Contact Line Zone (6.17 m base) and Current Collection Zone (2.90 m upper zone) up to 5.60 m above Top of Rail.
    • BS_EN_50122_OCLZ_250: Lateral clearance ≥ 2.50 m from track centreline.
    • BS_EN_50122_PANTOGRAPH_350: 3D radial clearance ≥ 3.50 m around the pantograph / contact wire (5.120 m above TOR).
    • NETWORK_RAIL_GAUGE_450 (BS EN 15273): Kinematic structure gauge clearance (≥ 4.50 m / ≥ 0.25 m buffer outside the swept gauge envelope).
  2. Click Run Audit to execute the ECSQL harvest and 3D corridor evaluation.
  3. Review results in the 3D Viewer:
    • Corridor Sweeps (CORRIDOR_SWEEP): Visualizes the polygonal OCLZ/CCZ hood and railway systems slab along the track alignment.
    • Deficient Zones (SPATIAL_DEFICIENT_ZONE): Highlights exact elements intruding into the electrical or kinematic envelope, with measured clearance (m), required boundary (m), and chainage/coordinate telemetry.
  4. Click Publish to iModel to write IFCDynamic:OclzClearanceValidationAspect records back to the live iModel changeset.

Next Steps