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

    [Plugin] "Drill" extension for making holes

    Scheduled Pinned Locked Moved Plugins
    36 Posts 22 Posters 35.1k Views 22 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.
    • D Offline
      Dadio61
      last edited by

      Dave R,
      Thanks for the suggestion on using the enter key. It works fine now.
      I noticed that the unit of measure came up in the vcd also. In my case it is in millimeters.
      tried several different hole sizes, from five millimeter to twenty millimeter, and all worked. This will work good enough for a model representation.
      Thanks for your help.

      1 Reply Last reply Reply Quote 0
      • R Offline
        RiseUp
        last edited by

        I've edited the plugin to include snapping/inferencing. That was the deal breaker for me—without snapping, this plugin was not useful to me. But with it, I will be using this all the time!

        Thank you to lunkwill (the original author) and TIG (another tweaker) for all their work!

        Hope you find this as useful as I did.


        Updated to include snapping/inferencing.

        1 Reply Last reply Reply Quote 0
        • P Offline
          Pants
          last edited by

          Does this really work for others?

          I just installed the latest-gen plugin, and for me, it's got a drawback that makes it unusable: the diameter of the hole can't be changed. My various entries of different diameters do show up in the text-box, but I've been machine-gunning test-holes for a few minutes, and nothing about the diameter changes from one to the next, whether I've got "0.1" in the box or "11": all measure out at 0.875" (7/8"), which is the default hole-size.

          1 Reply Last reply Reply Quote 0
          • G Offline
            glro
            last edited by

            @pants said:

            Does this really work for others?

            I just installed the latest-gen plugin, and for me, it's got a drawback that makes it unusable: the diameter of the hole can't be changed. My various entries of different diameters do show up in the text-box, but I've been machine-gunning test-holes for a few minutes, and nothing about the diameter changes from one to the next, whether I've got "0.1" in the box or "11": all measure out at 0.875" (7/8"), which is the default hole-size.

            for me it is unstable

            sometimes it works

            most f the times it doesn't...

            1 Reply Last reply Reply Quote 0
            • TIGT Offline
              TIG Moderator
              last edited by

              You must press <enter> after typing the new size?

              Also that size is currently always defaulting to decimal inches.
              BUT if you edit the file at:
              @@drill_diameter = 0.875
              to read
              @@drill_diameter = 0.875**.inch*****
              then it'll work with any units you have setup or you input, taking unsuffixed values as 'current units' or those with suffixes alternatively: so if you are working in inches but want one hole at exactly 1cm type that +<enter>...
              ***If you normally work in say 'mm' change it to default to say '10mm' initially, if your model-units are mm then typing 12 + <enter> will make a 12mm hole...
              I.E. @@drill_diameter = 10.mm

              TIG

              1 Reply Last reply Reply Quote 0
              • G Offline
                glro
                last edited by

                @tig said:

                You must press <enter> after typing the new size?

                Also that size is currently always defaulting to decimal inches.
                BUT if you edit the file at:
                @@drill_diameter = 0.875
                to read
                @@drill_diameter = 0.875**.inch*****
                then it'll work with any units you have setup or you input, taking unsuffixed values as 'current units' or those with suffixes alternatively: so if you are working in inches but want one hole at exactly 1cm type that +<enter>...
                ***If you normally work in say 'mm' change it to default to say '10mm' initially, if your model-units are mm then typing 12 + <enter> will make a 12mm hole...
                I.E. @@drill_diameter = 10.mm

                yes, it works now

                i usually use meter as default unit

                I changed "@@drill_diametre = 1" into " @@drill_diametre = 1.m" in the plugin, and typed "enter" after changing the diameter

                thank you

                1 Reply Last reply Reply Quote 0
                • Dave RD Offline
                  Dave R
                  last edited by

                  I'm curious about why hitting the Enter key seems to be a problem with this plugin when Enter is so frequently used with the native tools and there are many other plugins that have the same requirement. The fellow who posted immediately above the post with the most recent revision had the same problem which was solved by hitting Enter.

                  Etaoin Shrdlu

                  %

                  (THERE'S NO PLACE LIKE)

                  G28 X0.0 Y0.0 Z0.0

                  M30

                  %

                  1 Reply Last reply Reply Quote 0
                  • G Offline
                    glro
                    last edited by

                    @dave r said:

                    I'm curious about why hitting the Enter key seems to be a problem with this plugin when Enter is so frequently used with the default tools and there are many other plugins that have the same requirement. The fellow who posted immediately above the post with the most recent revision had the same problem which was solved by hitting Enter.

                    which default tools?

                    the VCB, Ruby console, ...?

                    most plugins input are made through a dialog box, and in this case, it is obvious: you click "OK" on the button

                    With the VCB, there is no button... you are just supposed to know it is necessary to hit "enter"

                    1 Reply Last reply Reply Quote 0
                    • Dave RD Offline
                      Dave R
                      last edited by

                      @unknownuser said:

                      With the VCB, there is no button... you are just supposed to know it is necessary to hit "enter"

                      Exactly. The native tools use the VCB and you have to hit Enter to make the setting. There are a lot of plugins which take their inputs via the VCB, Bezier.rb, BZ_Spline, Curvemaker, etc.

                      Etaoin Shrdlu

                      %

                      (THERE'S NO PLACE LIKE)

                      G28 X0.0 Y0.0 Z0.0

                      M30

                      %

                      1 Reply Last reply Reply Quote 0
                      • P Offline
                        Pants
                        last edited by

                        @glro said:

                        @dave r said:

                        I'm curious about why hitting the Enter key seems to be a problem with this plugin when Enter is so frequently used with the default tools and there are many other plugins that have the same requirement. The fellow who posted immediately above the post with the most recent revision had the same problem which was solved by hitting Enter.

                        which default tools?

                        the VCB, Ruby console, ...?

                        most plugins input are made through a dialog box, and in this case, it is obvious: you click "OK" on the button

                        With the VCB, there is no button... you are just supposed to know it is necessary to hit "enter"

                        Yes, my mistake in not reading previous comments carefully - but as I think Glro indicates, in Sketchup, I have learned to resist what's usually the mistake of using an <enter> in the VCB, after getting used to all /other/ VCB uses (at least for me, thus far) virtually punishing me for what, in SU, is usually the MISTAKE of hitting <enter>. Yes, the <enter> requirement is typical of /other/ CAD software - and pretty much everywhere else in the world of data "entry," where nothing is "entered" until one hits "enter" - but I personally haven't used other plugins where this is the norm.

                        Reading sloppily through the above exchanges, I'd taken the mention of using <enter> as "you did't make the mistake of using "enter," did you?" and then somehow completely missed the response - and that was before I'd installed the plugin a few hours later, by which time I'd forgotten all of that anyway.

                        1 Reply Last reply Reply Quote 0
                        • BoxB Offline
                          Box
                          last edited by

                          I'm not sure I understand how you can use SU and see hitting enter as a mistake. Enter is the norm.

                          Draw a circle, type 29s enter and it is a 29 sided circle, draw a line and type 357mm enter and it is a line 357mm long, ctrl move type 5x enter etc etc etc

                          1 Reply Last reply Reply Quote 0
                          • Dave RD Offline
                            Dave R
                            last edited by

                            David, like Box, I am confused as to how you think hitting the Enter key is a mistake. How in the world do you draw anything with precision if you aren't using Enter after typing values for the various operations you need to do? In fact there's no point in typing any values in the VCB is you don't hit the Enter key afterward.

                            Etaoin Shrdlu

                            %

                            (THERE'S NO PLACE LIKE)

                            G28 X0.0 Y0.0 Z0.0

                            M30

                            %

                            1 Reply Last reply Reply Quote 0
                            • P Offline
                              Pants
                              last edited by

                              I'm confused, too, looking back on this. I think it was low blood sugar and sleep deprivation that doubled me over, and the purple meth that did me in. Maybe my cat was walking on my keyboard, or...I don't know. I'd like to delete my first post here and all following, please. Where do I click for that?

                              My bad.

                              1 Reply Last reply Reply Quote 0
                              • TIGT Offline
                                TIG Moderator
                                last edited by

                                Don't beat yourself up...
                                We all get 'doh!' moments now and then, but few of us are brave enough to ask for help 😒

                                TIG

                                1 Reply Last reply Reply Quote 0
                                • J Offline
                                  jimtyp
                                  last edited by

                                  I got the drill plugin installed and it works great as long as I have parallel faces, so a rectangular block. I have an angle block that I need to drill a hole in, and it doesn't work for that. Any ideas on how to make this cool plugin work for angle blocks? That is, where the bottom face and the top face are not parallel.

                                  1 Reply Last reply Reply Quote 0
                                  • TIGT Offline
                                    TIG Moderator
                                    last edited by

                                    @jimtyp said:

                                    I got the drill plugin installed and it works great as long as I have parallel faces, so a rectangular block. I have an angle block that I need to drill a hole in, and it doesn't work for that. Any ideas on how to make this cool plugin work for angle blocks? That is, where the bottom face and the top face are not parallel.
                                    To do this in code could be very awkward...
                                    However it's easy done manually.
                                    Draw a circle of the right size on the 'front' face that you are drilling perpendicularly through.
                                    Use the PushPull tool on that face and push it through the 'back' face that is angled.
                                    Go well through so there is a cylinder sticking out of the 'back' face.
                                    Make sure View > Hidden Geometry is OFF.
                                    Now Select that cylinder's curved surface.
                                    Right-click Context-menu > Intersect with model...
                                    The cylinder now has a 'cut-line' where it passes through the 'back' face.
                                    Select the end circle [edges] of that cylinder and press <delete>
                                    The part of the cylinder lying beyond the 'back' face is now gone.
                                    Finally select the face covering the end of the would-be hole - the hole is made as desired.
                                    Capture.PNG
                                    You can even drill at an angle.
                                    Away from other geometry, make a cylinder the right diameter and much longer than the required hole depth.
                                    Select its surfaces and Right-click Context-menu > Reverse... to make sure it's inside out - later on we will be seeing the inside of it as the walls of the 'drilled hole'...
                                    Make a temporary group of the cylinder so that you can move and rotate it without it sticking to other things unexpectedly.
                                    Locate the cylinder-group so it passes through the angled faces as desired.
                                    Tip: use inferences and guides to assist in accurately placing it.
                                    Now Explode the group so the cylinder merges with the main geometry.
                                    Select the cylinder's curved surface.
                                    Right-click Context-menu > Intersect with model...
                                    The cylinder now has 'cut-lines' where it passes through both angled faces.
                                    Select the two end circles [edges] of that cylinder and press <delete>
                                    The parts of the cylinder lying beyond the faces are now gone.
                                    To complete select the 'oval' faces left at the two ends of the would-be hole and press <delete> - leaving the 'angled' hole as desired.

                                    TIG

                                    1 Reply Last reply Reply Quote 0
                                    • Dave RD Offline
                                      Dave R
                                      last edited by

                                      TIG's method is a good way especially if you're a beginner. It uses basic methods that one needs to know to use SketchUp effectively. If you really want to use a plugin for drilling holes, you might have a look at WWX Drill. Although it won't automatically remove the skin over the hole when the opposite faces aren't parallel, it will make it easier to handle because you can finish up as TIG described.
                                      Setup the plugin to drill holes deeper than the thickness of the work. This will do essentially the same thing as TIG describes. Note, you can also set it up to drill countersunk and counterbored holes.
                                      After the holes are drilled, you'll need to make an intersection as TIG showed. This is before the intersections are made. No edges where the holes come through the angled face.
                                      After Intersect Faces was used.
                                      Delete the unneeded parts of the holes.
                                      Delete the skins over the holes. Finished!

                                      Although it isn't indicated on the website, this plugin works fine in SU2014 and SU2015. And you might have a look at the other plugins available there. I use the Dovetail and Mortise & Tenon plugins frequently.

                                      Etaoin Shrdlu

                                      %

                                      (THERE'S NO PLACE LIKE)

                                      G28 X0.0 Y0.0 Z0.0

                                      M30

                                      %

                                      1 Reply Last reply Reply Quote 0
                                      • cottyC Offline
                                        cotty
                                        last edited by

                                        @jimtyp said:

                                        I got the drill plugin installed and it works great as long as I have parallel faces, so a rectangular block. I have an angle block that I need to drill a hole in, and it doesn't work for that. Any ideas on how to make this cool plugin work for angle blocks? That is, where the bottom face and the top face are not parallel.

                                        You can have a look at Fredo6s VisuHole plugin.

                                        my SketchUp gallery

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

                                        Advertisement