Repository navigation
Modelled threads: standard sizes, external and internal, with depth and runout - #285
Merged
Merged
Conversation
…thread, from SolidWorks's die and tap profiles, coarse or fine, ISO 68-1 depth, ISO 3508 runout
…rm A/B undercut create_thread takes runout: 'fade' sweeps the Thread feature's end face out of the material along an arc tangent to the helix (any thread); 'undercut_a' / 'undercut_b' revolve a DIN 76-1:2025-10 Table 1 undercut (dg, g2, r, 30 degree flank) at the shoulder of an external metric thread. Refused before building: an undercut on an internal or inch thread, a pitch without a row, one wider than the thread, an axis off the main planes. A runout SolidWorks doesn't build removes the thread too. Live test passes on SolidWorks 2026.
…to just under the minor diameter (ISO 4753's chamfered end), made last, so a bolt starts in a nut; the runout stays at the shoulder The undercut and the lead-in share one sketch-and-revolve step. A lead-in on an internal thread is refused; if SolidWorks builds none, the thread and its runout are removed. The live demos give the M6 rod and the collar rod a lead-in and look at both ends side on.
…ed, length kept), so its groove runs out through the end face instead of starting in a flat-ended pocket, as in a real bolt
…'s end swept straight along the helix's tangent, tapering out of the round rod (M6: 1.72 mm); a tapped hole keeps the arc over DIN 76-1's x1. docs: the thread demos (a bolt-like rod; runouts and a lead-in) in Demos
# Conflicts: # CHANGELOG.md # README.md # docs/assets/progress/progress.json # docs/assets/progress/progress.svg # docs/assets/progress/tables.html # docs/assets/progress/tool-list-size.md # docs/getting-started/installation.md # docs/index.md # docs/llms.txt # docs/user-guide/tool-catalog/index.md # docs/user-guide/tools-overview.md # mkdocs.yml # src/solidworks_mcp/adapters/base.py # src/solidworks_mcp/adapters/circuit_breaker.py # src/solidworks_mcp/adapters/connection_pool.py # src/solidworks_mcp/adapters/mock_adapter.py # src/solidworks_mcp/adapters/pywin32_adapter.py # src/solidworks_mcp/tools/__init__.py # src/solidworks_mcp/tools/error_classifier.py # src/solidworks_mcp/tools/tool_hints.py # src/solidworks_mcp/tools/toolsets.py # tests/integration/test_skill_content.py # tests/solidworks_mcp/tools/test_error_classifier.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Modelled threads (queue item 43). Two new tools, both in beta.
list_thread_sizes(metricorinch)M6-style rows; elsewhere the size list decides;0.2500-20) also carry their fraction (1/4-20).create_threadedge_point, runs forlength, and is right- or left-handed.create_hole— its description now says to ask about modelling the thread when fasteners matter, and points to these two tools. It still models no thread by default, as decided.Probe and live tests (SolidWorks 2026 SP4)
design.md. Pictures showed a threaded rod and a threaded hole.create_hole's M6 tapped hole, then an internal M6 thread in its 5 mm tap drill: 40.3 mm³;Spec:
openspec/changes/modelled-threads/. Research and the decisions behind it:openspec/research/modelled-threads.md.Checks
This PR touches the same lists as #284 (tool counts, registration, the core toolset, the layer tests). Whichever merges second needs a small merge; I'll do it.
Open questions
Should the runout be modelled as geometry?Yes; see The runout, modelled below.The runout, modelled (added after review)
create_threadtakes arunoutoption:fadefollows the second video. It sweeps the Thread feature's end face along an arc tangent to the helix, so the groove runs out of the material over DIN 76-1's normal runout x1. It works on any thread.undercut_aandundercut_bcut a DIN 76-1 Form A or Form B thread undercut at the shoulder. The dimensions (dg, g2 and r, with a 30° flank) come from DIN 76-1:2025-10 Table 1. This is for external metric threads only.The following are refused before anything is built: an undercut on an internal or inch thread, a pitch with no row in the table, an undercut wider than the thread, and an axis that isn't on the Front, Top or Right plane. If SolidWorks doesn't build the runout, the thread is removed as well.
Live test
test_thread_runoutspasses on SolidWorks 2026:invalid_input).I checked the exported pictures.