Author Topic: How to find an application is installed?  (Read 149 times)

0 Members and 1 Guest are viewing this topic.

ahankhah

  • Mosquito
  • Posts: 19
How to find an application is installed?
« 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.

eklundh80

  • Mosquito
  • Posts: 1
Re: How to find an application is installed?
« Reply #1 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]

ahankhah

  • Mosquito
  • Posts: 19
Re: How to find an application is installed?
« Reply #2 on: June 07, 2021, 03:35:45 AM »
eklundh80,

thank you very much.

VovKa

  • Swamp Rat
  • Posts: 1342
  • Ukraine
Re: How to find an application is installed?
« Reply #3 on: June 07, 2021, 05:14:19 AM »
the object must be released after the usage

BIGAL

  • Swamp Rat
  • Posts: 718
  • 30 + years of using Autocad
Re: How to find an application is installed?
« Reply #4 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.
A man who never made a mistake never made anything