Observer is one of a set of new Ruby classes provided as part of SketchUp 6.0.
"The Ruby Observer Mechanism is designed to allow Ruby scripts to be notified when objects change in the SketchUp application or model. For example, you can create an observer class that "listens" to when SketchUp quits and then performs some action."
"Create a Ruby class of a specific observer type, such as AppObserver, override the desired methods, such as onQuit, and add an instance of the observer to the applicable objects in your Ruby script (using the add_observer method for that object). Refer to individual observer interfaces for further information."
There are 16 observers, to run routines when various things happen to the model, entities, etc.

See Also

Editing History

Render Plus April 18, 2007