Continuing the discussion from How to create a component deinition without drawing?:
There is nothing you normally do to "pull in the standard API hooks."
The API “hooks” are written on the C-side and compiled into the application binary. They are loaded when SketchUp is loaded, and all ready to go.
(There is a command line switch to start SketchUp with no Ruby API, but it’s use is obscure.)
This comment (above) has become a bad joke. It results from a SketchUp staff member trying to “dumb down” the reason for the
require statement below:
require code IF you need to use it.
And you haven’t. Read the “sketchup.rb” file. It’s in the “Tools” sub-folder of the application directory.
I’d like to compile a list of all examples that have this erroneous “pull in hooks” comment so they can be purged.
Please post the filenames in this thread.