Hi guys,
Im trying to retrieve the size of the data exchange when a file is synced to BIM 360. I can get the 'storageSize' of the item versions through the Data management API. However this isnt the information Im interested in. Im trying to retrieve the data size of the small changes to the file each time its synchronised and uploaded to BIM 360.
I thought that by retrieving the model.sync reference from the Webhooks API I would be able to get that information but unfortunately it doesn't seem to be listed in the attributes of that reference.
Is there another way of retrieving the data exchange size when the model is synced?
Kind regards,
Rico
Solved! Go to Solution.
Solved by steven_phung. Go to Solution.
The size of the data exchange file that exists is not changing since the data is not stored as a file in the traditional sense. The data is stored in APS as part of the Data Exchange API. The benefit of this is with a data exchange you can do queries to get the data you need using our GraphQL API and SDK. The downside is we don't know the precise size on disk because of this, its not a concept that maps well to data model as opposed to a file you can count the bytes of easily.
Can you say a little bit more about your use case?
Thanks for the reply Sphung!,
Thats interesting, thanks for the explanation. As I understand it, the traditional method of checking files won't work, however I can extract the data from transmission logs to measure the data being transferred using the GraphQL API?
For context I am trying to assess how much data my organization is exporting to our ACC Hub to calculate our carbon footprint more effectively.
Im going to do some reading on the GraphQL API as I haven't used it before.
Thanks again,
Rico
The GraphQL API will let you run a query to be able to understand what has changed since the last version.
See this page that references it and giver it a shot using the GraphQL Explorer, you'll want to look at using the latest and latest-1 values. These will let you make a request for what the newly added data is.
https://aps.autodesk.com/en/docs/fdxgraph/v1/developers_guide/API%20Essentials/constructs/
Can't find what you're looking for? Ask the community or share your knowledge.