Quick Start

This is a quick start guide - i.e. this is intended for those who are exprienced in web development. Check out the detailed instructions for a more detailed explanation.

  1. Use a FileReader

  2. Create a new BIMWHALE object

  3. Call parseIfcFile()

var file = document.getElementById('myFile').files[0];
var reader = new FileReader();
reader.onload = function(e) {
    var lines = e.target.result.split(/\r\n|\n/);
    var ifcFile = new BIMWHALE.IfcFile(lines, config);
    var ifcEntites = ifcFile.parseIfcFile();
};
reader.readAsText(file);

Last updated