I've tried to use the Model but i've notice that if i call the load method:
const poid = project.oid;
const roid = project.lastRevisionId;
const schema = project.schema;
return new Promise((resolve, reject) => {
client.getModel(poid, roid, schema, true, (loadedModel) => {
console.log("Model loaded!");
resolve(loadedModel)
},'Test');
});
my callback functions doesn't get called and the BIMServer (v1.5.124) logs this error
18:27:19 ERROR [qtp1492822331-42]: Missing parameter: download -> query
and looking at the source the param is missing. What should be the effect of the load method? To execute a standard pre-load query or it should take the query as a parameter?
|
othis.bimServerApi.call("ServiceInterface", "download", { |
|
roids: [othis.roid], |
|
serializerOid: serializer.oid, |
|
sync: false |
|
}, function (topicId) { |
I've tried to use the
Modelbut i've notice that if i call theloadmethod:my callback functions doesn't get called and the BIMServer (v1.5.124) logs this error
and looking at the source the param is missing. What should be the effect of the
loadmethod? To execute a standard pre-load query or it should take the query as a parameter?BIMserver-JavaScript-API/model.js
Lines 40 to 44 in 584ba60