Bentley Web Services Gateway Web API - Download DWG with External References

Hello,

I am trying to set up a file download call via the API on a DWG file with external references but it only downloads the parent file. The downloaded DWG will keep insertion points for the referenced files but no geometry is included and no other files are included in the export.

The API call is made from FME using direct HTTP call. The inbuilt ProjectWise reader in FME seems to have the same limitation.

Using the API call: GET v2.5/Repositories/{repositoryId}/{schema}/{class}/{instanceId}/$file. 

The Export function in ProjectWise Explorer exports the parent file along with all external references which is the desired behavior.

Can anyone please confirm if the API can do this?

If not, is there any alternative to achieve this process automatically?

Many thanks
Parents
  • in projectwise web when u download a file that has references you get prompted if you want to download them also, and they all get downloaded as a zip. the class for a file that has references is called LogicalSet rather than Document.

    i have had had some success with the following API call which i was able to figure out with postman:
    Repositories/{repositoryId}/PW_WSG/Document!poly/?$filter=(PW_WSG.SetDocument-backward-PW_WSG.LogicalSet.$id+eq+'{instanceId}')&$select=*

Reply
  • in projectwise web when u download a file that has references you get prompted if you want to download them also, and they all get downloaded as a zip. the class for a file that has references is called LogicalSet rather than Document.

    i have had had some success with the following API call which i was able to figure out with postman:
    Repositories/{repositoryId}/PW_WSG/Document!poly/?$filter=(PW_WSG.SetDocument-backward-PW_WSG.LogicalSet.$id+eq+'{instanceId}')&$select=*

Children
No Data