English

How To: Open a help topic using Avenue

Summary

This document provides an Avenue example using the 'executemacro' request to open a specific ArcView help topic.

Procedure

The 'executemacro' request requires two arguments: 1) A help file and 2) a topic ID. The example below uses arcview.hlp as the help file and CUSTOMIZE_TYPES as the topic ID. These arguments should be altered to fit your needs. The *.hlp file and topic ID, which is stored in the *.cnt file, can be found in the $AVHOME\help directory.

  1. Start ArcView.
  2. Open a new script.

    A. Activate the Project window.
    B. Click the Scripts icon.
    C. Click New.

  3. Paste the below code into the Script window.

    Code:
    av.Help.ExecuteMacro("ji(""c:/esri/av_gis30/arcview/help/arcview.hlp"", ""CUSTOMIZE_TYPES"")")


    Note:
    The path to the help file should be updated to be current with the ArcView installation directory.

  4. Compile the script.
    [O-Image] Script compile button
  5. Run the script.
    [O-Image] Run compiled script button