Wiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

resources:tools-software:sigmastudiov2:usingsigmastudio:scripting:moveshape [25 Jun 2020 07:31] – created Krithika Manchaleresources:tools-software:sigmastudiov2:usingsigmastudio:scripting:moveshape [15 Nov 2021 09:48] (current) Nikhin Shetty
Line 3: Line 3:
 =====Move Shape===== =====Move Shape=====
  
-This action allows the user to move a specified shape on the parent canvas or schematic page to a given position. Return type is a success/failure message in the form of list of strings. The function call takes in 2 arguments.+This action allows the user to move a specified shape on the parent canvas or schematic page to a given position.The function call takes in 2 arguments. Return type is a SSPResult which contains a IsSuccess flag for  success/failure and Message in the form of list of strings. 
  
 \\ \\
 ===API=== ===API===
 <code> <code>
-list<string> MoveShape(1: string shapeUid, 2: Position newPosition)+SSPResult MoveShape(string shapeUid, Position newPosition)
 </code> </code>
 \\ \\
 ===Arguments==== ===Arguments====
   - shapeUid- Uid of the plugin to be moved.   - shapeUid- Uid of the plugin to be moved.
-  - newPosition -Position in the form of (X,Y) coordinates of the canvas.+  - newPosition -Position in the form of (double X, double Y) coordinates of the canvas.
 \\ \\
 ===Result=== ===Result===
-“Move Successful”.\\+SSPResult contains 'IsSuccess' flag and 'Message' information for the MoveShape action. 
 +  -IsSuccess is 'True' if the shape moved successfully, else 'False'
 +  -Message contains the Success/Failure information in the form of list of string. 
 +\\
 \\ \\
-===Error==== 
-Error message sent out by the server application. 
  
  
resources/tools-software/sigmastudiov2/usingsigmastudio/scripting/moveshape.txt · Last modified: 15 Nov 2021 09:48 by Nikhin Shetty