How to attach a component when performing pick and place operation

Just came up with an interesting solution, try it to see if this helps.