I am at a complete loss.. I got an error message when i loaded my .lsp file.
error: bad argument type: fixnump: nil
What is this???????
I have a lot of functions defined and setq's above all this, but I believe this is where things are having problems.
Code:
;load dialog box
(setq DCL_ID(load_dialog "plat-test.dcl"))
(if(not(new_dialog "Plat" DCL_ID))(exit))
;start dialog box
(start_dialog)
;if cancel button pressed
(action_tile "cancel" "(setq diag1)(done_dialog)")
(action_tile "accept" "(setq diag2)(saveVars)(done_dialog)")
(SETQ OLDSNAP(GETVAR "OSMODE"))
(SETVAR "CMDECHO" 0
"OSMODE" 0)
;setup for layout tabs
;number of layout tabs needed
(SETQ S1 (getint "\nHow many sheets? (do not include signature sheets)"))
;entering loop for layout tabs
(repeat (s1)(command "._layout" "_n" """")))
(unload_dialog DCL_ID)(princ))