Skip to main content
4-Participant
March 19, 2024
Solved

Automate creation of representation using local archive PDFs for EPMDocument

  • March 19, 2024
  • 1 reply
  • 1793 views

Hello All,

 

I followed Article - CS216138 and configured an option to upload local files as representations for an EPMDocument from the UI wizard (I am using Windchill 12.0.2.14). I am wondering if there is any way to automate this upload process. Support for representation upload using the loadfromfile framework is only available for WTPart, not for EPMDocument. Does anyone have any suggestions? Thanks.

Best answer by d_graham

@TR_10627971 

 

@HelesicPetr  is correct. That’s what you need to do.

 

David

1 reply

18-Opal
March 19, 2024

@TR_10627971 

This is doable for sure.

Do you know Java and the Windchill database architecture for how content is managed.

 

Are you adding these PDFs to an existing rep or are you replacing rep PDFs with these “local” PDFs?


What’s the use case?

One off bulk load or somehow triggered?

 

David

4-Participant
March 21, 2024

Hello @d_graham ,

 

Thank you for your response. I'm familiar with the Windchill database architecture for content and have some Java experience.

I want to clarify that I'm not looking to add these PDFs to an existing representation.

Instead, I'm addressing a post-migration bulk load scenario. In this context, none of the migrated .drw objects will have any representations.

Our objective is to upload representation PDFs for these EPMDocument objects using local PDFs. Could you please provide guidance on how this can be achieved?

 

Thank you.

HelesicPetr
22-Sapphire II
22-Sapphire II
March 21, 2024

Hi @TR_10627971 

If you need to create new representation use this

DerivedImage.newDerivedImage();

Then link this representation to the EPMDocument and attach the local pdf file as an ApplicationData

PetrH