(vlax-product-key) query

Discussion in 'AutoCAD' started by Laurie Comerford, Nov 1, 2004.

  1. Hi,

    I have been using the (vlax-product-key) function to query the version of
    Land Desktop/Civil 3D software currently running, so as to determine which
    program to load using code like that below:

    (setq curversioncheck (vlax-product-key))

    ; The following lines do a check of version and set the appropriate DB and
    VLX sub variables
    (if (vl-string-search "ACAD-300" curversioncheck)
    (setq subversion "C3D1" vlxversion "STRINGERC3D.VLX"))

    This has worked on numerous computers, but now we have found one with an
    installation of Civil 3D where it returns a message that the function isn't
    defined.

    Can someone confirm whether this function should be reliable, or should I be
    looking for another method of finding the currently running software?

    --


    Laurie Comerford
    CADApps
    www.cadapps.com.au
     
    Laurie Comerford, Nov 1, 2004
    #1
  2. Is it a case of (vl-load-com) ?
     
    Jason Piercey, Nov 1, 2004
    #2
  3. Hi Jason,

    Thank you:

    It appears to be a case of (vl-load-com), as after running (vl-load-com) on
    the computer the (vlax-product-key) function worked.

    What I find mind boggling is why (vl-load-com) runs automatically on all our
    computers where we've tested, but for one, when all are running the standard
    Autodesk menus for Land Desktop/Civil 3D.

    I'll adjust our MNL file to run (vl-load-com) as it appears it can't do any
    "collateral damage"

    --


    Laurie Comerford
    CADApps
    www.cadapps.com.au
     
    Laurie Comerford, Nov 1, 2004
    #3
  4. You are welcome. I've started using a little bit of
    AutoCAD Mechanical and noticed that it does
    require a (vl-load-com) where other (newer) versions
    of vanilla AutoCAD do not.

    Guess it pays to be safe.
     
    Jason Piercey, Nov 2, 2004
    #4
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.