The reference says:
to: The location of the new Group, specified in coordinates in the format [x, y]. Can accept: Array of 2 Units, Spread, Page or Layer. (Optional) (any)
by: Amount by which to offset the new Group from the original Group's position. (Optional) (number)
When I do the following
myGroup(1).Duplicate Array("8.5i",".25i"), Array("16.75i","10.75"),1,1,1
I get an error that states Missing required parameter 'To' for event 'Duplicate'.
I don't understand what the second set of points are for, and what parameter am I missing here.
"To" refers to where the group is supposed to be duplicated. This is a page, spread, or layer. "By" is an array stating the offset of the duplicated group. If you leave it out, the group will be duplicated at the same position. Example:
>myGroup(1).Duplicate (MyDestinationPage, [30,30])