Need a little help in debugging this.
Why is this action_tile crashing?? It creates the WBlock file in the correct location. And that is where it stops, right at the end of Action tile “rb1” line. I took out line of code for “rb2” and it is still crashing at “rb1” line. Animate and Stop @ break confirmed the same thing.
(unload_dialog dcl_id) ;unload
(princ)
;; Main Application ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(today)
(StrPath)
(vl-mkdir NewPath)
(setvar "expert" 4)
(action_tile "rb1" "(command " Wblock " NewFile " * ")")
;New version 2004 file with date Prefix
(action_tile "rb2" "(command " saveas " " 2000 " OldFile)")
;New version 2000 file with date Prefix
(command "saveas" "2004" OldFile) ;Saves back to the Orginal File.
(setvar "expert" 0)
(setq *error* old_error)
(princ)
);;End of Routine
When I check it with the editor’s check, I get this warning.
[CHECKING TEXT Tedstest.LSP loading...]
.
; warning: too many arguments: (ACTION_TILE "rb1" "(command " WBLOCK ... )
; Check done.
Question so I can understand this. Is the “action_tile” function nothing more that a fancy “IF” function?