knowing which version of autocad is running?
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
knowing which version of autocad is running?

 
Post new topic   Reply to topic    CADForums.net Forum Index -> Customization
Author Message
The Real JD
Guest





Posted: Mon Apr 04, 2005 6:22 pm    Post subject: knowing which version of autocad is running? Reply with 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
Big 'D
Guest





Posted: Mon Apr 04, 2005 7:30 pm    Post subject: Re: knowing which version of autocad is running? Reply with quote

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? Reply with quote

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? Reply with quote

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? Reply with quote

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? Reply with 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...
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? Reply with quote

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? Reply with quote

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
 
Post new topic   Reply to topic    CADForums.net Forum Index -> Customization All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Powered by phpBB