| Author |
Message |
The Real JD
Guest
|
Posted:
Mon Apr 04, 2005 6:22 pm Post subject:
knowing which version of autocad is running? |
|
|
I'm writing a lisp that will launch a utility, but it is dependent on what
cad program is running..
ie
AutoCAD 2005
LDD 2005
Bldg Systems 2005
How do i know which one is running through lisp?
|
|
| Back to top |
|
 |
Big 'D
Guest
|
Posted:
Mon Apr 04, 2005 7:30 pm Post subject:
Re: knowing which version of autocad is running? |
|
|
JD,
This may or may not help. I am new at most of this but anxious to help someone if I can. I have only had two versions of AutoCAD on my machine at any given time. I know that the last one accessed becomes the default if a file is opened from explorer. Maybe, if you are opening the program from the lisp you could include the full path to the execution (.exe) for the version you want to use(?).
D |
|
| Back to top |
|
 |
The Real JD
Guest
|
Posted:
Mon Apr 04, 2005 8:01 pm Post subject:
Re: knowing which version of autocad is running? |
|
|
I'm looking to have a lisp routine available to autocad and it's vertical
products. But the utility it will launch is dependant on the version of cad
running. so i guess i need some sort of env variable telling me which
autocad is running... i guess that's what i'm looking for right now...
|
|
| Back to top |
|
 |
Tom Smith
Guest
|
Posted:
Mon Apr 04, 2005 8:09 pm Post subject:
Re: knowing which version of autocad is running? |
|
|
| Look at acadver variable. |
|
| Back to top |
|
 |
Laurie Comerford
Guest
|
Posted:
Thu Apr 07, 2005 1:09 am Post subject:
Re: knowing which version of autocad is running? |
|
|
Hi,
Try these
(vl-load-com) ; This is necessary to ensure the next line works
(setq CurVersionCheck (vlax-product-key))
(if (vl-string-search "ACAD-308" CurVersionCheck) ; 308 is Land Desktop
2005
etc.
--
Regards,
Laurie Comerford
www.cadapps.com.au
"The Real JD" <jorge.ducharme@earthtech.ca> wrote in message
news:42514d92$1_2@newsprd01...
| Quote: | I'm writing a lisp that will launch a utility, but it is dependent on what
cad program is running..
ie
AutoCAD 2005
LDD 2005
Bldg Systems 2005
How do i know which one is running through lisp?
|
|
|
| Back to top |
|
 |
Tony Tanzillo
Guest
|
Posted:
Thu Apr 07, 2005 5:35 am Post subject:
Re: knowing which version of autocad is running? |
|
|
Have you tried (getvar "product") ?
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com
"The Real JD" <jorge.ducharme@earthtech.ca> wrote in message news:4251b563_1@newsprd01...
| Quote: | acadver shows the same number for AutoCAD 2005 and it's vertical product
LD2005
I wound up using (findfile "acad.exe") with its path to determine what's
running.
"Tom Smith" <nospam@address.withheld> wrote in message
news:5286788.1112631019359.JavaMail.jive@jiveforum1.autodesk.com...
Look at acadver variable.
|
|
|
| Back to top |
|
 |
Jürg Menzi
Guest
|
Posted:
Thu Apr 07, 2005 9:09 am Post subject:
Re: knowing which version of autocad is running? |
|
|
Visit my homepage -> Free Stuff and search for 'VxGetAcadLicenseInfos'
Cheers
--
Juerg Menzi
MENZI ENGINEERING GmbH, Switzerland
http://www.menziengineering.ch |
|
| Back to top |
|
 |
The Real JD
Guest
|
Posted:
Thu Apr 07, 2005 10:48 pm Post subject:
Re: knowing which version of autocad is running? |
|
|
Cool... that's the ticket!
"Tony Tanzillo" <tony.tanzillo@U_KNOW_WHERE.com> wrote in message
news:42548e60$1_3@newsprd01...
| Quote: | Have you tried (getvar "product") ?
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com
"The Real JD" <jorge.ducharme@earthtech.ca> wrote in message
news:4251b563_1@newsprd01...
acadver shows the same number for AutoCAD 2005 and it's vertical product
LD2005
I wound up using (findfile "acad.exe") with its path to determine what's
running.
"Tom Smith" <nospam@address.withheld> wrote in message
news:5286788.1112631019359.JavaMail.jive@jiveforum1.autodesk.com...
Look at acadver variable.
|
|
|
| Back to top |
|
 |
|
|
|
|