Author Topic: reactor not reacting on 2011  (Read 2416 times)

0 Members and 1 Guest are viewing this topic.

Andrea

  • Water Moccasin
  • Posts: 2372
reactor not reacting on 2011
« 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))
                       )
)
Keep smile...

MeasureUp

  • Bull Frog
  • Posts: 462
Re: reactor not reacting on 2011
« Reply #1 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?

Lee Mac

  • Seagull
  • Posts: 12914
  • London, England
Re: reactor not reacting on 2011
« Reply #2 on: April 27, 2010, 06:48:06 PM »
Andrea, do you get an error, or does the callback just not evaluate?

Andrea

  • Water Moccasin
  • Posts: 2372
Re: reactor not reacting on 2011
« Reply #3 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.
Keep smile...

Serge J. Gianolla

  • Guest
Re: reactor not reacting on 2011
« Reply #4 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