knowing which version of autocad is running?

Discussion in 'AutoCAD' started by The Real JD, Apr 4, 2005.

  1. The Real JD

    The Real JD Guest

    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?
     
    The Real JD, Apr 4, 2005
    #1
  2. The Real JD

    Big 'D' Guest

    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
     
    Big 'D', Apr 4, 2005
    #2
  3. The Real JD

    The Real JD Guest

    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...
     
    The Real JD, Apr 4, 2005
    #3
  4. The Real JD

    Tom Smith Guest

    Look at acadver variable.
     
    Tom Smith, Apr 4, 2005
    #4
  5. 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
     
    Laurie Comerford, Apr 6, 2005
    #5
  6. Have you tried (getvar "product") ?
     
    Tony Tanzillo, Apr 7, 2005
    #6
  7. The Real JD

    Jürg Menzi Guest

    Visit my homepage -> Free Stuff and search for 'VxGetAcadLicenseInfos'

    Cheers
     
    Jürg Menzi, Apr 7, 2005
    #7
  8. The Real JD

    The Real JD Guest

    Cool... that's the ticket!


     
    The Real JD, Apr 7, 2005
    #8
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.