Xbim.WexBlazor 1.0.4

There is a newer version of this package available.
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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Xbim.WexBlazor" Version="1.0.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Xbim.WexBlazor" Version="1.0.4" />
                    
Directory.Packages.props
<PackageReference Include="Xbim.WexBlazor" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Xbim.WexBlazor --version 1.0.4
                    
#r "nuget: Xbim.WexBlazor, 1.0.4"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Xbim.WexBlazor@1.0.4
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Xbim.WexBlazor&version=1.0.4
                    
Install as a Cake Addin
#tool nuget:?package=Xbim.WexBlazor&version=1.0.4
                    
Install as a Cake Tool

Xbim.WexBlazor

NuGet NuGet Downloads Build Status License: MIT

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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