Skip to content

Commit

Permalink
Changed Geometry example to set the ModelProviderFactory
Browse files Browse the repository at this point in the history
Otherwise SaveAs(xbimFile...) would fail
  • Loading branch information
andyward authored Dec 17, 2018
1 parent 936a68c commit e035a30
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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))
{
Expand Down

0 comments on commit e035a30

Please sign in to comment.