Author Topic: What's the best way to start learning about reactors  (Read 4134 times)

0 Members and 1 Guest are viewing this topic.

Coder

  • Swamp Rat
  • Posts: 827
What's the best way to start learning about reactors
« on: August 03, 2011, 11:30:43 AM »
Hello .

I wonder how to start with reactors and where to start form , could anyone tell me how to start with it from  A to Z please ?

Thanks .

Lee Mac

  • Seagull
  • Posts: 12913
  • London, England
Re: What's the best way to start learning about reactors
« Reply #1 on: August 03, 2011, 11:52:25 AM »
AfraLISP has a 3-part tutorial here:

http://www.afralisp.net/visual-lisp/tutorials/reactors-part-1.php

Or, the Visual LISP IDE Help Documentation has a tutorial under the section:

AutoLISP Tutorial  >  Acting with Reactors



alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: What's the best way to start learning about reactors
« Reply #2 on: August 03, 2011, 11:53:43 AM »
Coupled with a **** load of question asking and practice.  :lol:
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

TimSpangler

  • Water Moccasin
  • Posts: 2010
  • CAD Naked!!
Re: What's the best way to start learning about reactors
« Reply #3 on: August 03, 2011, 12:36:40 PM »
Hopefully you start with a full head of hair, 'cause once you've finished, you won't have any...  :lmao:
ACA 2015 - Windows 7 Pro
All Comments and Content by TimSpangler, Copyright © 2016

Coder

  • Swamp Rat
  • Posts: 827
Re: What's the best way to start learning about reactors
« Reply #4 on: August 03, 2011, 12:50:59 PM »
Thank you Lee for the link , it is very helpful .

Tim , do you recommend me not to continue learning and studying Reactors ?

hair gonna drop down now or later , correct ?  :-)

Thanks


irneb

  • Water Moccasin
  • Posts: 1794
  • ACad R9-2016, Revit Arch 6-2016
Re: What's the best way to start learning about reactors
« Reply #5 on: August 04, 2011, 04:52:52 AM »
Hopefully you start with a full head of hair, 'cause once you've finished, you won't have any...  :lmao:
Aint that the truth!

Reactors are POWERFUL ... but with the power to do "good" comes the possibility to screwup extremely easily! So when you do "learn" to use them, do so on things where you're not too worried about losing data / crashing ACad. Only once you've gotten your reactor to be "robust" by testing for as many scenarios as you can think of would I suggest you start using them in production.
Common sense - the curse in disguise. Because if you have it, you have to live with those that don't.

Lee Mac

  • Seagull
  • Posts: 12913
  • London, England
Re: What's the best way to start learning about reactors
« Reply #6 on: August 04, 2011, 08:54:17 AM »
IMO, that is one of the main difficulties in using reactors: you need to think of every possible eventuality and include code to allow for it. Even after doing so, I'm never confident that I have a robust application...

I think reactors are better used for applications which aren't tied to a drawing - i.e. reactors to change layers or system variables when certain commands are called, or reactors to log time etc, instead of reactors to create 'custom' objects, which react when modified.

TimSpangler

  • Water Moccasin
  • Posts: 2010
  • CAD Naked!!
Re: What's the best way to start learning about reactors
« Reply #7 on: August 05, 2011, 07:37:49 AM »
Thank you Lee for the link , it is very helpful .

Tim , do you recommend me not to continue learning and studying Reactors ?

hair gonna drop down now or later , correct ?  :-)

Thanks

Absolutely not, I would continue, but as others have said, they are not an easy animal to tame.  I have written a few but have only kept about half.  No matter how well you "Think" it's written, once you start testing it in the real world you realize that you still have a ton of work to do.  They never seem to work exactly how you want them (at least for me anyway)
ACA 2015 - Windows 7 Pro
All Comments and Content by TimSpangler, Copyright © 2016

dgorsman

  • Water Moccasin
  • Posts: 2437
Re: What's the best way to start learning about reactors
« Reply #8 on: August 05, 2011, 10:45:23 AM »
IMO, that is one of the main difficulties in using reactors: you need to think of every possible eventuality and include code to allow for it. Even after doing so, I'm never confident that I have a robust application...

I think reactors are better used for applications which aren't tied to a drawing - i.e. reactors to change layers or system variables when certain commands are called, or reactors to log time etc, instead of reactors to create 'custom' objects, which react when modified.

+1.  +2 if the drawings go outside your company at any point.  No telling who is going to do what with them (copy/paste, WBLOCK, DXFOUT/IN, etc.) that will break any internal linkages you set up for your own reactors.

Start out with something simple, such as a save reactor which makes an indexed copy of the file to a backup folder.
If you are going to fly by the seat of your pants, expect friction burns.

try {GreatPower;}
   catch (notResponsible)
      {NextTime(PlanAhead);}
   finally
      {MasterBasics;}

Coder

  • Swamp Rat
  • Posts: 827
Re: What's the best way to start learning about reactors
« Reply #9 on: August 05, 2011, 02:49:25 PM »
Thanks for the advises gentlemen .

Highly appreciated .