This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
resources:tools-software:sigmastudiov2:usingsigmastudio:scripting:addshape [24 Jun 2020 12:23] – Krithika Manchale | resources:tools-software:sigmastudiov2:usingsigmastudio:scripting:addshape [15 Nov 2021 12:28] (current) – Nikhin Shetty | ||
---|---|---|---|
Line 3: | Line 3: | ||
=====Add Shape===== | =====Add Shape===== | ||
- | This action allows the user to add a given element | + | This action allows the user to add a shape or plugin onto the canvas or schematic page specified.The function call takes in 3 arguments. This API returns the SSPResult type. |
+ | \\ | ||
\\ | \\ | ||
===API=== | ===API=== | ||
< | < | ||
- | list< | + | SSPResult |
</ | </ | ||
\\ | \\ | ||
Line 17: | Line 17: | ||
\\ | \\ | ||
===Result=== | ===Result=== | ||
- | “Successfully added the element: < | + | SSPResult contains ' |
- | Also, when adding a plugin which has predefined sub elements, the Uids of those are also displayed. | + | |
- | + | | |
- | \\ | + | |
- | \\ | + | |
- | ===Error==== | + | |
- | 1. The given information | + | |
\\ | \\ | ||
- | 2. Failed to add element | ||
\\ | \\ | ||
- | 3. Default: Displays the error msg as obtained by the Server application. | ||
- | |||