Author Topic: I need a reactor  (Read 1661 times)

0 Members and 1 Guest are viewing this topic.

Coder

  • Swamp Rat
  • Posts: 827
I need a reactor
« on: May 12, 2013, 07:01:55 AM »
Hello folks .

Every time I double click to enter a viewport I need to set the system variable NAVVCUBEDISPLAY  to zero value , can anyone of you experts write a reactor for me
to do that task ?

Many  thanks .

ribarm

  • Gator
  • Posts: 3291
  • Marko Ribar, architect
Re: I need a reactor
« Reply #1 on: May 12, 2013, 08:19:17 AM »
Not sure, but this is my try...

P.S. Make sure after you used it to disable it with (vlr-remove-all) or (vlr-remove Cmnd_Reac)...

Code - Auto/Visual Lisp: [Select]
  1.  
  2. (defun commandEnded ( reac data )
  3.   (if (eq (car data) "MSPACE")
  4.     (setvar 'navvcubedisplay 0)
  5.   )
  6. )
  7.  
  8. (setq Cmnd_Reac (vlr-command-reactor "Command reactor: "
  9.                   (list '(:VLR-commandEnded . commandEnded)
  10.                   )
  11.                 )
  12. )
  13.  
« Last Edit: May 12, 2013, 08:51:37 AM by ribarm »
Marko Ribar, d.i.a. (graduated engineer of architecture)

:)

M.R. on Youtube

Coder

  • Swamp Rat
  • Posts: 827
Re: I need a reactor
« Reply #2 on: May 13, 2013, 06:23:20 AM »
Not sure, but this is my try...

P.S. Make sure after you used it to disable it with (vlr-remove-all) or (vlr-remove Cmnd_Reac)...

Code - Auto/Visual Lisp: [Select]
  1.  
  2. (defun commandEnded ( reac data )
  3.   (if (eq (car data) "MSPACE")
  4.     (setvar 'navvcubedisplay 0)
  5.   )
  6. )
  7.  
  8. (setq Cmnd_Reac (vlr-command-reactor "Command reactor: "
  9.                   (list '(:VLR-commandEnded . commandEnded)
  10.                   )
  11.                 )
  12. )
  13.  

That worked , thank you so much .

But I did not understand your advise about to disable it with .........

Can you please kindly tell me what to do next with vlr-********* ?

Thanks