bimvie.ws
bimvie.ws copied to clipboard
bimvie.ws dependent BIMserver ?
Hi ,
bimvie.ws and BIMserver can be installed on different machines ?
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.
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.
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()));
<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