-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: Reading File; CreateContext() crashes #120
Comments
Hi Martin, |
I've opened the file with the latest version of xplorer and while there are a few warnings and two errors I do not get the crash, so I'm suspecting you are not working on the develop branch. |
Yes. I was able to open it in xplorer... PS. I am facing another issue with IIfcElementQuantities. Could you please give me a quick hint how to read all the quantities from the IFC? I can get custom Psets easily but not the Quantities :/ |
Please, see the documentation for IfcPropertySetDefinition. |
@martin1cerny My fault.. It works |
I have tested the Develop Branch and it is not the problem. I have also checked the definition of the CreateContext() function in the source C# file but I still don't understand following. When the Xplorer loads an IFC file and finds some errors it skips the problematic instances and continues loading the file. The errors are later just reported in the log file. If I start the context.CreateContext() function from my code and it runs in some error the function just crashes. I don't see a way how to continue loading after an error is hit. Could you please give me one an additional explanation how to deal with it? var context = new Xbim3DModelContext(model); |
Those two issues are related |
Duplicate of #135 - Tracking that one instead |
Hello
xBim is an excellent tool. But after a couple months, I run into a problem.
I can not open one Solibri Optimizer processed IFC file.
Do guys know how to deal with it?
Problem:
IfcStore model = IfcStore.Open(ifcFileName);
if (model.GeometryStore.IsEmpty)
{
var context = new Xbim3DModelContext(model);
context.CreateContext(); // Crashes here
}
StackTrace:
at BRepOffsetAPI_MakePipe.{ctor}(BRepOffsetAPI_MakePipe* , TopoDS_Wire* , TopoDS_Shape* )
at Xbim.Geometry.XbimGeometryCreator.CreateGrid(IIfcGrid grid)
at Xbim.ModelGeometry.Scene.Xbim3DModelContext.WriteShapeGeometries(XbimCreateContextHelper contextHelper, ReportProgressDelegate progDelegate, IGeometryStoreInitialiser geometryStore, XbimGeometryType geomStorageType) in c:\BuildAgent\work\860c3b913b6c647f\Xbim.ModelGeometry.Scene\Xbim3DModelContext.cs:line 1136
at Xbim.ModelGeometry.Scene.Xbim3DModelContext.CreateContext(ReportProgressDelegate progDelegate, Boolean adjustWcs) in c:\BuildAgent\work\860c3b913b6c647f\Xbim.ModelGeometry.Scene\Xbim3DModelContext.cs:line 678
at UnitTests.GeoReader.ReadGeo(String ifcFileName) in C:...\01_Code\99_Tests_UnitTests\xbimm.cs:line 33
Versions of xBIM Packages:
Minimal file to reproduce the issue:
Files content is not public but could be sent per private message.
The text was updated successfully, but these errors were encountered: