Define Macro Functions - Intergraph Smart Instrumentation - 13.1 - Training - Intergraph Process, Power & Marine Documentation

Intergraph Smart Instrumentation Tutorial

Language
English
Product
Intergraph Smart Instrumentation
Search by Category
Training
Smart Instrumentation Version
13.1
  1. On the Loop Drawings Module window menu bar, click Tables > User-Defined Macro Functions.

  2. On the User-Defined Macro Functions dialog box, click New to open the User-Defined Macro Function Properties (New) dialog box.

  3. Do the following:

    1. In the Macro function box, type S11.

    2. In the Abbreviation box, type S11.

    3. In the Description box, type Substring takes 1 character from 1st pos.

  4. Click Insert to open the Standard Macro Functions dialog box.

  5. Select the following standard function as shown.

  6. Click OK to return to the User-Defined Macro Function Properties dialog box.

  7. In the Parameters section, define the parameters as follows:

    1. In the Start position field, use the spin box to select the value 1.

    2. In the Length field, use the spin box to select the value 1.

      The dialog box should now appear as shown:

  8. Click OK.

  9. Add another user-defined function S13, making the following definitions on the User-Defined Macro Function Properties dialog box:

    1. In the Macro function field, type S13.

    2. In the Abbreviation field, type S13.

    3. In the Description field, type First three characters.

    4. Click Insert.

    5. On the Standard Macro Functions dialog box, select the Substr function.

    6. Click OK to return to the User-Defined Macro Function Properties dialog box.

    7. In the Start position field, type 1.

    8. In the Length field, type 3.

      The User-Defined Macro Functions dialog box should appear as shown:

  10. When done, click OK to close the dialog box.

For further details of how to use these functions in your drawing macros, see Working with User-Defined Macro Functions in the Smart Instrumentation help.