TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Andrea on April 27, 2010, 09:40:29 AM
-
Hi all,..
Does anyone had any problem with some reactor on 2011 ?
the code below work good until 2011.
(vl-load-com)
(defun canceltcommand (calling-reactor cancelcommandinfo)
(if (= (nth 0 cancelcommandinfo) "PLOT")
(alert "Hello")
)
)
(if *canceltcommand*
(progn (vlr-remove *canceltcommand*)
(setq *canceltcommand* nil)
)
)
(setq *canceltcommand* (vlr-command-reactor nil
'((:vlr-commandcancelled . canceltcommand))
)
)
-
Hi all,..
Does anyone had any problem with some reactor on 2011 ?
the code below work good until 2011.
(vl-load-com)
(defun canceltcommand (calling-reactor cancelcommandinfo)
(if (= (nth 0 cancelcommandinfo) "PLOT")
(alert "Hello")
)
)
(if *canceltcommand*
(progn (vlr-remove *canceltcommand*)
(setq *canceltcommand* nil)
)
)
(setq *canceltcommand* (vlr-command-reactor nil
'((:vlr-commandcancelled . canceltcommand))
)
)
Have you checked every functions in your code with the v2011 help?
Maybe there are some functions updated in v2011?
-
Andrea, do you get an error, or does the callback just not evaluate?
-
just nothing happen....
no error....no alert...
i've tried this code on 2010 2008 2007 and work well.
now i'm a little afraid to about using VLisp function..
the commandwillstart ...ended and ....failed work...but not ...cancelled.
:|
If any of you hear about something for this issue...please let me know.
thanks.
-
just nothing happen....
no error....no alert...
i've tried this code on 2010 2008 2007 and work well.
now i'm a little afraid to about using VLisp function..
the commandwillstart ...ended and ....failed work...but not ...cancelled.
:|
If any of you hear about something for this issue...please let me know.
thanks.
Je n'ai pas 2011 mais d'autres personnes ont des soucis avec certains machins dans 2011
http://discussion.autodesk.com/forums/thread.jspa?threadID=770866&tstart=0