Skip to main content
10-Marble
October 13, 2023
Question

Using ODATA REST APIs how to get representations of all versions of CAD Document?

  • October 13, 2023
  • 1 reply
  • 1192 views

Hi All,

 

Consider I have CAD document ABC--> 3.5, ABC--> 2.4 and ABC-->1.1

I need to fetch all three versions of CAD document along with representations for every version. I am using 

/CADDocumens rest API and I am expanding "AllOlderVersion" service .

 

for ex: 

expand: AllOlderVersion($select=AuthoringApplication,ID,VersionID,Name,Number,State,Version,Category,TypeIcon),Representations($filter=DefaultRepresentation eq true;$select=ID,CreoViewURL).

 

If I do this, I am getting representation only for the latest version. But I need representations for all the versions. How Can i achieve this ?

 

 

1 reply

Community Moderator
October 20, 2023

Hi gmydoor-2,

Thank you for your question. 
I’d like to recommend to bring more details and context to your initial inquiry

It also helps to have screenshot(s) to better understand what you are trying to do in your process. 

This will increase your chances to receive meaningful help from other Community members. 

Regards,

Vivek N

gmydoor-210-MarbleAuthor
10-Marble
October 20, 2023

Hi @vnamboodheri .. AllOlderVersion endpoint is the customized one. I have got another solution for my issue. We can use Revisions end point instead of AllOlderVersion to get representations of all versions of CAD documents.