Open Girjesh25 opened 6 years ago
This JSON is a form of COBie. And not all elements are supposed to be translated to COBie.
Hi Martin, i have already developed a BIM solution using wexbim and json file. I have created the Json file with this class CoBieLiteHelper and the web application using the components XbimWebUI. Now there is the new class IfcToCOBieLiteUkExchanger, the structure of the json file is different. At this point i'm not so sure that the XbimWebUI can read correctly the new json file. Is my consideration right or i have not consider something? Have i to modify the XbimWebUI components?
Thanks a lot.
Ciao
Some of the objects are missing from geneated Json file i am using below code.
using (var cobieFile = new FileStream(cobieFileName, FileMode.Create)) { var helper = new CoBieLiteHelper(model, "UniClass"); var facility = helper.GetFacilities().FirstOrDefault();
if (facility != null) { using (var writer = new StreamWriter(cobieFile)) { CoBieLiteHelper.WriteJson(writer, facility); writer.Close(); } } Project1plumbing112.zip