28 Mar 2023

Using allModelOccurrences

I blogged about the new field called allModelOccurrences (currently in beta) that was introduced in the Fusion Data API

I now updated the hierarchy sample code to include the usage of this new field.

This way, in case of simple models (even with deep hierarchies), you can get back the full hierarchy with a single API call - in case of larger models you can paginate through the results. 

In order to be able to turn the results into an actual tree/graph based on parent-child relationships, I'm also asking for the parent information of each occurrence:

allModelOccurrences {
  results {
    parentComponentVersion {
    componentVersion {
  pagination {

Related Article

Posted By

Adam Nagy

Follow @AdamTheNagy Adam Nagy joined Autodesk back in 2005 and has been providing programming support, consulting, training and evangelism to external developers. He started his career in Budapest, then worked in Prague for 3 years and now lives in South England, UK. At the moment focusing on Inventor and Fusion 360, plus cloud and mobile related technologies. Adam has a degree in Software Engineering and has...