Skip to content

Model.load missing query param #28

@GiacomoManzoli

Description

@GiacomoManzoli

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) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions