Auto Keynote Tool Question

Good morning,

I’ve created a script that adds keynotes to block references and so far, it works perfectly. There are two elements to the script I’d like to add (if possible):

  1. I’d like the user to be able to specify where the keynote text will be placed relative to the block reference (top left, bottom left, top right, & bottom right) but right now if you specify that you want the text on the right side of the block the leader crosses the text as shown below:
    image
    Does anyone know how I can fix this? I’d like the keynote to look like this:
    image

  2. I’m wondering if there is a node that allows a second leader to be added to the keynote.

See the script, spreadsheet, and CAD files attached.
Keynote Log.xlsx (8.9 KB)
Label Xref Blocks.dyn (180.4 KB)
Test Sheet Drawing.dwg (1.7 MB)
XREF.dwg (3.8 MB)

Thanks!

Normally when I generate keynotes they will not have this crossing issue regardless of the offset side. I would suggest looking into your mleader style. It should automatically justify I believe.