Rotate (Schematic Editor)

Rotate items

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

Array("NAME:Selections", _

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

"Selections:=", IDs to modify))

<RotateParameters> Array

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 Array("NAME:Selections", "Selections:=", _

      Array("CompInst@RES_;1;1:1")), Array("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])