Skip to main content
7-Bedrock
July 12, 2024
Solved

Listing all EPMDocument x part numbers

  • July 12, 2024
  • 1 reply
  • 666 views

Version: Windchill 13.0

 

Use Case: I've created a first version of a project that uses the Windchill API to export a .pdf file from a .drw using this URI: /Windchill/servlet/odata/v3/CADDocumentMgmt/CADDocuments('OR:wt.epm.EPMDocument:201731655')/Representations EPMDocument:201731655 was known previously.


Description:

Is there a way to retrieve a list of all EPMDocument (only .drw ones) versus Drawing Numbers? I am asking it because I need to generate .pdfs from .dwgs in batches.

Best answer by GZ_11364733

I've got a solution (dunno if it's the smartest one but...)

/Windchill/servlet/odata/v3/CADDocumentMgmt/CADDocuments?$filter=endswith(Number,'.drw') solved it for me!

1 reply

GZ_113647337-BedrockAuthorAnswer
7-Bedrock
July 12, 2024

I've got a solution (dunno if it's the smartest one but...)

/Windchill/servlet/odata/v3/CADDocumentMgmt/CADDocuments?$filter=endswith(Number,'.drw') solved it for me!