Sex bolt diameter is measured on the outside of the barrel. The thread size is the screw size that will match the sex bolt.

One way serrated truss head sex bolt diameter

Thread density and Sex bolt diameter