Determining AutoCAD or AutoCAD LT in macro

  • Thread starter Thread starter JoeMagas
  • Start date Start date
J

JoeMagas

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
 
Have to ask: you do know there is no LISP in LT from Autodesk, right?

You might want to read his post again, and
pay attention to what it says:
 
Assuming the PRODUCT system variable in LT returns
something other than "AutoCAD", this should work:

$(if,$(eq,$(getvar,product),"AutoCAD"),(YourLispFunc),<Your LT macro>)
 
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?

I can't check this at the moment, but going by other SYSVARS for LT, you
may have to test for ACLTVER.
 
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
 
Back
Top