Open GiacomoManzoli opened 5 years ago
I've tried to use the Model but i've notice that if i call the load method:
Model
load
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? https://github.com/opensourceBIM/BIMserver-JavaScript-API/blob/584ba60e71fe32a470109883daff5c96c05bb99b/model.js#L40-L44
I've tried to use the
Model
but i've notice that if i call theload
method: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
load
method? To execute a standard pre-load query or it should take the query as a parameter? https://github.com/opensourceBIM/BIMserver-JavaScript-API/blob/584ba60e71fe32a470109883daff5c96c05bb99b/model.js#L40-L44