Integrating Open CASCADE Technology (OCCT)—the industry-standard open-source C++ B-Rep geometry kernel—into modern .NET (C#) desktop applications usually requires writing fragile, boilerplate-heavy C++/CLI glue code and manually managing OCCT's Handle(Standard_Transient) reference counting against the .NET GC.

I open-sourced OcctCSharpBridge to provide a reusable OCCT 7.9.0 → .NET bridge for CAD, BIM, and engineering applications.

Baseline & Architecture

  • OCCT Version: 7.9.0
  • Native ABI: ABI 5
  • Managed Targets: .NET 8 / 9 / 10 (built with .NET 10 SDK)
  • UI Frameworks: WinForms, WPF, and Avalonia on Windows (win-x64); Avalonia source build on Linux
  • SDK Distribution: Installs as a shared Windows x64 SDK (C:\Program Files\OcctCSharpBridge\SDK\3.0\win-x64 or via OCCTCSHARPBRIDGE_SDK) so consumer apps reference the system SDK directly without duplicating copies across repos.

What It Solves

  • Exposes OCCT B-Rep modeling, boolean operations, STEP/IGES/BREP import & export, and 3D visualization to managed C# code.
  • Eliminates the need for every .NET CAD/BIM team to maintain custom C++/CLI wrappers from scratch.

Current Limitations

  • Official prebuilt binaries target Windows x64 (Linux Avalonia requires building from source).
  • Requires matching the OCCT 7.9.0 runtime.

If you are building CAD/BIM tools in C# / .NET / Avalonia and using Open CASCADE under the hood, feedback and contributions are welcome!