TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Atwist on August 21, 2012, 11:24:31 AM

Title: open Excel file whit a lisp
Post by: Atwist on August 21, 2012, 11:24:31 AM
Hello,

I try using a button in my lisp to open an excel sheet but I keep getting error messages.

Code: [Select]
((= op "cadtool")
       ((Start "T:\\Excel bestanden\\cadtools.xls")
)
This is the error message
Error: no function definition: START

but the function is defined
         
Code: [Select]
"bbrr" "gewicht"
"slot" "laytool" "words"
"hydro" "cadtool"
And the button is also good
Code: [Select]
" : button {"
 "          key = \"cadtool\";"
 "          label = \"Cadtool programma\";"
 "          }"
What is going on here
Title: Re: open Excel file whit a lisp
Post by: Lee Mac on August 21, 2012, 11:32:24 AM
What is the function definition for your 'start' function?

How about using simply:

Code - Auto/Visual Lisp: [Select]
  1. (startapp "explorer" "T:\\Excel bestanden\\cadtools.xls")
Title: Re: open Excel file whit a lisp
Post by: Atwist on August 21, 2012, 11:38:06 AM
Thank you Lee,

 This works and the error is gone