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

can any macro could be developed for selecting duplicated objects

  • March 24, 2011
  • 2 replies
  • 4703 views

Hi Im a Qa person for illustrations in our concern.

Using duplicate command is useful and easier while working.

In some cases the illustrators duplicate the hole illustration.

Selecting one one object and deleting is difficult.

Can any macro could be developed for selecting duplicated objects alone.

It would be really helpfull..................

    2 replies

    1-Visitor
    March 24, 2011

    Can you post up an example of a drawing with the duplicated items?

    Vaduga11-VisitorAuthor
    1-Visitor
    March 25, 2011

    I am sorry brousing is restricted in my office, So I am unable to send an exaple.

    I can explain u...

    Draw a few seperate lines and ellipse.

    select all

    Press (Ctrl+D) Duplicate for three to four times.

    thats it.

    now the lines and ellipses are one above the other.

    In a complicated illustration it is difficult find the duplicated elements and delete.

    Due to this problem the file size increases. Thats y

    Thanks & Regards

    Vaduga

    1-Visitor
    March 29, 2011

    I've thought about this one myself, but can't see how it would work. Trevor Hendricks once gave me the method for checking the extents of a drawing by querying every element and this is great, though on a big drawing it is very slow.

    For what you need though, it would have to store the attributes of elements somewhere so it could check each new one against those stored to determine whether an item was duplicated. I've found that there isn't any kind of array or table function in the Isodraw Macro Language yet so I can't see how this could be done in a practical way.

    I do some relatively simple comparisons by writing values to a text file and then querying it each time I'm looking for something, but it takes several seconds to run on a file with only a few hundred lines, so a big drawing might take minutes or longer to run through using this method.

    Vaduga11-VisitorAuthor
    1-Visitor
    March 30, 2011

    Thanks Tim & Trevor,

    I would try both of yours suggestions,

    Some thing is better than nothing, I've got some idea after listening to you both.

    Its really helpfull.