Skip to main content
1-Visitor
Mar 31, 2011 4:09 AM UTC
Question

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

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

    2 replies

    1-Visitor
    Mar 31, 2011 7:52 AM UTC

    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.

    Translate
    Vaduga11-VisitorAuthor
    1-Visitor
    Jul 1, 2011 4:48 AM UTC

    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

    Translate