This is a PDF version of Article CS216668 and may be out of date. For the latest version click here
Article - CS216668
  8 Votes

An example Afterloader hook method to add the Windchill version of EPM Documents to the name of output viewable files

Created: 28-Aug-2015   |   Modified: 27-Nov-2018   

Applies To

  • Windchill PDM Essentials 10.1 M030 to 11.1 M010
  • Windchill PDMLink 10.1 M010 to 11.2
  • Visualization Services (wvs)

Description

  • After the EDRLoader successfully creates a new representation, a custom method can be called to perform additional work
  • For example, setting ad hoc permissions on the new representation. Refer to the publish.afterloadermethod property definition in the wvs.properties.xconf file in your Windchill installation for more details
  • This article provides sample code for this hook that will enable you to rename Additional files published via WVS Publish Rules to include source Windchill version number or save a copy of the content locally
  • This sample customization enables the following : Choose one of the following options
  • Afterloader Option 1
    • The AfterEDRloader hook method starts as a post publish job after WVS completes publishing of a new representation
    • Renames Additional files published via WVS Publish Rules to include source Windchill version number.  The output file names will be: source CAD file name + Windchill version number. i.e. Format: <CADName>_<IterationInfo>.extension (e.g. MYCADNAME_A.1.stp)
      • For Example)
User-added image
  • Or Afterloader Option 2
  1. Creates a Saves a Copy of output viewable files (including Additional filesas EPMDocument attachments. The output file names will be: source CAD file name + Windchill version number. i.e. Format: <CADName>_<IterationInfo>.extension (e.g. MYCADNAME_A.1.stp)
    • ​For Example)
      User-added image

  2. Optionally download a copy of the EPM Document's attachments created at step 1 to a designated folder on a local or network hard disk on Windchill server
    • For example)
​​​User-added image