Currently, your gpath function only accepts input on the command line. You included a stubbed-out function(gp:getDialogInput) with the intention of adding a dialog box interface. Now is the time to add the interface.
- Define the appearance and contents of the dialog boxes.
- Add program code to control dialog behavior.
The description and format of a dialog box is defined in a .dcl file. In the AutoLISP Developer's Guide, DCL is described in chapter 11, “Designing Dialog Boxes” chapter 12, “Managing Dialog Boxes”, and chapter 13, “Programmable Dialog Box Reference”.