-
On the Loop Drawings Module window menu bar, click Tables > User-Defined Macro Functions.
-
On the User-Defined Macro Functions dialog box, click New to open the User-Defined Macro Function Properties (New) dialog box.
-
Do the following:
-
In the Macro function box, type S11.
-
In the Abbreviation box, type S11.
-
In the Description box, type Substring takes 1 character from 1st pos.
-
-
Click Insert to open the Standard Macro Functions dialog box.
-
Select the following standard function as shown.
-
Click OK to return to the User-Defined Macro Function Properties dialog box.
-
In the Parameters section, define the parameters as follows:
-
In the Start position field, use the spin box to select the value 1.
-
In the Length field, use the spin box to select the value 1.
The dialog box should now appear as shown:
-
-
Click OK.
-
Add another user-defined function S13, making the following definitions on the User-Defined Macro Function Properties dialog box:
-
In the Macro function field, type S13.
-
In the Abbreviation field, type S13.
-
In the Description field, type First three characters.
-
Click Insert.
-
On the Standard Macro Functions dialog box, select the Substr function.
-
Click OK to return to the User-Defined Macro Function Properties dialog box.
-
In the Start position field, type 1.
-
In the Length field, type 3.
The User-Defined Macro Functions dialog box should appear as shown:
-
-
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.