Re arranging tags

i have created a Dynamo to assign the Mark value and to place the tags automatically. Is there any way to rearrange the tags automatically without any overlap? Thank you in advance

The simplest logic from there would be to pick a blank spot and line the tags up in a column. But you’ll need to do that in some sort of order based on the screen location of the parts being tagged so the leaders don’t crisscross each other. That’s probably easiest through the leader endpoint location. Or you could have the tags make a ring around the parts, but that will be a little more complex.