Wiki

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

Click here to return back

Resize Shape

This action allows the user to resize 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 ResizeShape(string shapeUid, Position newPosition, Size newSize)


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. newSize -Desired size of the shape in the form of (double Width, double Height).


Result

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

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



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