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

Javascript API not show modal in browser #141

Open
mtariq68 opened this issue Nov 7, 2020 · 1 comment
Open

Javascript API not show modal in browser #141

mtariq68 opened this issue Nov 7, 2020 · 1 comment

Comments

@mtariq68
Copy link

mtariq68 commented Nov 7, 2020

Hi,

I am try to run sample code 👍 import {BimServerClient} from 'http://localhost:8082/bimserverapi/bimserverclient.js';
import {BimServerViewer} from 'http://localhost:8082/bimserverapi/bsviewer/viewer/bimserverviewer.js';

========== var api = new BimServerClient("http://localhost:8082"); api.init(() => { api.login("admin@mydomain","admin", () => {
		});

});

api.call("ServiceInterface", "getProjectByPoid", {poid:66084}, (project) => {
var canvas = document.getElementById("glcanvas");

var bimServerViewer = new BimServerViewer(api, settings, canvas, window.innerWidth, window.innerHeight);

this.bimServerViewer.loadModel(project);
});

but it doesn't show modal. Console output is:

bimserverclient.js:56 [default] Login successful
[default] Login successful
Connecting websocket
WebSocket closed -> CloseEvent {isTrusted: true, wasClean: false, code: 1006, reason: "", type: "close", …}

If can find running code then next I am going build PowerBI custom visuals to show data from BIMServer.

Please help me.

Thanks and best regards,

Tariq

@mtariq68
Copy link
Author

mtariq68 commented Nov 7, 2020

Import statements have been changed to run on my local setup

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

1 participant