Wiki

This version (15 Nov 2021 12:25) was approved by Nikhin Shetty.The Previously approved version (25 Jun 2020 07:33) is available.Diff

Click here to return back

Rotate Shape

This action allows the user to rotate a specified shape on the parent canvas or schematic page according to the angle given. The function call takes in 3 arguments. Return type is a SSPResult which contains a IsSuccess flag for success/failure and Message in the form of list of strings.


API

SSPResult RotateShape(string shapeUid, Position newPosition, double newAngle)


Arguments

  1. shapeUid- Uid of the plugin to be moved.
  2. newPosition -Position in the form of (double X, double Y) coordinates of the canvas.
  3. newAngle -Angle of rotation in degrees.


Result

SSPResult contains 'IsSuccess' flag and 'Message' information of the RotateShape action.

  1. IsSuccess is 'True' for successful shape rotation, else 'False'.
  2. Message contains the Success/Failure information in the form of list of string.



resources/tools-software/sigmastudiov2/usingsigmastudio/scripting/rotateshape.txt · Last modified: 15 Nov 2021 09:53 by Nikhin Shetty