sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    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.
    • kenK Offline
      ken
      last edited by

      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

        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
        • TIGT Offline
          TIG Moderator
          last edited by

          @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
          • kenK Offline
            ken
            last edited by

            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
            • First post
              Last post
            Buy SketchPlus
            Buy SUbD
            Buy WrapR
            Buy eBook
            Buy Modelur
            Buy Vertex Tools
            Buy SketchCuisine
            Buy FormFonts

            Advertisement