sketchucation logo sketchucation
    • Login
    ℹ️ GoFundMe | Our friend Gus Robatto needs some help in a challenging time Learn More

    Need a little help with Ruby Programing

    Scheduled Pinned Locked Moved Plugins
    5 Posts 3 Posters 289 Views
    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

      Need a little help. I have the plugin drill, which will drill a round hole though a selection, from face to face. However with other plugins, I see that the when the cursor is close to my selection it will show that this vertex has been selected with a red "X". Using drill this does not happen. I wish to modify drill so this happens.

      So I am trying to pick out from other plugin, just what part of the code makes this happen.

      On another note, I notice in the ruby console, that while running drill, there seems to be some errors, however, I will address them later.

      Thanks in advance for your help.

      Ken

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

      1 Reply Last reply Reply Quote 0
      • Chris FullmerC Offline
        Chris Fullmer
        last edited by

        Oh yeah, did you post this a week or two ago too? This request sounds oddly familiar. I even looked at the code (maybe it was a different plugin though?, this sounds all too familiar). Anyhow, it is a matter of adding this method to the plugin:

        draw(view) ip.draw view end

        Something like that. The variable "ip" will need to be changed to match the variable name the script uses for the "inputpoint". And it might require adding the line view.invalidate to the end of the OnMouseMove method. Do you have a copy of the plugin I could look at? Is it hosted on Didier's script site?

        Lately you've been tan, suspicious for the winter.
        All my Plugins I've written

        1 Reply Last reply Reply Quote 0
        • kenK Offline
          ken
          last edited by

          No, this is my first post on this subject. Thanks for the help.

          My problem, was I didn't even know where to look for this info. I have looked at the API post, but couldn't find anything that helped.

          Again thanks for your help.

          Ken

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

          1 Reply Last reply Reply Quote 0
          • Chris FullmerC Offline
            Chris Fullmer
            last edited by

            That is odd, I am 100% sure I read this request recently.

            Anyhow, it will take a little more work than the small snippets I posted. I see it needs an OnMouseMove method added to it. I can probably figure out what it needs today. Porbably after my Sunday aftertnoon nap/Football game watching. So maybe in the next 6 hours or so I'll post what you need.

            Chris

            Lately you've been tan, suspicious for the winter.
            All my Plugins I've written

            1 Reply Last reply Reply Quote 0
            • thomthomT Offline
              thomthom
              last edited by

              There was an thread like this not too long ago.
              The topic crops up from time to time.

              Thomas Thomassen — SketchUp Monkey & Coding addict
              List of my plugins and link to the CookieWare fund

              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