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
User-added image
  • 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
  • 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)
User-added image

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