Article - CS252900

An example Afterloader hook method to add the attribute value from the viewable files to the name of output Additional File Types

Modified: 09-Apr-2025   


Applies To

  • Windchill PDM Essentials 10.1 M030 to 11.1
  • Windchill ProjectLink 10.1 M010 to 11.2
  • PTC Arbortext Content Manager 10.1 M010 to 11.1
  • Windchill PDMLink 10.1 M010 to 12.1
  • Pro/INTRALINK 8.x + 10.1 M010 to 11.2

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 the attribute value from the output viewable files (i.e. *.pvs, wvspvp.pvp, etc).
    • ​The attribute can be one of the following properties that the Creo View structure nodes have:
      • CAD Parameters created in the CAD Application
      • PVS File Properties created by the Creo View Adapter
      • WindchillEPM (epmdoc_*) properties
      • WindchillPart (part_*) properties
    • Viewing Attribute Information in Creo View

      User-added image
  • This sample customization enables the followings:
    • The AfterEDRloader hook method starts as a post publish job after WVS completes publishing of a new representation
    • The output file names will be: source CAD file name + Attributes Value1 + Attributes Value2.. 
      • For Example: <CADName>_<epmdoc_iterationDisplayIdentifier>_<epmdoc_lifeCycleState>_<PTC_WM_MODIFIED_BY>.extension (i.e. MYCADNAME_A.1_Released_username (username:Organization).pdf)​

        User-added image​​
This is a printer-friendly version of Article 252900 and may be out of date. For the latest version click CS252900