next up previous contents index
Next: The !spin Command: Rotate Up: Layout Editing Previous: The !mo Command: Move   Contents   Index


The !co Command: Copy Objects

Syntax: !co dx [dy [[-l] layer_name] [[-r] rep_count]]
The !co command will copy selected objects to new locations. The dx and dy are translation values in microns. If dy is not given, it is taken as 0. A dy value must be given if additional arguments are given.

There are two additional arguments than can appear: a replication count, and a layer name. An integer value that is not identical to a layer name is taken as a replication count, otherwise a layer name is assumed. The optional flags ``-l'' and ``-r'' can appear ahead of the token to enforce the interpretation.

The replication count specifies how many copies, spaced by dx,dy, are generated. For example, if the count is 2, new objects would be created at offset dx, dy, and 2*dx,2*dy. If not given, or the value is not in the range 1-100000, only one copy is made.

The layer_name argument, if given, will allow a layer change during the copy. It should be the name of a layer that is not the current layer. How this is applied depends on the setting of the LayerChangeMode variable, or equivalently the settings of the Layer Change Mode pop-up from the Set Layer Chg Mode button in the Modify Menu. For the layer change, the passed layer_name is taken as the ``new current layer'', however the actual current layer does not change. Subcells are copied without regard to layer_name or the layer change mode.

There is also a companion !mo (move) command.


next up previous contents index
Next: The !spin Command: Rotate Up: Layout Editing Previous: The !mo Command: Move   Contents   Index
Stephen R. Whiteley 2024-09-29