You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great if someone could help me on the following issue. When i use CreateContext in the following example, the application hangs on exit.
IfcStore _model;
Xbim3DModelContext _context;
using (_model = IfcStore.Open(filePath))
{
// Create 3D model context to extract geometry
_context = new Xbim3DModelContext(_model);
_context.CreateContext();
// Start hierarchy traversal from the project level
var project = _model.Instances.FirstOrDefault<IIfcProject>();
if (project == null)
{
Console.WriteLine("No project found in the IFC file.");
return;
}
Console.WriteLine($"Project: {project.Name}");
}
If I comment the _context.CreateContext() the application exits properly but yes as expected the geometry is not fetched properly.
Kindly point me in the right direction if i am not doing something correctly.
Thank you
Ram.
The text was updated successfully, but these errors were encountered:
Thank you @andyward - The version I am using is the one from NuGet which is version 5.1.796 for Xbim.Geometry and version 6.0.489 for Xbim.Essentials. Should I be compiling the latest master branch from git and using that instead ?
Hello,
It would be great if someone could help me on the following issue. When i use CreateContext in the following example, the application hangs on exit.
If I comment the _context.CreateContext() the application exits properly but yes as expected the geometry is not fetched properly.
Kindly point me in the right direction if i am not doing something correctly.
Thank you
Ram.
The text was updated successfully, but these errors were encountered: