BIMsurfer-before2019 icon indicating copy to clipboard operation
BIMsurfer-before2019 copied to clipboard

Not able to run the load from server option in example ( index.html file in root folder )

Open irshadgit opened this issue 7 years ago • 3 comments

I am trying to run the BIMsurfer index.html example given in root folder. I have done the following things for running this.

  • Served the root folder using node http server module
  • Changed the script loading type to "module" from "type/javascript" for ES06 compatibility
  • Changed the script loading url to my BIMServer app path
  • Used Chrome 64 beta for ES06 full support
  • Enabled ES06 in chrome

Even after doing the above steps I get the following error

Uncaught ReferenceError: BimServerClient is not defined at loadFromBimserver (index.html:39) at HTMLButtonElement.loadProjectsBtn.onclick (index.html:119)

What could be the issue ?

My BIMServer version is bimserverwar-1.5.92 and I have started server from war file given in the release section. Does the war contain BIMSurfer ? Do I need to add any steps while installing BIMServer ? I get 404 when I try http://myBimIP/apps/bimsurfer/ does this ring any bells ?

Am I missing anything here ?

irshadgit avatar Jan 03 '18 12:01 irshadgit

screenshot from 2018-01-03 17-51-55

irshadgit avatar Jan 03 '18 12:01 irshadgit

This is really frustrating it seems no body cares about the issue, the examples in the docs directory doesn't event work. I'm wondering why you guys put them on line and leave them broken? And without any reply? I have tried make the index.html working but no luck for the loadFromServer.html, which has the same loading logic as the home readme. I have tried to follow the source code, the lib code and make changes, but finally stopped at model.getTree(), it returns null (Too much for me to dig in) But I'm sure I passed the right parameters, as I done successfully in example_BIMServer.html (I made changes but well, it works only after corrections)

geohuz avatar Jul 17 '18 05:07 geohuz

I have the same problem. model.getTree() returns null after loading model

rushan-zagidullin avatar Aug 08 '18 09:08 rushan-zagidullin