openbim-ifc-dotnet
The OpenBim.Ifc NuGet package: .NET bindings for openbim-ifc over its versioned C ABI.
| Status | Implemented |
| Latest release | 0.13.0 (2026-11-09) |
| Registries | NuGet OpenBim.Ifc |
| API documentation | rustdoc |
| Source | crates/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 inNative/NativeMethods.cswith 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
LISTof 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 onaxiolid-model0.3.17 or older refuses1.5.
Added (#603)
SurfaceColour.Sourcecan bematerialSet,SourceEntitythen the set (IfcMaterialLayerSet,IfcMaterialProfileSet,IfcMaterialConstituentSetorIfcMaterialList, or a usage of one (IfcMaterialLayerSetUsage,IfcMaterialProfileSetUsageand itsTapering)), and the new last parameterSourceMaterialslists 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)
representationacceptsReference, the void geometry of an IFC4 Reference View opening.
Semver: patch (additive).
Full history: crates/openbim-ifc-dotnet/CHANGELOG.md