• Login
sketchucation logo sketchucation
  • Login
🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

Context menu and PipeAlongPath.rb

Scheduled Pinned Locked Moved Developers' Forum
4 Posts 3 Posters 600 Views 3 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    ken
    last edited by 7 Sept 2008, 20:09

    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

    Fight like your the third monkey on Noah's Ark gangway.

    1 Reply Last reply Reply Quote 0
    • L Offline
      linea
      last edited by 8 Sept 2008, 15:24

      Ken
      I have the same problem, in fact I've had lots of problems with rubies on Vista.

      1 Reply Last reply Reply Quote 0
      • T Offline
        TIG Moderator
        last edited by 8 Sept 2008, 18:55

        @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}}
        end

        I 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

        1 Reply Last reply Reply Quote 0
        • K Offline
          ken
          last edited by 8 Sept 2008, 22:05

          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

          Fight like your the third monkey on Noah's Ark gangway.

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          1 / 1
          • First post
            2/4
            Last post
          Buy SketchPlus
          Buy SUbD
          Buy WrapR
          Buy eBook
          Buy Modelur
          Buy Vertex Tools
          Buy SketchCuisine
          Buy FormFonts

          Advertisement