TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Andrea on April 27, 2010, 09:40:29 AM

Title: reactor not reacting on 2011
Post 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.
Code: [Select]
(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))
                       )
)
Title: Re: reactor not reacting on 2011
Post by: MeasureUp on April 27, 2010, 06:38:55 PM
Hi all,..

Does anyone had any problem with some reactor on 2011 ?
the code below work good until 2011.
Code: [Select]
(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?
Title: Re: reactor not reacting on 2011
Post by: Lee Mac on April 27, 2010, 06:48:06 PM
Andrea, do you get an error, or does the callback just not evaluate?
Title: Re: reactor not reacting on 2011
Post by: Andrea on April 28, 2010, 12:08:49 AM
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.
Title: Re: reactor not reacting on 2011
Post by: Serge J. Gianolla on April 28, 2010, 12:34:42 AM
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