Chamfers on multiple bodies

Hello,
new on this forum...
I would like to know if it is possible to chamfer several distinct bodies of a single function?
Thank you for your help,
Have a nice weekend
SB