Build Status (develop branch):
This library is an implementation of the BuildingSMART (BCF-XML format)[https://github.com/BuildingSMART/BCF-XML/tree/release_3_0/Documentation] for .net. It supports BCF2.0 and 2.1.
XbimBCF is part of the Xbim Toolkit, but this library can be used independently of the Essentials BIM libararies.
var bcfZipData = File.OpenRead("yourfile.bcfzip");
var bcf = Xbim.BCF.BCF.Deserialize(bcfZipData);
foreach(var topic in bcf.Topics)
{
// Access the visualisations, comments etc
}
In order to create a BCF, you will need to instantiate various objects to form the BCF object.
Please look in Xbim.BCF.Tests.BCFTestsXMLHelper to see examples of each object (which will vary depending on your usage).
Once created, call BCF.Serialize() to get a stream of your BCF file.
We recommend Visual Studio 2019 (or later) or Visual Studio Code to build the solution.
This XBIM library is made available under the CDDL Open Source licence.
For bugs, please raise an Issue in Github.
Please raise an issue ahead of any PR.