From e035a30ae21da87199b45288db7b0bf40f1f1b54 Mon Sep 17 00:00:00 2001 From: Andy Ward Date: Mon, 17 Dec 2018 16:31:29 +0000 Subject: [PATCH] Changed Geometry example to set the ModelProviderFactory Otherwise SaveAs(xbimFile...) would fail --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index a17ba4403..34f8ad173 100644 --- a/README.md +++ b/README.md @@ -179,6 +179,9 @@ using [Xbim.WebUI](http://docs.xbim.net/XbimWebUI/) const string fileName = @"SampleHouse4.ifc"; var wexBimFilename = Path.ChangeExtension(fileName, "wexBIM"); var xbimDbFilename = Path.ChangeExtension(fileName, "xBIM"); + +// Make sure we are using an IModel implementation that supports saving of '.xbim' files +IfcStore.ModelProviderFactory.UseHeuristicModelProvider(); using (var model = IfcStore.Open(fileName)) {