<< All versions

Skill v1.0.1

currentAutomated scan100/100
ghbalf/freecad-ai/fastener-hole

+1 new

──Details
PublishedOctober 24, 2026 at 12:46 AM
Content Hashsha256:8acb95a63102361f...
Git SHA08d637d145db
Bump Typepatch
Compare with v1.0.0
──Files
Files (1 file, 1.9 KB)
SKILL.md1.9 KBactive
SKILL.md · 63 lines · 1.9 KB

version: "1.0.1" name: fastener-hole description: "Create standard fastener holes: clearance, counterbore, or countersink."


Fastener Hole Patterns

Create standard fastener holes: clearance, counterbore, or countersink.

Hole types

Clearance holes (through-hole for bolt to pass through)

SizeClose fitNormal fit
M22.2mm2.4mm
M2.52.7mm2.9mm
M33.2mm3.4mm
M44.3mm4.5mm
M55.3mm5.5mm
M66.4mm6.6mm
M88.4mm9.0mm

Counterbore (socket head cap screw)

SizeCB diameterCB depth
M36.5mm3.0mm
M48.0mm4.0mm
M510.0mm5.0mm
M611.5mm6.0mm
M815.0mm8.0mm

Countersink (flat head screw, 90 degree)

SizeCS diameter
M36.3mm
M48.4mm
M510.4mm
M612.6mm

Parameters to ask (if not provided)

  • Screw size: M2 through M8
  • Hole type: clearance / counterbore / countersink
  • Fit: close / normal (for clearance holes)
  • Target object: body or feature to cut into
  • Positions: list of XY coordinates, or pattern (linear/circular)
  • Pattern: if applicable — count, spacing, or bolt circle diameter + count

Construction

  1. Create a sketch on the specified face
  2. For each hole position, add a circle (clearance diameter)
  3. Pocket through-all for the clearance hole
  4. For counterbore: add a second larger circle, pocket to CB depth
  5. For countersink: use a cone (Part.makeCone) to create the 90-degree chamfer

Cleanup

After construction, hide all sketches for a clean viewport:

python
for obj in App.ActiveDocument.Objects:
if obj.TypeId == "Sketcher::SketchObject":
obj.Visibility = False
← v1.0.0All versions