Syntax: !spin x y angle [layer_name]This command will rotate all selected objects about x,y (given in microns) by angle (given in degrees) counter-clockwise. The functionality is similar to the spin command in the side menu.
Subcells and labels will be rotated in increments of 45 degrees in physical mode, 90 degrees in electrical mode, to the closest angle to that given. Other objects can be rotated by any angle.
The layer_name argument, if given, will allow a layer change during the rotation. 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 rotated without regard to layer_name or the layer change mode.