Use dowel pins to prevent two components from moving relative to each other. Click EMX Components and then in the Components group click Dowel Pin to define a dowel pin.
You can place dowel pins with a straight hole, a counterbore or a blind hole in both sides.