Skip to content

About

Adding 3d printable self forming thread ribs to SolidCraft

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Self-Forming Threads for SolidCraft

Self-Forming Threads is a SolidCraft desktop plugin that cuts three-rib pilot holes in FDM-printed parts. A standard machine screw forms threads in the ribs on its first installation. The spaces between the ribs give displaced plastic room to move. The profile is based on Thomas Sanladerer’s self-forming thread design. Video demonstration · Companion article

I take no credit, this plugin was developed with GPT 6.2 in OpenAI Codex

Install

Requires SolidCraft desktop 0.51.2 or newer. If you cloned the repository, build the installation ZIP first.

Open Preferences → Plugins → Install plugin… and choose self-forming-threads-0.9.0.zip. Confirm replacement if an earlier version is installed. The plugin requests access to the open design only.

Cut pilot holes

For exact placement or a batch, create and finish a 2D sketch with points on the entry face before opening the plugin.

  1. On the Model tab, open Self-Forming Threads in the Plugins group.

    Self-Forming Threads button in the Model ribbon

  2. Click Entry face, then pick the flat face where the holes should start.

    Plugin dialog with the Entry face picker active

  3. Under Center sketch points, select up to 24 points. Each point places one hole with the same settings. Leave the list empty to place one hole at the face click.

    One center sketch point selected with an M3 blind-hole preview

  4. Choose Metric or Imperial under Thread system, then set the screw size, hole depth, and lead-in. Enable Through all to cut through the selected body. Add bolt clearance or a bolt head recess as needed.

  5. Use Rib rotation to orient the profile if needed. At zero rotation, one rib points toward −Z projected onto the entry face. On a horizontal face, it points along the sketch X axis.

  6. Check the orange Preview and click Run. Each run creates one History folder containing its sketches and cuts. Click the folder’s arrow to collapse it to a single timeline item. One undo reverses the batch.

Preview and finished cut

From above, the M3 preview shows the three ribs just below the round lead-in.

Top view of the M3 preview showing three ribs around the opening

After running the plugin, Inspect → Section shows the tapered entrance and the bottom of the blind hole.

Section view of the finished M3 blind hole

Supported sizes

Hole dimensions are in millimeters for both systems. Custom is available in either list.

Metric and Imperial examples

Metric with M12 × 1.75 selected.

Metric M12 × 1.75 pilot-hole preview

Imperial with 1/4-20 UNC selected.

Imperial 1/4-20 UNC pilot-hole preview

Starting dimensions

Screw Relief diameter Rib-tip diameter
M3 3.20 mm 2.40 mm
M4 4.20 mm 3.20 mm
M5 5.20 mm 4.00 mm

The relief diameter starts at the screw's nominal diameter plus 0.20 mm. The rib-tip diameter is the diameter of the circle tangent to the three rib tips. For the new presets it starts at the nominal diameter minus 1.10 times the pitch. M3, M4, and M5 use the original dimensions shown above. Diameter adjustment adds the same amount to both dimensions. Choose Custom to edit them independently.

The default 0.60 mm lead-in tapers into the ribs. It starts below any clearance bore or head recess in the pilot body. Set the lead-in to zero for the full rib profile at the transition. A fixed-depth cut reaches the far side if the wall is thinner than the chosen depth.

Bolt clearance

Select a body under Clearance bodies to show Clearance depth and Clearance diameter. Clearance depth cuts a smooth bore from the entry face into the pilot body. To use it on a single part, select the pilot body itself. Leave the depth at zero to skip that bore.

To drill mating parts in place, pick the entry face on the body that should hold the threads. Then select the mating bodies under Clearance bodies. The plugin cuts round through-holes in those bodies at the same centers as the pilot holes, including across gaps. If the entry face is covered, hold the left mouse button over the stack and pick the entry face from Select Other. SolidCraft selection controls

Clearance diameter applies to both cuts. The dialog fills in the adjusted relief diameter plus 0.30 mm. Edit it to suit your fastener or print tolerance, or enter zero for automatic sizing.

For a blind hole, Blind depth is the total cut depth from the entry face. A 3 mm clearance depth in an 8 mm blind hole leaves 5 mm for the lead-in and ribs. For a through hole, set the clearance depth so the part still has material for all three ribs below the transition.

These presets are starting values. Fit and durability still need a test print with your filament, printer settings, hole orientation and screws. For a quick fit check, compare the default against a diameter adjustment of +0.15 mm on a scrap part printed in the same orientation.

Bolt head recess

Pick a Head seat face to add a recess at every hole center. On a single part, use the same face as Entry face. For stacked parts, select the mating bodies first, then pick the exposed face on the outermost clearance body. Clear the face selection to skip the recess.

Choose a Head style. The dialog fills in the suggested dimensions. Edit any value to override it, or enter zero for automatic sizing.

  • Socket head cuts a flat-bottomed counterbore. The preset depth aims for the head height plus 0.10 mm. The suggested depth can back off on thin parts to leave a shoulder, so the head may sit proud. Custom screw sizes need a measured diameter and depth. Metric socket-head dimensions · Inch socket-head dimensions · #12 socket-head dimensions
  • Countersunk cuts a tapered seat for flat-head screws. The included angle defaults to 90° for metric and 82° for UNC/UNF. Enter the angle for your actual head if it differs. The recess depth follows from the angle, diameter at the face, and shank opening. The seat must be thick enough for the full taper. Custom screw sizes need a measured diameter. ISO 10642 metric head dimensions · ASME B18.3 inch head dimensions

Automatic sizing adds 0.40 mm to the head diameter for either style. Less common metric sizes use estimated dimensions. On a single part, set Clearance depth greater than the recess depth to leave a narrower, smooth shank bore between the recess and the ribs.

Build and test

With Rust, wasm-tools, and solidcraft-cli on your PATH, run these commands from the repository root in PowerShell 7.

rustup target add wasm32-unknown-unknown
pwsh -File ./build.ps1

The build compiles the WebAssembly component, runs the SolidCraft plugin tests, and validates the installation ZIP in dist/. The tests cover the hole geometry, batch placement, and rejected inputs.

Source layout

  • The Rust plugin resolves pick locations and creates the SolidCraft sketches and cuts. src/lib.rs
  • The plugin manifest defines the dialog, preset list, and permitted SolidCraft commands. plugin.json
  • The test cases exercise the plugin on designs generated from SolidCraft command scripts. Test cases and fixtures

License

The original plugin code is dedicated to the public domain under CC0 1.0 Universal. You can use, modify, and share it for personal or commercial purposes without credit. License text · Creative Commons CC0 deed

The vendored WIT interface retains the upstream MIT and Apache 2.0 licenses in wit/. SolidCraft v0.51.2 interface

About

Adding 3d printable self forming thread ribs to SolidCraft

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages