AutoLISP macro to verify what version ACAD running. How?

Discussion in 'AutoCAD' started by icarus, Dec 20, 2003.

  1. icarus

    icarus Guest

    Does someone have an AutoLISP macro to quickly check what version of AutoCAD
    is running?

    Thanks in advance,
    BobbyG
     
    icarus, Dec 20, 2003
    #1
  2. icarus

    ECCAD Guest

    (setq acad_rel (substr (getvar "ACADVER") 1 2))
    (if (= acad_rel "14")(setq ins "_insert"))
    (if (= acad_rel "15")(setq ins "_-insert"))
    (if (= acad_rel "16")(setq ins "_-insert"))

    Above is how I setup the 'insert' command.
    Bob
     
    ECCAD, Dec 20, 2003
    #2
  3. icarus

    icarus Guest

    Many thanks, guys

    BobbyG
     
    icarus, Dec 21, 2003
    #3
  4. icarus

    Dave Zinn Guest

    Consider the following:

    (setq acad_rel (substr (getvar "ACADVER") 1 2))
    (cond ((= acad_rel "14")(setq ins "_insert"))
    ((= acad_rel "15")(setq ins "_-insert"))
    ((= acad_rel "16")(setq ins "_-insert"))
    )
     
    Dave Zinn, Dec 22, 2003
    #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.