bimvie.ws icon indicating copy to clipboard operation
bimvie.ws copied to clipboard

bimvie.ws dependent BIMserver ?

Open lvxiaomu opened this issue 8 years ago • 4 comments

Hi ,

bimvie.ws and BIMserver can be installed on different machines ?

lvxiaomu avatar Sep 22 '16 09:09 lvxiaomu

Yes, just make sure you change the appropriate settings in settings.js (in BIMvie.ws):

  • getBimServerApiAddress, should return the location of the BimServerJavaScriptApi (usually installed on a BIMserver)
  • getBimSurferApiAddress should return the location of BIMsurfer (usually also installed on a BIMserver, but you can host your own, possibly modified, version)
  • getStaticServerAddress, should call the callback function with the address on which the BIMserver API will be available. This is async because some implementation get this address by using I/O
  • getVersion, replace all the code in this method with successCallback(new Date().getTime()); or with a fixed version number.

rubendel avatar Sep 22 '16 10:09 rubendel

getVersion, just add a version number for the loaded file.

myRequest.open("GET", Global.baseDir + "plugin.version", true); this line of code will launch the following request

Request URL:http://localhost:8080/bimvie.ws-bimviews-0.0.57/plugin.version
Request Method:GET
Status Code:404 Not Found
Remote Address:127.0.0.1:8080

I can't find the plugin.version file in the local path.

lvxiaomu avatar Sep 23 '16 06:09 lvxiaomu

That file does not exist, that's why you have to replace the code in the method with either:

successCallback("123");

OR

successCallback((new Date().getTime()));

rubendel avatar Sep 23 '16 06:09 rubendel

image

<script>
  // https://github.com/rgrove/lazyload
  function l(b) {
    var a = m[b], c, f;
       if (a)
         c = a.callback,
         f = a.urls,
         f.shift(),
         h = 0,
         f.length || (c && c.call(a.context, a.obj),
         m[b] = null ,
         n[b].length && j(b))
  }
.....
</script>

the last time, in this part of the code f.length || (c && c.call(a.context, a.obj), c.call is undefined, so it will be wrong

lvxiaomu avatar Sep 23 '16 09:09 lvxiaomu