Xbim.WexBlazor
1.0.4
See the version list below for details.
dotnet add package Xbim.WexBlazor --version 1.0.4
NuGet\Install-Package Xbim.WexBlazor -Version 1.0.4
<PackageReference Include="Xbim.WexBlazor" Version="1.0.4" />
<PackageVersion Include="Xbim.WexBlazor" Version="1.0.4" />
<PackageReference Include="Xbim.WexBlazor" />
paket add Xbim.WexBlazor --version 1.0.4
#r "nuget: Xbim.WexBlazor, 1.0.4"
#:package Xbim.WexBlazor@1.0.4
#addin nuget:?package=Xbim.WexBlazor&version=1.0.4
#tool nuget:?package=Xbim.WexBlazor&version=1.0.4
Xbim.WexBlazor
A Blazor component library that wraps the @xbim/viewer JavaScript library for use in Blazor WebAssembly applications. This library allows you to display 3D building models in the wexBIM format.
Project Structure
Xbim.WexBlazor: The component library project
- Components/: Blazor components
- Interop/: JavaScript interop services
- wwwroot/js/: JavaScript interop modules
- wwwroot/lib/: Third-party libraries (xBIM Viewer)
Xbim.WexBlazor.Sample: Sample application showcasing the library
Features
- Base JavaScript interop infrastructure
- Structured approach to wrapping JavaScript libraries
- xBIM Viewer component for displaying wexBIM 3D models
- Controls for loading models, zooming, and manipulating the view
Installation
Install the package from NuGet:
dotnet add package Xbim.WexBlazor
Or via the Visual Studio Package Manager:
Install-Package Xbim.WexBlazor
Getting Started
Using the Components
Then add the following to your _Imports.razor file:
@using Xbim.WexBlazor
@using Xbim.WexBlazor.Components
Example usage of the xBIM Viewer component:
<XbimViewerComponent Id="myViewer"
Width="800"
Height="600"
BackgroundColor="#F5F5F5"
ModelUrl="models/SampleModel.wexbim"
OnViewerInitialized="HandleViewerInitialized"
OnModelLoaded="HandleModelLoaded" />
@code {
private async Task HandleViewerInitialized(string viewerId)
{
// The viewer has been initialized
}
private async Task HandleModelLoaded(bool success)
{
// The model has been loaded
}
}
wexBIM Format
The viewer requires 3D models in the wexBIM format. You can convert IFC models to wexBIM using tools from the XbimEssentials library.
Development
To build and run the sample project:
git clone https://github.com/Ibrahim5aad/Xbim.WexBlazor.git
cd Xbim.WexBlazor
dotnet build
dotnet run --project src/Xbim.WexBlazor.Sample/Xbim.WexBlazor.Sample.csproj
License
MIT
Acknowledgements
This project uses the @xbim/viewer JavaScript library from the xBimTeam.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net9.0
- Microsoft.AspNetCore.Components.Web (>= 9.0.1)
- Microsoft.Web.LibraryManager.Build (>= 3.0.71)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.7.2 | 122 | 2/23/2026 |
| 1.7.1 | 98 | 2/18/2026 |
| 1.7.0 | 120 | 1/24/2026 |
| 1.6.0 | 112 | 1/23/2026 |
| 1.5.1 | 119 | 1/22/2026 |
| 1.5.0 | 105 | 1/21/2026 |
| 1.4.0 | 105 | 1/20/2026 |
| 1.3.1 | 104 | 1/14/2026 |
| 1.3.0 | 110 | 1/14/2026 |
| 1.2.0 | 109 | 1/13/2026 |
| 1.1.0 | 112 | 1/12/2026 |
| 1.0.5 | 109 | 1/9/2026 |
| 1.0.4 | 113 | 1/9/2026 |
| 1.0.3 | 104 | 1/9/2026 |
| 1.0.2 | 107 | 1/9/2026 |
| 1.0.1 | 103 | 1/9/2026 |
| 1.0.0 | 115 | 1/9/2026 |