XbimGeometry icon indicating copy to clipboard operation
XbimGeometry copied to clipboard

Xbim context.CreateContext() crashes when loading ifc file

Open AllanCrow opened this issue 4 years ago • 3 comments

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.

AllanCrow avatar Jul 21 '21 03:07 AllanCrow

Hi @AllanCrow,

feel free to send the file to my personal email: [email protected] or [email protected]

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

CBenghi avatar Jul 21 '21 07:07 CBenghi

Thank you, I have sent via dropbox

AllanCrow avatar Jul 26 '21 02:07 AllanCrow

Hello,

Any update on this issue?

kovacevski avatar May 12 '22 07:05 kovacevski