solidworks-threaded-holes

Create ISO metric internal threaded holes with real thread features and verification evidence.

2.5k|223|Updated Mar 17, 2026
Ready to run
npx skills add https://github.com/wzyn20051216/solidworks-automation-skill --skill solidworks-threaded-holes-wzyn20051216
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: solidworks-threaded-holes
Source: https://github.com/wzyn20051216/solidworks-automation-skill/tree/main/subskills/solidworks-threaded-holes
Command: npx skills add https://github.com/wzyn20051216/solidworks-automation-skill --skill solidworks-threaded-holes-wzyn20051216

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve? This Skill automates the creation of production-ready internal threaded holes in SolidWorks, eliminating manual modeling of tap drills, thread features, and geometric verification. It generates verifiable STEP exports with structured evidence of thread representation. ## Core Features & Use Cases - Real Thread Features: Attempts Metric Tap thread creation with fallback to cosmetic threads and 3D helix evidence. - Specification Coverage: Supports M3–M12 ISO metric coarse and user-defined pitches with explicit tap drill specification for non-standard sizes. - Verification & Export: Generates SLDPRT, STEP, JSON parameters, review reports, and preview images; validates thread persistence after rebuild. - Use Case: Design a bracket requiring M6×1 blind threaded holes with 6H tolerance. The Skill creates the tap drill, thread feature, mouth chamfer, and exports a STEP file with structured evidence of whether a real thread or cosmetic thread persisted in the feature tree—no manual feature verification needed. ## Quick Start Run the script with thread size and output directory to create an M6 blind threaded hole in a rectangular test block with default geometry and export all artifacts.

Frequently Asked Questions about solidworks-threaded-holes

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create an M8×1 left-hand through hole with custom tap drill?▼

Use `--thread M8x1 --tap-drill 7.0 --through --handedness left` to override the default tap drill (6.75 mm) and create a through-hole with left-hand helix. The script validates that the custom drill is smaller than the nominal diameter before COM execution.

What happens if the real thread feature fails to create?▼

The script attempts `InsertCosmeticThread3` as fallback. If both fail, it generates a 3D spiral helix sketch in a separate preview image (`*_thread_evidence.bmp`), then hides the sketch in the standard model so only the tap drill and chamfer remain visible.

Does this Skill work with existing parts or only new test blocks?▼

Currently, the Skill creates new rectangular test blocks. Extending it to modify existing parts or position holes on arbitrary faces is listed as P1 priority in the roadmap and requires entity reference APIs and multi-face support.

How is thread depth validated against part thickness and pilot hole depth?▼

For blind holes, thread depth cannot exceed pilot hole depth; pilot hole depth cannot exceed part thickness minus 1 mm. For through holes, thread depth cannot exceed part thickness. The script validates these constraints before calling SolidWorks COM.

What information is included in the parameters JSON output?▼

The JSON records thread label, tap drill diameter, thread depth, thread class, handedness, and—crucially—`thread_attempts` (what APIs were tried and results), `thread_evidence` (feature tree inspection after rebuild), and final `thread_status` (real-thread-verified, cosmetic-thread-verified, or visible-helix-verified).

Why does the Skill reject non-standard metric sizes without an explicit tap drill?▼

Tap drill diameter depends on material, cutting vs. forming taps, and desired thread percentage; it cannot be reliably guessed from pitch alone. The Skill requires `--tap-drill` for any size not in the M3–M12 coarse table to ensure manufacturing intent is explicit.