[Plugin] "Drill" extension for making holes
-
oh, as I have to "drill" about 1500 holes, THANK YOU for the plugin!
-
Thanks for the plug-in. It works at drilling a hole in my panel, but the diameter doesn't adjust, even though I'm entering a number in the vcd.
I looked at the sript in notepad and see the diameter number. So why isn't the diameter changing? Any suggestions?Regards, Les
-
Les, are you hitting Enter after typing the new dimension value? it works for me.
This plugin doesn't seem to utilize inferencing which makes it difficult to accurately place holes. I'd find this a really useful tool if it did.
-
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. -
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.
-
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.
-
@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...
-
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 exactly1cm
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 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 exactly1cm
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
-
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.
-
@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"
-
@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.
-
@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.
-
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
-
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.
-
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.
-
Don't beat yourself up...
We all get 'doh!' moments now and then, but few of us are brave enough to ask for help -
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.
-
@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.
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'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.
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.
Advertisement