Skip to content

Model.load(..) fails if called with deep=true #32

@GiacomoManzoli

Description

@GiacomoManzoli

Hi,

i've noticed that Model.load doesn't call the callback if called with deep=true.
i.e.:

const client = new bimserverapi.BimServerClient(SERVER_ADDRESS);
// ...
client.getModel(
                poid,
                roid,
                schema,
                true, // deep
                loadedModel => {
                    console.log("Model loaded!");
                },
                "TestModel"
            );

this is due to the missing query param in the download call:

othis.bimServerApi.call("ServiceInterface", "download", {
roids: [othis.roid],
serializerOid: serializer.oid,
sync: false
}, function (topicId) {

This is also confirmed by the BIMServer, which logs

12:06:45 ERROR [qtp669700766-34]: Missing parameter: download -> query      

when the above code is executed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions