I'm trying to learn how to use Xbim in a WPF app to create a 3D view of a model that the user can spin around and view. I load my ifc file in the C# code as follows:
var model = IfcStore.Open("Images/test.ifc");
var context = new Xbim3DModelContext(model);
context.CreateContext();
I then set up a viewport in XAML as follows:
<xbim:DrawingControl3D Name="test3D"></xbim:DrawingControl3D>
I am struggling to work out how to link the two and display the loaded model in the viewport. Would anyone be able to advise / point be towards a good tutorial? If I run the app as stands I can see an empty viewport that I can move around, just need to get the model in there.
Thanks!
You need some more code.
And on the xaml side :