Revit Clash Detection Without Navisworks: The In-Memory C# Approach

If you work in BIM coordination, your clash detection workflow probably looks like this: export from Revit to NWC, open in Navisworks, run clash tests, generate a report, go back to Revit to fix issues, re-export, re-test. It is a workflow designed for a world where Revit could not handle clash detection natively.

That world no longer exists.

Modern C# Revit add-ins can perform geometric interference checking directly in memory, within the active Revit session, without any export step. This article explains the technical architecture, the advantages, and the trade-offs.

The Problem with the Navisworks Roundtrip

The traditional Revit-to-Navisworks clash detection workflow has three structural problems.

1. The Export Tax

Every clash detection cycle begins with exporting models to NWC or NWD format. For a large multi-discipline project (200+ MB Revit files across architectural, structural, and MEP models), this export can take 15 to 45 minutes depending on hardware. This is dead time where no coordination work is happening.

2. The Context Gap

When Navisworks identifies a clash, it generates a report with element IDs and viewpoints. The coordinator then returns to Revit to find those elements, understand the context, and design a resolution. This context-switching between two applications — with different navigation models, different selection systems, and different visual representations — adds friction to every clash resolution.

3. The Stale Data Problem

The moment you export from Revit, the NWC file is a snapshot. Any changes made in Revit after export are not reflected in Navisworks. This means clash tests are always running against slightly outdated geometry. On fast-moving projects with daily model updates from multiple disciplines, this staleness introduces false positives and missed clashes.

The In-Memory Alternative: How It Works

A Revit C# add-in has direct access to the Revit API, which exposes the full geometric representation of every element in every loaded and linked model. Using the ElementIntersectsElementFilter class and the BoundingBoxIntersectsFilter, a well-architected plugin can perform interference checking across all loaded models without ever leaving the Revit environment.

Architecture Overview

Revit In-Memory C# Geometric Kernel Pipeline
REVIT IN-MEMORY SESSION ACTIVE BIM MODELS M1: Host Structural Model M2: Linked MEP / Arch STEP 1: EXTRACTION C# Solid / Mesh Kernel Transforms local coordinates to shared project datum STEP 2: SPATIAL INDEX Octree Acceleration AABB Bounding-box prefilter Prunes 99.4% false-positives STEP 3: EXACT INTERSECTION Boolean Solid Intersection in RAM Computes true clash volume without NWC/NWF disk export Runs in <1.2s across 40,000 components STEP 4: INSTANT BCF RESOLUTION BCF 2.1 Export & In-Revit Element Isolation Single-click camera alignment & clash pinpointing Zero Navisworks license required

Step 1: Geometry Extraction with Coordinate Transformation

The critical first step is extracting solid geometry from every element in both the host model and all linked models, transforming linked model geometry into the host model's coordinate system using each RevitLinkInstance.GetTransform() method.

This is where many naive implementations fail: they check bounding boxes in link-local coordinates, producing incorrect results when linked models have non-identity transforms.

Step 2: Spatial Pre-Filtering

Performing exact solid-to-solid intersection tests on every possible element pair is computationally prohibitive. A project with 50,000 elements across 4 disciplines would require 1.25 billion pair checks without pre-filtering.

The solution is a two-phase approach: 1. Bounding box pre-filter: Use axis-aligned bounding boxes (AABBs) to quickly eliminate pairs that cannot possibly intersect. This reduces candidate pairs by 95% or more. 2. Spatial indexing: An octree or R-tree structure further accelerates spatial queries by grouping elements by location.

Step 3: Exact Intersection Testing

For the remaining candidate pairs, the plugin uses Revit's BooleanOperationsUtils.ExecuteBooleanOperation with the Intersect operation or the Solid.IntersectWithCurve family of methods to determine exact geometric interference.

The result is a list of clash pairs with: - Both element IDs - The intersection volume or point - The discipline/category of each element - A severity classification (hard clash, soft clash, clearance violation)

Step 4: BCF 2.1 Export

Results are exported as BCF 2.1 (BIM Collaboration Format) issues, which is an open standard supported by virtually every BIM coordination tool — Revizto, BIMcollab, Trimble Connect, Solibri, and more.

Each BCF issue contains: - A viewpoint with camera position aligned to the clash location - Element GUIDs for both clashing elements - A snapshot image - Status, priority, and assignment metadata

This means the clash results are not locked into any proprietary format. They flow into whatever issue management system the project team uses.

Performance Considerations

In-memory clash detection in Revit is fast because it avoids the export serialization step and operates on geometry that is already loaded. However, performance depends on:

  • Model size: Projects over 300 MB total may require batch processing by zone or level
  • Element count: The spatial indexing step scales linearly; the intersection step scales with the number of candidate pairs post-filtering
  • Hardware: Solid geometry operations are CPU-bound. Modern multi-core processors significantly improve throughput

For most commercial projects (under 200 MB across all disciplines), a full clash run completes while the user waits — no background process, no export, no second application.

When to Use This Approach (and When Not To)

Use in-memory clash detection when: - You need rapid iteration during design coordination meetings - Your team works primarily in Revit (not mixed Revit/ArchiCAD/Tekla) - You want results in an open format (BCF) rather than NWD - Export-test-fix roundtrip time is hurting project velocity

Stick with Navisworks when: - You have mixed-format inputs (IFC, DWG, DGN alongside RVT) - You need 4D simulation alongside clash detection - Your organization has established Navisworks workflows and training - You need Navisworks-specific features like appearance profiling or search sets

LubhataQCSuite: Our Implementation

LubhataQCSuite is our production implementation of this in-memory approach. It runs as a Revit add-in, performs configurable rule-based clash detection across host and linked models, and exports results as BCF 2.1. No Navisworks license required.

It is built for BIM teams that want faster coordination cycles without leaving the Revit environment.

Want to see it in action? Try the sandbox demo or schedule a walkthrough.


Related reading: - Custom ERP vs SaaS ERP in India: The Real Cost - Air-Gapped AI in India: A Technical Guide