Context menu and PipeAlongPath.rb
-
I have two computers. A laptop with XP Pro, and desktop with Vista. On the laptop when using, “PipeAlongPath.rb”, the context menu works. However, on the Vista machine the context menu does not work.
This is a very usefull script for me, and I wish to express my gratitude to TIG for writing this script. I believe that TIG modified the script for the context menu, however right now I can not find any reference. The context menu is a real time saver for me, so I would like it to work on both machines.
Thanks in advance for any help and expressly to TIG for the script.
Ken
if( not file_loaded?("PipeAlongPath.rb") )###
###if( not file_loaded?("28-PipeAlongPath.rb") )###
UI.menu("Plugins").add_separator###
UI.menu("Plugins").add_item("Pipe Along Path") { pipe_along_path }###
###$submenu2.add_item("Pipe Along Path") { pipe_along_path }###
UI.add_context_menu_handler{|menu|menu.add_separator;menu.add_item("Pipe Along Path"){Sketchup.active_model.select_tool pipe_along_path.new}}
end -
Ken
I have the same problem, in fact I've had lots of problems with rubies on Vista. -
@unknownuser said:
I have two computers. A laptop with XP Pro, and desktop with Vista. On the laptop when using, “PipeAlongPath.rb”, the context menu works. However, on the Vista machine the context menu does not work.
This is a very usefull script for me, and I wish to express my gratitude to TIG for writing this script. I believe that TIG modified the script for the context menu, however right now I can not find any reference. The context menu is a real time saver for me, so I would like it to work on both machines.
Thanks in advance for any help and expressly to TIG for the script.
Ken
if( not file_loaded?("PipeAlongPath.rb") )###
###if( not file_loaded?("28-PipeAlongPath.rb") )###
UI.menu("Plugins").add_separator###
UI.menu("Plugins").add_item("Pipe Along Path") { pipe_along_path }###
###$submenu2.add_item("Pipe Along Path") { pipe_along_path }###
UI.add_context_menu_handler{|menu|menu.add_separator;menu.add_item("Pipe Along Path"){Sketchup.active_model.select_tool pipe_along_path.new}}
endI don't recall making the tweak ... BUT this will work without errors on Vista...
UI.add_context_menu_handler{|menu|menu.add_separator;menu.add_item("Pipe Along Path"){pipe_along_path}}
.
-
TIG
Thanks for the quick reply. Not sure where I got the script that is modified. I know I am not capable of modifying the script.
I tried you new code, and still have the same results.
Thanks for your help.
Ken
Advertisement