Auto leader in layout

Hi!

Does anyone have scripted something to create leaders for all objects in a detail view on a layout jet?
The leaders could be based on the objectname by example.