Skip to content

openbim-ifc-dotnet ​

The OpenBim.Ifc NuGet package: .NET bindings for openbim-ifc over its versioned C ABI.

StatusImplemented
Latest release0.13.0 (2026-11-09)
RegistriesNuGet OpenBim.Ifc
API documentationrustdoc
Sourcecrates/openbim-ifc-dotnet/

Overview ​

The OpenBim.Ifc NuGet package: .NET bindings for openbim-ifc (#327).

The binding is C#, in dotnet/OpenBim.Ifc/: P/Invoke over the versioned C ABI of openbim-ifc-capi (openbim_ifc_v0_1_*), whose shared library the package ships per runtime identifier under runtimes/<rid>/native/. It adds calling-convention glue only (ADR 0013): every refusal and every error code comes from the same Rust core the other bindings use.

This crate holds no Rust binding code. It exists so the package has what every other binding has -- a version in a manifest the release tooling reads, a changelog, a openbim-ifc-dotnet-v* release tag and a reference page -- and so its tests can hold the C# source to the two contracts it depends on without a .NET SDK:

  • every openbim_ifc_v0_1_* function and status code of the C header is declared in Native/NativeMethods.cs with the header's parameter types, and every struct with its fields in order;
  • every domain record of the shared binding core has a C# record with the same fields in the same order, since a record crosses the C ABI as a LIST of its field values with no names.

The behaviour is tested from C# against the packed .nupkg by scripts/check-dotnet.py.

Changes ​

Latest release, 0.13.0 (2026-11-09):

Changed (wire format 1.5) ​

  • The geometry graph payload (#367) may be Axiolid's wire format 1.5, written only when a graph holds a ruled surface (axiolid/kernel#402); every other graph keeps its version. The newest version the build advertises (GEOMETRY_FORMAT_VERSION) is "1.5". A reader on axiolid-model 0.3.17 or older refuses 1.5.

Added (#603) ​

  • SurfaceColour.Source can be materialSet, SourceEntity then the set (IfcMaterialLayerSet, IfcMaterialProfileSet, IfcMaterialConstituentSet or IfcMaterialList, or a usage of one (IfcMaterialLayerSetUsage, IfcMaterialProfileSetUsage and its Tapering)), and the new last parameter SourceMaterials lists the materials of the set that colour the item: every one, or the constituents its shape aspects name (ascending id, distinct); empty for other sources.
  • Needs the C library of ABI 0.1.24.

Semver: minor (pre-1.0 breaking: a record parameter is added).

Changed (#651) ​

  • representation accepts Reference, the void geometry of an IFC4 Reference View opening.

Semver: patch (additive).

Full history: crates/openbim-ifc-dotnet/CHANGELOG.md

Dual-licensed under AGPL-3.0-or-later or a commercial licence. ISO and CEN standards material is not redistributed.