Test Driving Your Reactors
By now, you should have all the necessary pieces in place to use some live reactors.
To test the reactor code
- Load all the source code from your project. (Click the Load Source Files button in
the gpath project window.) - Start the C:GPath function.
The program will draw a garden path for you, just as you were able to in Lesson 5.
You will not see anything interesting at first. - Try the following actions after you draw the path:
- Move a polyline vertex. Pick the polyline and turn on its grips, then drag a vertex
to a new location. - Stretch the polyline.
- Move the polyline.
- Erase the polyline.
- Move a polyline vertex. Pick the polyline and turn on its grips, then drag a vertex
Examine the messages that appear. You are watching the behind-the-scenes activities
of a powerful capability.
(If your application is not working correctly and you do not want to take the time
to debug it right now, you can run the sample code provided in the TutorialVisualLISPLesson6 directory. Use the Gpath6 project in that directory.)
in AutoCAD, you cannot return to Visual LISP by pressing Alt+Tab, or by clicking to
activate the Visual LISP window. If this happens, simply enter vlisp at the AutoCAD Command prompt to return to Visual LISP.
now, you should have all the necessary pieces in place to use some live reactors. To test the reactor code Load all the source code from your project.reactors. To test the reactor code Load all the source code from your project.reactors. To test the reactor code Load all the source code from your project.Test Driving Your Reactors. Next topic: Wrapping Up Lesson …Test Driving Your Reactors. Next topic: Wrapping Up Lesson …Test Driving Your Reactors · Examining …Test Driving Your Reactors.Test Driving Your Reactors …Test Driving Your Reactors …Test Driving Your Reactors >. Examining Reactor Behavior in Detail. With a stack of scrap paper, start tracing the reactor events within the …