Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Login
Register
TheSwamp
»
Code Red
»
AutoLISP (Vanilla / Visual)
»
Topic:
How to find an application is installed?
« previous
next »
Print
Pages: [
1
] |
Go Down
Author
Topic: How to find an application is installed? (Read 1155 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.
Logged
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]
Logged
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.
Logged
VovKa
Water Moccasin
Posts: 1632
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
Logged
BIGAL
Swamp Rat
Posts: 1420
40 + 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.
Logged
A man who never made a mistake never made anything
Print
Pages: [
1
] |
Go Up
« previous
next »
TheSwamp
»
Code Red
»
AutoLISP (Vanilla / Visual)
»
Topic:
How to find an application is installed?