#### Understanding the Subroutine Creation Dialog Box

Subroutine Creation dialog box

The following table describes the options available in the Subroutine Creation dialog box.

Dialog Box Item | Description
| The Name box defines your subroutine. This is the name you will use when calling the subroutine later, so if you have multiple subroutines in a single part program, each name must be unique. The name is limited to 180 or fewer characters. If you enter 181 or more characters in the Name box, this message appears:

When you select the OK button, the name is automatically shortened to the first 180 characters, and the Subroutine Creation dialog box closes.

| The Number of arguments list shows the arguments for the subroutine you are creating. Arguments appear in this area in this form: <NAME> = <VALUE> : <DESCRIPTION> For example, if one of your arguments was named "Diameter" with a default value of 3, your argument in this list may appear as:

DIAMETER = 3 : The hole's diameter

PC-DMIS will use the default value whenever another value is not passed from the CALLSUB command.

To edit an argument, double-click on the argument you want to change. The Argument Edit dialog box opens, allowing you to make the changes. See "Understanding the Argument Edit Dialog Box" for information on this dialog box.

| The Add Argument... button adds new arguments to your subroutine. Click on this button, and the Argument Edit dialog box appears. See "Understanding the Argument Edit Dialog Box" for information on this dialog box.
| The Delete Argument button allows you to delete arguments from your subroutine. Select the argument from the list, and then click the Delete Argument button.