Skip to main content
1-Visitor
March 31, 2011
Question

Can two text with same value can be selected one by one.........

  • March 31, 2011
  • 1 reply
  • 2519 views

Hi all,

In illustrations instead of using callouts we use normal text command placing callouts(numbers).

I've created macro to select each number and place a polygon around each number.

But if same number is available twice in the illustration. The macro places the polygon in between the two like numbers.

Its because for selecting each number I use select if text is equal to command.

I would like to know whether any macro can be created to select the same numbered text can be selected one by one.

Thanks & Regards

Vaduga

    1 reply

    1-Visitor
    March 31, 2011

    I'd suggest to loop over the selected text elements

    with activeDoc.firstSelectedElement and activeDoc.nextSelectedElement
    and draw the polygones one by one for each.

    Vaduga11-VisitorAuthor
    1-Visitor
    July 1, 2011

    Hello Bgraffmann,

    activeDoc.firstSelectedElement and activeDoc.nextSelectedElement

    When using this loop all the texts would be selected and i cannot draw a box over one by one in between the loops.

    Thanks & Regards

    Vaduga