Well, it wouldn't have 'been clear in the morning' without your clarification, Jim, but it now is - THANKS.
I now see that although the Class CylTool is defined, the function to create the tool is NOT 'def'ined.
So my slightly modified code now works to provide Draw menu entries for 'Construction line' and 'Cylinder - on axis' with the addition of just these lines at the end of the linetool.rb script where only the first four lines were originally.
These functions provide shortcuts for selecting the new tools
def linetool
Sketchup.active_model.select_tool LineTool.new
end
def cyltool
Sketchup.active_model.select_tool CylTool.new
end
Add tools to Draw menu
if( not file_loaded?("linetool.rb") )
UI.menu("Draw").add_item("Construction line") { linetool }
UI.menu("Draw").add_item("Cylinder - on axis") { cyltool }
end
file_loaded("linetool.rb")
I now just want to add a few refinements, which I can see how to do (following the excellent examples elsewhere in this forum and in the script repositories), to:
specify the radius or diameter of the cylinder
make the drawn cylinder into a group or component automatically
design PNG graphics to indicate which tool is in use, instead of the generic white arrow.
Thanks again for such a prompt and helpful response - much appreciated.
John McC