MarcoW Posted March 8, 2010 Posted March 8, 2010 Hello, Is there a way to determine (by lisp) if a command is in progress? I want to make a macro that can do either the first thing (if a command is in progress) or or the second thing if there is no command in progress. TNx. Quote
lpseifert Posted March 8, 2010 Posted March 8, 2010 Cmdactive maybe? (if (> (getvar 'CmdActive) 0)) (do first);if True (do second);if nil ) You'll probably run into problems if you try and execute functions/commands while a command is active. Quote
MarcoW Posted March 8, 2010 Author Posted March 8, 2010 YOu mean like this: (if (> (getvar 'CmdActive) 0) (do first);if True (do second);if nil ) Thank you. I will try and post my reaction soon. Quote
Lee Mac Posted March 8, 2010 Posted March 8, 2010 CMDACTIVE is actually bit-coded, so you might want to look into such functions as logand/logior. Here is a reference: http://www.autodeskpress.delmar.cengage.com/resources/olcs/system/ACADVariables-Alphabetical.htm#CMDACTIVE Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.