I'm getting replacement for some M5 x 30mm hex bolts. The original ones are fully threaded, i.e. the whole shank length. The ones I can find have an unthreaded portion (i.e. grip) but their overall length matches the original.
I wonder if the unthreaded portion can also fit through the hole because I need the whole length inside the wedge that the bolt goes into. Or does the bolt stop where the threaded portion ends?