CATRule to Specify Output Type and Directory

Using a CATRule, you can specify whether to extract your work instructions in a specific output type. Such as XML or HTML, and you can specify the output directory. This rule is called on when you use either Generate Documentation for Operation or Generate Documentation for All Operations from the Instructions Tools section of the action bar.

This page discusses:

General Information

The DELWIDocGen_GeneralCusto.CATRule is located in ..\resources\knowledge\scripts and can be invoked when you use either Generate Documentation for Operation or Generate Documentation for All Operations from the Instructions Tools section of the action bar. If you choose XML, you can use DELWIDocGen_PostProcessOutput.CATRule to customize the XML output.

Output Arguments

You select an integer between 1 and 3 to determine the output type; you provide a string to specify the output directory.

  • OutputTypeInt
    IntegerOutput
    1Generate standard HTML
    2Generate XML
    3Displays a dialog box asking the user to select either HTML or "Custom Output" (XML)
  • OutputDirectoryStr corresponds to the context object.

Sample

The first example shows work instructions output in HTML. Because no output directory specifies, the output directory is CATTemp. The second example shows how to generate a dialog box that asks the user whether the output would be in HTML or XML. In this case, the output generates to D:\NoSave\BOBST_Pilot_OutputDir.

let OutputTypeInt(Integer)
let OutputDirectoryStr(String)
OutputTypeInt = 1 /* default value */

OutputTypeInt = 3 
OutputDirectoryStr = "D:\NoSave\BOBST_Pilot_OutputDir"