Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:
  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. Be respectful, on topic and if you see a problem, Flag it.

If you would like to contact our Community Manager personally, feel free to send a private message or an email.

Custom Feature: Dovetail Joint

nico04
nico04 Member Posts: 4
edited March 9 in FeatureScript

I've developped a complete custom feature to help 3D printing assembly design.

image-8168661ddec1f-0e75.png

Dovetail Joint

Created By: Nicolas Barret

Link: OnShape document link

A custom FeatureScript that generates male and female dovetail joints between touching solid bodies. Tailored for 3D printing assemblies, it automates the boolean cuts and unions while providing direct controls to pattern joints evenly along edges, create hidden half-blind configurations, and apply precise clearance gaps for glue-free friction fits.

image-023e051b1b291-f5fa.png

Features

  • Positioning Modes: Place dovetails manually on specific points (vertices or Mate Connectors), or distribute a specified quantity along selected edges.
  • Edge Distribution Controls: Adjust the spacing logic (Space evenly, Space around, Space between), add padding at edge extremities, and optionally alternate (stagger) the orientation of the joints.
  • Geometry Parameters: Define the dovetail's width, height, and interior angle. The total extrusion depth is determined by selecting a target vertex or Mate Connector.
  • Half-Blind Dovetail: Conceal the joint from one side of the assembly by leaving a solid wall of material. Includes controls to define the wall thickness, swap the hidden side, and add bottom clearance so exterior faces sit perfectly flush.
  • Print Clearance: Automatically applies a uniform dimensional gap to the female cut to ensure a proper mechanical fit.
  • Target Scoping: Automatically identifies the correct bodies for the male (union) and female (cut) operations based on geometry intersection, with a manual override available for complex assemblies.

Roadmap

I'm actively working on it, I'm planning to add :

  • New split mode that allow to select a single part and a plane, and do the cutting part before creating the joints
  • Alternative joint shape, optimized for very thin parts.

I hope it'll help the community.

Please don't hesitate if you have any request or feedback !

Comments