opensourceBIM / bimvie.ws

Javascript client for Building Information Modelling, using open standards like IFC, BCF and BIMSie. Using Bootstrap, BIM Surfer, etc..
GNU Affero General Public License v3.0
171 stars 87 forks source link

admin/console.html (js api) and flat parameter usage #59

Closed raindog closed 7 years ago

raindog commented 7 years ago

Hi! The request below:

{
  "token": "myToken",
  "request": {
    "interface": "Bimsie1LowLevelInterface", 
    "method": "getDataObjectsByType", 
    "parameters": {
      "roid": "524291",
      "packageName": "ifc2x3tc1",
      "className": "IfcElementQuantity",
      "flat": "false"
    }
  }
}

done with the admin/console.html interface against a 1.4.0-FINAL BimServer raises this exception

{
      "__type": "ServerException",
      "message": "Unknown error: null"
    }

If I set the "flat" parmeter to "true" then I get the correct response instead.

TIA

rubendel commented 7 years ago
raindog commented 7 years ago

Ruben, the issues seems fixed on the version 1.5.56 of the server. With the flat flag on, it takes some time to get all the IfcElementQuantity items, but the operation completes.

I must stay on the 1.4 branch for now, but with a little more work, I should get the same result. Thanks.

rubendel commented 7 years ago

Just tested the file you sent, it's working on 1.5. It's actually the formatting of the resulting JSON (about 1.5M) that takes a long time. Just pushed a fix for this in the Console project (it will just skip the formatting for larger results).