This shows you the differences between two versions of the page.
resources:tools-software:sigmastudiov2:usingsigmastudio:scripting:rotateshape [25 Jun 2020 07:33] – created Krithika Manchale | resources:tools-software:sigmastudiov2:usingsigmastudio:scripting:rotateshape [15 Nov 2021 09:53] (current) – Nikhin Shetty | ||
---|---|---|---|
Line 3: | Line 3: | ||
=====Rotate Shape===== | =====Rotate Shape===== | ||
- | This action allows the user to rotate a specified shape on the parent canvas or schematic page according to the angle given. Return type is a success/ | + | 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 |
\\ | \\ | ||
===API=== | ===API=== | ||
< | < | ||
- | list< | + | SSPResult |
</ | </ | ||
\\ | \\ | ||
===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 |
- newAngle -Angle of rotation in degrees. | - newAngle -Angle of rotation in degrees. | ||
\\ | \\ | ||
===Result=== | ===Result=== | ||
- | “Rotate Successful”.\\ | + | SSPResult contains ' |
+ | -IsSuccess is ' | ||
+ | -Message contains the Success/ | ||
+ | \\ | ||
\\ | \\ | ||
- | ===Error==== | ||
- | Error message sent out by the server application. | ||