TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: ahankhah on June 07, 2021, 12:36:55 AM

Title: How to find an application is installed?
Post 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.
Title: Re: How to find an application is installed?
Post by: eklundh80 on June 07, 2021, 02:09:03 AM
Hello
From Patrick_35 (cadxp.com)

Code: [Select]
;-------------------------------------------------------------------
;
; 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")
)

;-------------------------------------------------------------------
Code: [Select]
Title: Re: How to find an application is installed?
Post by: ahankhah on June 07, 2021, 03:35:45 AM
eklundh80,

thank you very much.
Title: Re: How to find an application is installed?
Post by: VovKa on June 07, 2021, 05:14:19 AM
the object must be released after the usage
Title: Re: How to find an application is installed?
Post by: BIGAL on June 07, 2021, 07:46:55 PM
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.