xBIM Essentials Sample application

Rating:        Based on 3 ratings
Reviewed:  3 reviews
Downloads: 0
Released: Jun 6, 2013
Updated: Jun 6, 2013 by SteveLockley
Dev status: Stable Help Icon

Available Downloads

There are no downloads associated with this release.

Release Notes

This is a sample application built on xBIM Essentials
It is a good starting place to understand how to make a basic start with xBIM.
We recommend if you want to build your own applications to use the NUGET distribution.
This is built on the NUGET distribution but allows you to download, modify and compile a sample application quickly.
HelloxBIM simply opens an IFC file as a xBIM model, counts the instances, adds a new door and exports as IFC, the total code for this is shown below. We believe it demonstrates the power and simplicity of the xBIM approach for .NET developers.

Sample code
using (Xbim.IO.XbimModel model = new Xbim.IO.XbimModel())
{
    model.CreateFrom("BIM Logo.ifc");
    model.Open("BIM Logo.xBIM", Xbim.XbimExtensions.XbimDBAccess.ReadWrite);
    Console.WriteLine(model.Instances.Count + " instances read");
    using (Xbim.IO.XbimReadWriteTransaction txn = model.BeginTransaction())
    {
        var door = model.Instances.New<Xbim.Ifc2x3.SharedBldgElements.IfcDoor>();
        door.Name = "New Door";
        txn.Commit();
        model.SaveAs("BIM Logo with Door", Xbim.XbimExtensions.Interfaces.XbimStorageType.IFC);
    }
    model.Close();
}

Reviews for this release

     
test test
by chenmy on May 27, 2014 at 10:35 AM
     
test my company.
by edilsondneto on Jul 11, 2013 at 3:09 AM
     
Hi Steve, Thanks for your help. I am new to this project. This is very helpful! Daniel
by danielblue on Jun 17, 2013 at 4:00 PM