Article - CS349681

How to rename Additional files published via WVS Publish Rules in the Representation of EPM Document to add suffix based on Windchill version

Modified: 13-Sep-2024   


Applies To

  • Windchill PDMLink 11.0 to 12.1

Description

  • This is an example of the WVS Afterloader hook method that can start as a post publish job after WVS completes publishing of a new representation.
  • 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 add source Windchill Revision or Version number.
  • Two key elements to know about this implementation before deploying in your system:
    • This article is intended to rename only additional files and NOT the primary viewable file. See CS333616 to understand the importance of this instruction.
    • The sample code in this article is designed to work with EPM Document only.
  • Sample implementation with screenshots.
    • The AfterEDRloader hook method will rename Additional files published via WVS Publish Rules to add source Windchill Revision or Version number.
    • The output file names will be:
      • Source CAD file name + Windchill Revision + Lifecycle State. (e.g. MYCADNAME_Rev A_Released.stp) or
      • Source CAD file name + Windchill Version number. (e.g. MYCADNAME_A.1.stp) or
      • If Additional File type is zip:
        • Source CAD file name + Windchill Revision or Version number + Source File extension. (e.g. MYCADNAME_Rev A_Released_dwg.zip or MYCADNAME_A.1_dwg.zip)
    • For Example
      + Windchill Version number
      User-added image

      + Windchill Revision + Lifecycle State
      image.png
This is a printer-friendly version of Article 349681 and may be out of date. For the latest version click CS349681