Adding file to representation for ECAD publishing
I've been reading up on Afterhooks and post publishing so I think I am in the right area but looking for guidance as to possibility or different approaches. I have a need to combine a user generate PDF with an ECAD published representation. For quality reasons, at this time I do not think its possible to publish a good PDF off an .eda file (WYSISYG) and I have an archive of existing PDFs in representations to merge in. This is using WTDocs were the PDF might be loaded as secondary content.
I've done this manually were I created a .pvz by downloading a published ECAD representation, adding a file and reuploading as a new representation. Works as I expected in that the .eda file and the PDF are visible when you open the representation giving users a choice. The PDF is also available for download from the Representations table. Check.
I suspect that just adding a file to the Representation in code will make the PDF available for download from the Representations table but would not be visible inside of Creo View when I open the representation. I believe that the .pvs file would need to be modified to include the reference to this added file, something Creo View does when I manually added it. Process would be that the user would add a PDF as secondary content to a WTDoc with the ECAD (OrCAD Capture or Allegro) file being primary content. The publisher would trigger publishing to an .eda and create a thumbnail. So, is there a way I can get my cake and eat it too?




