How to use dynamo to add Leader to Generic Annotation

I made a Symbol from family Generic Annotations.
The aim is to place the symbol in revit and then use dynamo to add the leader.
The leader length “X” will vary.