Duplicate Object Command

Duplicates the selected object(s) once with a small offset.

duplicate [DEFAULTOFFSET | NOOFFSET | OFFSET offsetx offsety] [IDLIST &objectidlist/.0.1.2] [DOCUMENT name | WINDOW name | OBJECTID number]

DEFAULTOFFSET/b Use the default duplicate offsets.

NOOFFSET/b Duplicate in the exact same location as the originals.

OFFSET/d Overrides the default duplicate offsets.

IDLIST/s Name of stem variable to return list of new object handles. Prior to 5.0.2.11, IDLIST also included .COUNT.

DOCUMENT/s The document name. Default=current.

WINDOW/s The window name. Default=current.

OBJECTID/i The number of the object to manipulate.

Results:

Returns a list of all new object handles. Removed .COUNT from list in 5.0.2.11 so that they can be returned as a list instead of a dict in python. The return result still contains the count. However, any older Arexx script that relies on this stem variable will need to be updated.

Notes:

Examples:
ARexx:

duplicate offset 1.125 -2.5 duplicate document 'project.doc'

 

Duplicate  Command Definition  url:PGScmd/duplicate
  created:2006-03-30 13:47:47   last updated:2006-08-18 11:52:09
  Copyright © 1985-2024 GrasshopperLLC. All Rights Reserved.

User Contributed Comments For Duplicate
Dan Kilroy wrote...2006-05-03 19:09:53

Script command submitted from PageStream internal documentation. Needs to be checked and merged with the command documentation above.

Duplicate the {...} .

objectcount = Duplicate ([DEFAULTOFFSET | NOOFFSET | OFFSET deltax deltay] [IDLIST &objectidlist/.0.1.2] [DOCUMENT document | WINDOW document-window | OBJECTID objectid])


Parameters:


Results:


Notes:
prior to 5.0.2.12 (5.0.3 Linux), IDLIST also included .COUNT


See Also:


Examples:
Python:


ARexx:

Applescript:

User Contributed Comments For Duplicate