solid.Shape.hole
solid.Shape: S = hole (S, P, D, DEPTH)
solid.Shape: S = hole (…, Name, Value, …)
Drill holes into a shape.
S = hole (S, P, D, DEPTH) drills a
hole of diameter D millimetres at every row of the
M-by-3 matrix P, each starting at its point and running
down the z axis, DEPTH millimetres deep. An
Inf DEPTH drills right through, however thick the part.
The point is where the hole’s axis meets the surface of the part, and
DEPTH is measured from it, as a drawing dimensions a hole. The
drill comes from outside: everything on the axis before the point is
cleared too, at the widest diameter of the hole, so a hole entering a
sloping or curved face is clean all round. A hole started under
material that its axis passes through first cuts that material as
well. All the holes are cut in one operation. A hole that would
remove nothing, its axis missing the part or its point too far from
it for DEPTH to reach, is an error naming the point, as a thread
whose axis meets no bore or cylinder is for solid.Shape.thread.
P may instead be a geom.UCS, such as geom.UCS
(V) picks off a face in the viewer: the hole starts at its origin
and runs against its normal, which points out of the part, so its
normal sets the direction. With 'At', a hole is drilled at
every point given in the plane of the UCS instead, which places a bolt
circle or a row of holes on a face in one call.
D may instead name an ISO metric thread from M1 to M64 with a
diameter and pitch of ISO 261: a coarse thread by its diameter, as
'M6', a fine one with its pitch, as 'M10x1.25'. The
hole is then drilled for tapping that thread by hand, and the thread
itself is cut by solid.Shape.thread. The drill is the one ISO
2306:1972 lists for the thread in its tables 1 and 2, so 'M6'
drills 5 millimetres and 'M8' 6.8; for a thread it does not
list, M60 and M64 among them, it is the rule ISO 2306 states, the
nominal diameter less the pitch.
With 'Custom', D may name a thread of any diameter and
pitch, as 'M16x0.8', or 'M6.35x1.27' for the 1/4-20
UNC of an imperial screw, whose basic profile is the same. Its drill
is the nominal diameter less the pitch rounded to a step of 0.05
millimetres, the step nearest that inside the band below.
Every drill lies in the 6H tolerance band of the thread’s minor
diameter, from D_1, the nominal diameter less 1.0825 P,
up by the tolerance of ISO 965-1:1998, 13.3.2, table 3, so a drawing
that states 6H is met. At a pitch of 0.25 and 0.2, where ISO 965-1
has no grade 6, the band is the coarsest grade it has, 5 and 4. Tough
materials take a larger drill than soft ones, and 'Material'
and 'Engagement' choose another drill inside the band. For a
custom thread the drills are the steps of 0.05 millimetres, and a band
too narrow to hold one, at the finest pitches, is an error naming the
thread. A drill chosen otherwise is the ISO 2306 drill or one of the
sizes of the twist drills in RUKO’s catalogue, chapter 1.01
Twist drills (2014): DIN 338 type N, HSS ground, article 214,
0.3 to 20 millimetres, pages 54 to 56; DIN 345 type N, HSS, article
204, 10 to 60 millimetres, pages 78 and 79.
A tapping hole is countersunk at its entry, as IS 1369 (Part 3):1995,
prepared from DIN 76-1:1983, draws the entry of an internal thread:
120 degrees, and 1.05 times the nominal diameter across at the
surface, the largest its band from the nominal diameter allows, 6.3
for M6, so that the tap starts square and the thread starts clean. A
hole drilled through, with an Inf DEPTH or one that
reaches past the part, is countersunk alike where its axis last leaves
the part. 'Countersink' false leaves both out, and numbers
size both. A tapping hole takes no counterbore.
A tapping hole is expected to be drilled, not milled, so a blind one
ends in the cone the point of a 118 degree twist drill leaves, beyond
DEPTH, as the drawing of a blind tapped hole in IS 1369 (Part 3)
shows it. 'Tip' gives another angle, and false a flat bottom.
Name/Value pairs shape the hole:
'Direction'[0, 0, -1] by default. It cannot be given when P is a
geom.UCS.'At'geom.UCS
P, one hole at each, all against its normal; the UCS origin alone
by default. It applies only when P is a geom.UCS.'Material''stainless' or 'nickel', takes the largest drill inside
the band, and 'steel', 'aluminium', 'brass',
'castiron' and 'plastic' keep the ISO 2306 drill. The
tough ones are those OSG’s chart Tap Drill Size and Pitch
Diameter Limit, volume 3 (2024), names hard or tough: stainless
steel, nickel steel, Monel, cast steel and drop forgings.'Engagement''Material'.'Custom''Clearance''fine', 'medium' or
'coarse': the hole is the clearance hole of ISO 273 in that
series for a screw of the thread, not a hole for tapping it, 6.6 for
M6 in the medium series.'Counterbore'[CD, CDEPTH]: a flat-bottomed bore of diameter
CD, wider than the hole, CDEPTH deep, shallower than the
hole, for the head of a cap screw. With a named thread and
'Clearance', true takes the counterbore of IS 3406 (Part 2)
for a socket head cap screw of ISO 4762, and 'washer' the one
for the same screw on a plain washer. A tapping hole takes none.'Countersink'[CD, ANGLE] or [CD,
ANGLE, CDEPTH]: a conical seat of diameter CD at the
surface, wider than the hole, with an included angle of ANGLE
degrees, 90 by default as for ISO countersunk screws, below a cylinder
of the same diameter CDEPTH deep, none by default. It must be
shallower than the hole. With a named thread and 'Clearance',
true takes the countersink of IS 3406 (Part 1) for the countersunk
heads of ISO 7721, and 'socket' the one for a hexagon socket
countersunk screw of ISO 10642. A tapping hole takes the countersink
of an internal thread by default, as the tapping holes above describe;
false leaves it out, and numbers replace it.'Tip' A counterbore and a countersink cannot both be given, and a tip applies
only to a blind hole. The standard ones need a named thread, and
those for a screw head 'Clearance', fine or medium;
solid.holespec gives their sizes, and the sizes of every hole
for a named thread, before it is drilled. A hole may break into
another, but holes that would cut a solid of S into pieces are an
error, as a bore reaching the roots of a knurl, which leaves its teeth
loose. Drilling the empty shape leaves it empty.
## A plate with four counterbored holes for M6 cap screws S = solid.box (80, 40, 12); P = [10, 10, 12; 70, 10, 12; 10, 30, 12; 70, 30, 12]; S = hole (S, P, 6.6, Inf, 'Counterbore', [11, 6.5]); |
## Four holes tapped M5 in stainless steel on a bolt circle of 30 S = solid.cylinder (25, 10); U = geom.UCS ([0, 0, 1], [0, 0, 10]); XY = 15 * [1, 0; 0, 1; -1, 0; 0, -1]; S = hole (S, U, 'M5', 8, 'At', XY, 'Material', 'stainless'); |
See also: solid.Shape.thread, solid.holespec, solid.threadspec, solid.Shape.subtract, solid.cylinder
Source Code: solid.Shape