Open andremansour opened 6 months ago
What is the exact error message?
The exact message is "Failed to load IFC file: failed to load Xbim.Geometry.Engine64.dll"
Which version of Revit is this? Or is it multiple?
I'm assuming you've ruled out the usual deployment issues that can cause this issue: https://github.com/xBimTeam/XbimGeometry/issues/312#issuecomment-778184952
In Revit is sometimes due to a clash of dependencies with other addins loaded into revit. E.g. your addin and another each use Microsoft.Extensions.Logging but with different versions and you can get assembly binding issues that cause the xbim dlls to fail to load. Try unloading other addins to test.
A useful tool to see what is going on is Microsoft's fuslogvw
Sorry for the late response. I am using Revit 2024. Also, I have made sure that all my .dll files are up to par with the ones that Revit is using. Currently I am using addin manager and then loading up my addin using it. I tried using fuslogvw however nothing is coming up.
Which version of Revit is this? Or is it multiple?
I'm assuming you've ruled out the usual deployment issues that can cause this issue: #312 (comment)
In Revit is sometimes due to a clash of dependencies with other addins loaded into revit. E.g. your addin and another each use Microsoft.Extensions.Logging but with different versions and you can get assembly binding issues that cause the xbim dlls to fail to load. Try unloading other addins to test.
A useful tool to see what is going on is Microsoft's fuslogvw
please check this error report.
Are you sure you enabled fuslogvw? You need to turn it on to log failed assembly bindings.
You can't tell anything from that stack trace. Fuslogvw will tell you what assembly actually failed to bind. In all likelihood it is the ILogger though.
The exact message is "Failed to load IFC file: failed to load Xbim.Geometry.Engine64.dll"
You may try also #312. This ensures to copy correct .dll in output folder after build. But your problem can be different.
I have tried to add the Xbim.Geometry.Engine64.dll to the project but it still doesn't work.
Make you sure that for this file you use property:
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
Or instead of PreserveNewest use Always.
@andremansour Did you get this resolved?
I am trying to create a revit plugin using xbim. I want to load an ifc file to a model viewer using WPF and xbim however I am getting the following error:
Failed to load IFC file: failed to load Xbim.Geometry.Engine64.dll
here are the versions of the packages I am using:
Xbim.Common version=6.0.445 Xbim.Geometry version=5.1.437 Xbim.Geometry.Engine.Interop version=5.1.437 Xbim.Ifc version=6.0.445 Xbim.Ifc2x3 version=6.0.445 Xbim.Ifc4 version=6.0.445 Xbim.IO.MemoryModel version=6.0.445 Xbim.ModelGeometry.Scene version=5.1.437 Xbim.Tessellator version=6.0.445 Xbim.WindowsUI version=5.1.228
I have tried to add the Xbim.Geometry.Engine64.dll to the project but it still doesn't work.
here is my code for loading the ifc file:
xaml
xaml.cs