TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: ahankhah on June 07, 2021, 12:36:55 AM
-
Hello everybody,
How one can find wheter an application (i.e. Microsoft Excel) is installed in Windows or not within VLISP?
Thanks in advance for any help or clue guiding to find a solution.
-
Hello
From Patrick_35 (cadxp.com)
;-------------------------------------------------------------------
;
; Se connecter ŕ Excel
; Connect to Excel
;
; Retourne par exemple #<VLA-OBJECT _Application 18aa5864>
; ou nil si l'application n'est pas installé
;
;-------------------------------------------------------------------
(defun lancer_excel()
(vlax-get-or-create-object "Excel.Application")
)
;-------------------------------------------------------------------
-
eklundh80,
thank you very much.
-
the object must be released after the usage
-
I am sure next question will be opening a excel file have a look at Getexcel.lsp a good reference with lots of functions.
Also another Denon Deterding, ALx Functions Creator has various excel functions for autocad.