#### Understanding the Subroutine Creation Dialog Box

Subroutine Creation dialog box

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

Dialog Box Item | Description
| The Name box defines the 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 Number of Arguments list shows the arguments for the subroutine you are creating. Arguments will appear in this area in this form: <NAME> =<VALUE> :<DESCRIPTION> So, if one of your arguments was named "Diameter" with a default value of 3, your argument in this list might 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, simply double-click on the argument you want to change. The Argument Edit dialog box will open, allowing you to make the needed changes.

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