I seem to have a time with dialog boxes. I recently modified code to place my simple error routine within my main function and the dialog routine broke?? I think it was broke all along just didn't manifest itself. Anyway I have action_tile for "ok" : "(done_dialog 1)(dosomething)" action_tile for "cancel": "(done_dialog 0)(dosomethingelse)" when I hit my ok button the main program proceeds but it gives the familiar "function canceled" blurb anyway and when I hit cancel it freezes autocad. also any good tutorial sites for dialog box programming.