How to join multiple paths for gear cutouts?
I am trying to close multiple small paths into one large closed path. Ultimately, I need to save as an SVG so I can import in to a CNC router. The original files are gears for a wooden clock that started out as DXF files. There are hundreds of small paths on the gear teeth that I can join manually, but there must be a better way. A Select All > Path > Join does not work. The only thing that does seems to work is manually selecting the endpoints in each gear tooth and joining the paths this way. Do-able, but very slow as I have many gears to work on.
Is there a trick I am missing or a better way to do this? I am relatively new to Ai.
Attached is an example where I manually joined all the paths to obtain the hi-lighted path eight teeth in length. I have confirmed my CNC will read this joined path just fine.
All the rest of the gear is made up of hundreds of smaller paths, all non-joined.
There is no option of asking the DXF file author to save the file differently.
All suggestions welcome. Thanks.

<Title renamed by moderator>
