Rotate (Schematic Editor)

Rotate items

UI Access Draw>Rotate
Parameters
Name Type Description
<Selections> Array

["NAME:Selections",

"Page:=", page number, // [Opt=1] Page number

"Selections:=", [IDs to modify)]

<RotateParameters> Array

["NAME:RotateParameters",

"Disconnect:=", bool _ // [Opt=0] Should wires disconnect

"Rubberband:=", bool _ // [Opt=1] Should wires staircase

"Angle:=", double] // [Opt=/2] Angle to rotate

Note: Rotation occurs around center of ids

Return Value None

 

Note:

When you record a script, the schematic editor's Rotate command shows the rotation angle for some older scripts in radians, while newer scripts show rotation angle in degrees.

oEditor.Rotate ["NAME:Selections",

"Selections:=", ["CompInst@RES_;1;1:1"]],

["NAME:RotateParameters",

"Angle:=", 1.5707963267949, "Disconnect:=", false, "Rubberband:=", false]

If "Degrees=xxx" is not shown, the rotation must be scaled.

Note:

For more information about the component name, schematic IDs, and formats, see the section Editor Scripting IDs.

 

Python Syntax Rotate()
Python Example

oEditor.Rotate (["NAME:Selections", "Selections:=",

["CompInst@R;2;4", "CompInst@C;1;1"]],

["NAME:RotateParameters","Degrees:=", 90, "Disconnect:=", _

false, "Rubberband:=", false])