Determining AutoCAD or AutoCAD LT in macro

Discussion in 'AutoCAD' started by JoeMagas, Apr 25, 2004.

  1. JoeMagas

    JoeMagas Guest

    I am programming a menu for both AutoCAD and AutoCAD LT users. I would like to run a lisp routine for AutoCAD users and a macro for LT users.

    This was the best I could come up with:

    $M=$(if,$(getvar,acadver),<autoLisp>,<macro>

    ACADVER does not seem to be a setvar in LT so I tried the above with no success.

    Any ideas on how to accomplish this?

    Joe
     
    JoeMagas, Apr 25, 2004
    #1
  2. You might want to read his post again, and
    pay attention to what it says:
     
    Tony Tanzillo, Apr 26, 2004
    #2
  3. Assuming the PRODUCT system variable in LT returns
    something other than "AutoCAD", this should work:

    $(if,$(eq,$(getvar,product),"AutoCAD"),(YourLispFunc),<Your LT macro>)
     
    Tony Tanzillo, Apr 26, 2004
    #3
  4. JoeMagas

    Ian A. White Guest

    I can't check this at the moment, but going by other SYSVARS for LT, you
    may have to test for ACLTVER.
     
    Ian A. White, Apr 26, 2004
    #4
  5. JoeMagas

    JoeMagas Guest

    Thanks Dean, Tony & Ian (and any others who tried) The product setvar returns "AutoCAD" (in full AutoCAD) and "AutoCAD LT" in LT, so the following macro runs the move command in full AutoCAD and the copy command in LT.

    $m=$(if,$(eq,$(getvar,product),"AutoCAD"),move,copy)

    You guys made my day!

    Joe
     
    JoeMagas, Apr 26, 2004
    #5
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.