Making Automated Rail Checking Work in the Real World: How Linear Models Actually Use IFC Alignment

Document Reference: CCSMK-CCS-MKT-ZZ-DS-BG-0012
Series: The Future of Automated Model Checking (Linear Infrastructure)
Author: C&C Solutions (CCS)
Date: 2026-12-01
Live Application: bim-check.itwin.app

Comparison of static rectangular bounding box vs. IfcAlignment-swept BS EN 50122-1 profile


Following the response to our recent posts on 3D spatial checking and building our synthetic Dinsdale-to-Allens West rail testbed, we have been busy updating BIM Checker so it works reliably across most real-world rail datasets—not just a single idealised model.

When you move from testing on one benchmark model to testing across real project deliveries, you quickly discover a gap between what the standards say a rail model should contain and what teams actually export.

Here is what we learned about how rail models use IFC Alignment, how we select which elements to check, and the new visual indicators we added to take the guesswork out of linear validation.


1. How Many Rail Models Actually Use IfcAlignment?

In theory, IFC 4.3 puts IfcAlignment at the heart of every linear infrastructure project.

In practice, fewer delivered models than you might expect actually contain a clean, usable IfcAlignment. Across the rail datasets we have inspected and tested:

If an automated checker assumes every rail model has a textbook IfcAlignment sitting at Top of Rail, it will fail on most real-world files.

That is why we built a layered alignment fallback into BIM Checker:

  1. First, it automatically probes the iModel for native alignment entities (IfcAlignment / bis.Alignment).
  2. Second, if no native alignment is present—or if a project wants to test against a specific route—you can import a simple JSON or GeoJSON centreline (or use a configured corridor in Asset & Context Studio).

The result: the same clearance and gauging checks work whether your model is pure IFC 4.3 or a legacy federation still catching up.


2. How Is IFC Alignment Actually Used?

In a building, checks are anchored to floors. In a railway, there are no floors—everything is relative to the continuous 3D curve of the track.

We use the alignment as the 3D spine for the entire check:

  1. Sweeping the True Clearance Profile: Instead of drawing a crude rectangular box around the track, BIM Checker takes the exact 2D clearance shape (such as a kinematic structure gauge or the sloped 25 kV Overhead Contact Line Zone / Current Collection Zone hood) and sweeps it along the 3D track alignment.
  2. Checking True 3D Geometry, Not Bounding Boxes: On a curved railway, a diagonal overbridge or a curved station platform has a huge rectangular bounding box that overlaps the track even when the physical structure is completely clear. By passing the swept alignment corridor directly into Bentley iTwin's native 3D geometry containment engine, we test each element's actual 3D shape against the swept envelope—eliminating diagonal bounding-box false alarms.
  3. Pinpointing Clashes Directly in 3D: Every clash or near-miss is highlighted directly in the 3D iTwin viewport against the swept clearance envelope—reporting the affected zone, measured clearance, and penetration depth—so engineers can click straight to the exact element in 3D rather than hunting through spreadsheets or raw coordinates.

3. How Are Candidate Elements Selected?

A multi-kilometre rail iModel can contain hundreds of thousands of elements—from ballast grains and rail clips to reinforcement bars and temporary voids. Testing every single item against a 3D swept envelope would be slow and noisy.

BIM Checker selects candidates using a two-stage funnel:

  1. The Rule Harvester (Metadata & Classification):
    Each rule starts with a targeted query (for example, looking for bridges, gantries, OLE masts, parapets, platforms, or lineside fencing). Because every project names and classifies elements slightly differently, teams can override the harvester filter directly in the UI without writing code.
  2. The 3D Spatial Corridor Filter:
    To make sure nothing sitting near the track is missed due to an unexpected IFC class name, BIM Checker also queries iTwin's 3D Spatial Index within a corridor buffer around the alignment—while automatically filtering out non-physical noise like openings, voids, rebar/tendons, and checker helper graphics.

This keeps checks fast while ensuring that if a physical object is near the railway, it gets tested.


4. Helpful Indicators: Taking the Guesswork Out of "Why Didn't That Run?"

One of the biggest frustrations with automated checking tools is silent failure—when a rule returns zero results and leaves you wondering whether the model passed or the filter simply didn't match anything.

We have added several helpful indicators across the interface to make every run transparent:


What's Next?

With alignment discovery, true 3D swept containment, and clear readiness indicators in place, BIM Checker is ready for the next wave of linear rail checks—including 25 kV OLEZ/CCZ electrification clearances, platform-to-rail gauging, and lineside asset verification across diverse real-world datasets.

Explore the live application at bim-check.itwin.app or review the Data Readiness Troubleshooting Guide.