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

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.
  • K Offline
    ken
    last edited by 17 Oct 2010, 15:56

    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
    • C Offline
      Chris Fullmer
      last edited by 17 Oct 2010, 16:08

      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
      • K Offline
        ken
        last edited by 17 Oct 2010, 16:24

        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
        • C Offline
          Chris Fullmer
          last edited by 17 Oct 2010, 22:00

          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
          • T Offline
            thomthom
            last edited by 18 Oct 2010, 06:23

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

            Advertisement