Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No loaded ifc model is displayed #259

Open
astraube opened this issue Aug 2, 2018 · 3 comments
Open

No loaded ifc model is displayed #259

astraube opened this issue Aug 2, 2018 · 3 comments

Comments

@astraube
Copy link

astraube commented Aug 2, 2018

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)

@phiqus
Copy link

phiqus commented Aug 30, 2018

also stuck here...

@sigurdne
Copy link

sigurdne commented Aug 30, 2018

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

@phiqus
Copy link

phiqus commented Aug 30, 2018

I managed to make the error dissapear, by changing the source code in the BIMsurfer src: BimServerGeometryLoader.js. see below:

github_259

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:
github_259-2

I am running BimSurfer on Node.js (v8.11.4) application in Express. seems to work fine on most examples.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants