Article - CS251134
Windchill PDMLink: How to create a High Resolution JPG Image as Additional File in Representation
Modified: 22-Feb-2023
Applies To
- PTC Arbortext Content Manager 10.1 M040 to 11.1
- Windchill ProjectLink 10.1 M040 to 12.0
- Pro/INTRALINK 8.x + 10.1 M040 to 11.2
- Windchill PDMLink 10.1 M040 to 12.0
- Windchill PDM Essentials 10.1 M040 to 11.1
Description
- After the EDRLoader successfully creates a new representation, a custom method can be called to perform additional work
- The custom method starts as a post publish job after WVS complete publishing of a new representation
- This article provides sample code for the Afterloader hook method that will enable you to create a high resolution JPG image as Additional File in Representation
- For example

- If flag is enabled in the properties file, every single time the CAD Document publish job is performed then this method will be involved generating an additional JPG image
- Generated high resolution image can be utilized as design deliverable
- A sample JPG image for 2D Drawing generated as 2048 x 1536:
- No Pen Table with the PDF default line style: engine_A.7-noPentable.jpg
- Use Pen Table: engine7_A.7-usePentable.jpg
- A sample JPG image for 3D Assembly model generated as 1024 x 768: engine_A.2_gradation.jpg
- A sample JPG image for 2D Drawing generated as 2048 x 1536:
- By default, the custom Image Generator use the native Thumbnail Generator process (pvsthumb.exe/pview_batch.exe) on Windchill server to create a high resolution JPG image
- The Image Generator execute the thumbnail.generator.nativecmd command in the wvs.properties used in invoke the native Thumbnail Generator on the Windchill server
- The Image Generator use viewables files(pvs, ol, pdf,etc) as its input files that serve as input to the native Thumbnail Generator
- The Image Generator can be executed via the CadAgent, by configuring a worker of type THUMBNAIL if the Windchill server is not capable of running the native Thumbnail Generator. This does allow a remote machine to be used to execute the actual image generation process
- Note
- The custom Image Generator has completely different process than the native Thumbnail Generator does except they are using the native pvsthumb.exe/pview_batch.exe process
- Any configuration setting for the native Thumbnail Generator will not be shared with the custom Image Generator whether Thumbnail generation is enabled or not in Windchill
- Performance Measurement and Data Generation Time during publishing
- Large assembly model (2,222 components)

This is a printer-friendly version of Article 251134 and may be out of date. For the latest version click CS251134