Since I'm supporting several different version of autocad at work, I made this quick library routine to test for autocad releases. Its pretty simple, but fairly flexible as you can use operators.
I hope someone else finds a use for it.
;######################################
;### Get Autocad Release Number ###
;######################################
;v 0.1 MDJ 2012
;
;(acad-ver '< "2011") ;;return T if version is less than 2011
;(acad-ver '>= "2011") ;;return T if version is equal to or greater than 2011
;(acad-ver '> "2009") ;;return T if version is greater than 2009
("R13" . 13.0)
("2000" . 14.0)
("2001i" . 15.05)
("2002" . 15.06)
("2004" . 16.0)
("2005" . 16.1)
("2006" . 16.2)
("2007" . 17.0)
("2008" . 17.1)
("2009" . 17.2)
("2010" . 18.0)
("2011" . 18.1)
("2012" . 18.2)
("2013" . 19.0)
))
T
nil
)
) ;defun