xBimTeam / XbimGeometry

XbimGeometry contains the CLR interop libraries and the c++ engine used to compute the 3D geometry of models.
https://xbimteam.github.io/
Other
260 stars 131 forks source link

Xbim context.CreateContext() crashes when loading ifc file #351

Open AllanCrow opened 3 years ago

AllanCrow commented 3 years ago

Problem: IfcStore model = IfcStore.Open(ifcFileName); if (model.GeometryStore.IsEmpty) { var context = new Xbim3DModelContext(model); context.CreateContext(); // <---------------------------------Crashes here }

I have tried packages: Xbim.Geometry (5.1.430) Xbim.Geometry.Engine.Interop (5.1.430)

When opening my ifc file it crashes at context.CreateContext(); However the same model opens quite successfully in the trial demo software I downloaded.

var model = IfcStore.Open(dlgFileName);
            if (model.GeometryStore.IsEmpty)
            {
                // Create the geometry using the XBIM GeometryEngine
                try
                {
                    var context = new Xbim3DModelContext(model);

                    context.CreateContext();

I can share the ifc file but only via direct transfer

Expected behavior:

Expected ifc model to load and open (ignore errors if they exist in the ifc file)

Please help - I just dont know where else to look other than swapping over to a completely different engine.

CBenghi commented 3 years ago

Hi @AllanCrow,

feel free to send the file to my personal email: claudio@xbim.it or claudio.benghi@gmail.com

I'll keep it available for the rest of the xbim team to investigate. We're having a few issues lately with geometry, that we are trying to address.

Best, Claudio

AllanCrow commented 3 years ago

Thank you, I have sent via dropbox

kovacevski commented 2 years ago

Hello,

Any update on this issue?