Hi,
I have created a sample extension .This is my Samplemenus.rb file.
I am not getting the message box when I click on 'publish'.Am I missing something here.
I guess the syntax is wrong somewhere. plz help.
require 'sketchup.rb'
module Sketchup::Sampletool
if defined?(Sketchup::Set)
Set = Sketchup::Set
end
PLUGIN = self
def pop_message
UI.messagebox('Hit')
end
#------------------------------------------------------------------------------
Add things to the Utilities menu
if( not $edrawings_menu_loaded )
sample_menu = UI.menu("Plugins").add_submenu("sample")
sample_menu.add_item("Publish") {pop_message }
$edrawings_menu_loaded = true
end