Open astraube opened 6 years ago
also stuck here...
I was able to make it start by loading the bimserverclient from downloaded source. I have a modified clone here: https://github.com/sigurdne/BIMsurfer There are still issues, but it connects and download the model
I managed to make the error dissapear, by changing the source code in the BIMsurfer src: BimServerGeometryLoader.js. see below:
Now the model loads, i can see it in the Chrome console using console.log(). However, no geometry is rendered. NOTE: the latest version of BimSurfer seems to have changed the above function completely. I am trying to use an older version to work - which is working in my current deployed BimServer - which is the one I query for model data.
UPDATE: Yes, Its now rendering, with new code as you mentioned above - with the new function changed + possibly other changes. My current setup on deployed BIMserver:
I am running BimSurfer on Node.js (v8.11.4) application in Express. seems to work fine on most examples.
No model appears in BIMSurfer. The following error appears in the browser console. Has anyone ever experienced this?
Uncaught TypeError: object.getGeometry is not a function at Properties.selected (eval at globalEval (bimviews.js?_v=0.0.106:338),:59:11)
at eval (eval at globalEval (bimviews.js?_v=0.0.106:338), :49:4)
at Array.forEach ()
at EventRegistry.trigger (bimviews.js?_v=0.0.106:16795)
at Project.selected (eval at globalEval (bimviews.js?_v=0.0.106:338), :48:25)
at Node.ProjectTree.treeItemClick [as onClick] (eval at globalEval (bimviews.js?_v=0.0.106:338), :265:11)
at Node.linkClick (bimviews.js?_v=0.0.106:15444)
at HTMLAnchorElement.dispatch (bimviews.js?_v=0.0.106:4732)
at HTMLAnchorElement.elemData.handle (bimviews.js?_v=0.0.106:4544)
AND
Uncaught TypeError: Cannot read property 'then' of undefined at BimServerGeometryLoader.start (BimServerGeometryLoader.js?bust=1533192504001:125) at BimServerModelLoader.loadOids (BimServerModelLoader.js?bust=1533192504001:82) at BimServerApiPromise.callback (BimServerModelLoader.js?bust=1533192504001:16) at BimServerApiPromise.fire (bimserverapipromise.js:56) at bimServerApi.call (model.js:744) at multiCall (bimserverclient.js?_v=1533192504192:877) at getJson (bimserverclient.js?_v=1533192504192:653) at XMLHttpRequest.xhr.onload (bimserverclient.js?_v=1533192504192:538) bimserverclient.js?_v=1533192504192:53 [default] Getting serializer info bimserverclient.js?_v=1533192504192:255 Uncaught TypeError: callback is not a function at call (bimserverclient.js?_v=1533192504192:255) at multiCall (bimserverclient.js?_v=1533192504192:877) at getJson (bimserverclient.js?_v=1533192504192:653) at XMLHttpRequest.xhr.onload (bimserverclient.js?_v=1533192504192:538)