Parametric D-Sub

This is a FreeCad model that creates 3D printable female D-sub housings.

Usage

Open the Spreadsheet and adjust values as necessary. The only thing that should need to be adjusted is the number of pins, which should be an odd number because of how D-sub pinouts work. An even number will just give you the next lowest odd number.

You might also want to adjust "Contact Hole" and "Contact Depth" depending on your contacts and the tolerances of your 3D printer. The housing depth is fixed at 11mm, which is approximately the depth of most manufactured housings. The flange-to-face distance is 5.8mm.

Because of how the pins are repeated, the minimum number of pins is 3. There is theoretically no maximum. :D

Sometimes changing the number of pins will cause the geometry solver to glitch and leave extra space on the right. If this happens, open the "D-Sub Outline" sketch (inside "Basic Shape"). Delete the tangent constraint on the upper right curve.

Then move the outline next to the reference box and reapply the tangent constraint between the curve and the vertical line.

Close the sketch, and you should be good to go.

Print recommendations

The flange is wedge shaped so that it can print without supports. This requires that it be printed face-up. This leaves a small amount of surface area in contact with the bed, which may need a brim for stability with your printer (FWIW it works fine on my Ender 3).

Downloads

Amiga Video 23-pin.stl
395.98KiB
2025-09-03 23:31:11

D-sub builder.FCStd
198.70KiB
2025-09-03 23:31:11

DA-15.stl
314.34KiB
2025-09-03 23:31:11

DB-25.stl
424.89KiB
2025-09-03 23:31:11

DC-37.stl
578.21KiB
2025-09-03 23:31:11

DE-9.stl
231.62KiB
2025-09-03 23:31:11

Repository

https://git.bytex64.net/parametric-dsub/