• Skip to main content
  • Skip to primary sidebar
  • Skip to footer
blog.draftsperson.net

blog.draftsperson.net

the art of technical drawing

blog.draftsperson.net

MACHFEAT LISP: Draw Machined Hole Features in Section

August 6, 2026

MACHFEAT draws the machined features that fill a mechanical detail, at any diameter, depth and rotation: drilled, tapped, counterbore, countersink, a tapped hole in plan, and a dowel pin with chamfered ends. FINISHMARK places the surface roughness symbol, which AutoCAD has never had a native equivalent for.

What MachineFeature does

Three layers are created on first use and left alone afterwards: MACHFEAT-OBJECT for the cut outline, MACHFEAT-HIDDEN for thread envelopes in HIDDEN linetype, and MACHFEAT-CENTRE for hole centrelines in CENTER linetype.

How to use it

  1. Load the routine with APPLOAD, or put it on your support file search path.
  2. Type MACHFEAT.
  3. Choose the feature type.
  4. Give the diameter, depth and rotation, and pick the position.
  5. Type FINISHMARK to place a surface roughness symbol.

How it works

The drill point is not decoration. The cone at the bottom of a drilled hole is where the drill actually stops, and a detail that omits it or draws it flat will be queried by whoever machines the part.

It is drawn at a 120° included angle, the conventional approximation of the 118° standard twist drill point and the one every drawing office uses. That gives the point a height of radius × tan 30°, which is why the slant length works out as radius ÷ cos 30° — one constant, 0.866025, used in three of the six features.

Depth is measured to the full diameter, not to the tip. That is how a drilled depth is specified and inspected. The point is then added below it.

The tap drill is 84% of the thread outside diameter, which is about right for a coarse thread across the common sizes. The thread envelope is drawn over it in hidden line, stopping one sixteenth short of the drill depth — threads never run to the bottom of a hole, because the tap has a lead.

Notes and limits

  • Depth is to the full diameter, with the point below it. Specify it the way it is inspected.
  • The tap drill is a coarse-thread approximation. For a fine thread, check it against a tapping drill chart.
  • The three layers are created once and not touched again, so your linetypes survive.
  • One undo group per feature.

Download and details

NameMachineFeature — machined hole features in section, at any size
DownloadMachineFeature.lsp — 20.9 KB, plain AutoLISP source. Downloads directly; no zip to unpack.
TypeAutoCAD AutoLISP routine
CommandsFINISHMARK, MACHFEAT
Requiresnothing beyond a CAD platform with AutoLISP.
Source size20.9 KB, 487 lines
Error handlingYes — a *error* handler restores every system variable it changed, on cancel as well as on error.
UndoThe whole operation is wrapped in a single undo group, so one U reverses all of it.
CompatibilityAutoCAD (any release with AutoLISP), BricsCAD, ZWCAD, GstarCAD, ProgeCAD and other IntelliCAD-based platforms. AutoCAD LT needs a LISP enabler. No .NET, no ObjectARX, no installer.
AuthorYZ, August 2026
LicenceFree to use, supplied “as is” with no warranty.

References

  • ISO metric tap and die chart — drill sizes and pitches for tapped holes
  • Standard hole and slot sizes — AISC nominal hole dimensions
  • SCREWTHREAD LISP — drawing the thread itself
  • More free AutoLISP routines on this site
  • Wisey’s Steel Shapes — free structural steel section drawing program

Filed Under: AutoLISP Routines

Primary Sidebar

Subscribe to our Youtube Channel

Post CAD drafting jobs on Freelancer.com. and get some free money to do this.

Categories

  • American Steel Industry (4)
  • AutoCAD Articles & Reference (30)
  • AutoCAD Bugs & Problems (19)
  • AutoCAD Tips (29)
  • AutoCAD Tutorials (54)
  • AutoLISP Routines (328)
  • AutoLISP Tutorials (15)
  • CAD Standards (7)
  • Civil 3D (7)
  • Civil Drafting (4)
  • Dimensions (2)
  • Drafting Funnies (71)
  • Drafting History (9)
  • Drafting Standards (84)
  • Electrical Drafting (2)
  • General IT reference (7)
  • Geometry (15)
  • GIS (2)
  • Hatch Patterns (12)
  • Office Life Hacks (3)
  • PT (1)
  • Revit Tutorials (54)
  • Steel Detailing (14)
  • Structural Drafting (26)
  • Technical Dictionary (61)
  • Useful Website Links (19)

Footer

Free downloads

  • Free AutoLISP routines
  • Free hatch patterns
  • SHX fonts & text styles
  • Numbering LISP collection
  • ISO 3098B font

Reference charts

  • AWS weld symbols chart
  • Steel detailing chart
  • Hole & slot sizes
  • Bolt edge distance
  • ANSI & ARCH paper sizes
  • How to fold an A1 drawing

Useful links

  • CAD blocks (DWG)
  • Revit families
  • structuraldrafter.com
  • cad-corner.com
  • About
  • Privacy policy

Provided for free with no warranty · Log in