Skip to main content
1-Visitor
February 9, 2021
Question

API REST for retrieve CAD/Dynamic Documents from part

  • February 9, 2021
  • 2 replies
  • 3023 views

Hi,

 

    I would like to retrieve CAD/Dynamic documents from a WTPart (OR:wt.part.WTPart:51xxx). With this API I can retrieve both Described, References and Representations but I cannot retrieve a CAD Document.

/Windchill/servlet/odata/ProdMgmt/Parts('OR:wt.part.WTPart:6676583881')?$expand=DescribedBy($expand=DescribedBy),References($expand=References),Representations

I would like to retrieve a .PRT (VR:wt.epm.EPMDocument:63xxx) from the OID of the wtpart. is this possible?

Thank you

2 replies

12-Amethyst
February 10, 2021

Hi

Maybe you'll find a hint here.

 

mmancin1-VisitorAuthor
1-Visitor
February 13, 2021

Thanks for reply but this tips don't retrieve me CAD/Dynamic documents. Only Described and Representations. If I insert Dynamic document into url, the API gave me an error. Maybe it's not possilbe with PrdMgmt domain. There's any other domain for to use?

 

Thanks

 

1-Visitor
March 24, 2021

Hello,

 

Try this endpoint:

 

https://<WC_URL>/Windchill/servlet/odata/v5/ProdMgmt/Parts('{PartOID}')/PartDocAssociations?%24count=false&%24expand=RelatedCADDoc

 

Use the "RelatedCADDoc" expansion.

 

 

5-Regular Member
March 25, 2021

Just to add to zsternal-2's response;

 

Here is the knowledge article for the same RelatedCADDoc endpoint that they mention:

https://www.ptc.com/en/support/article/CS311511

 

I'd suggest opening a Support case, if you have issues with this, but that should be the one.

 

Mike