addShape
Contents
[
Hide
]addShape(pinX, pinY, masterName, isCalculate) (1 of 5)
Adds shape created by master on page with defined PinX and PinY.
| Parameter | Type | Description |
|---|---|---|
| pinX | float | Specifies the x-coordinate of the shape’s pin (center of rotation) in relation to the page. |
| pinY | float | Specifies the y-coordinate of the shape’s pin (center of rotation) in relation to the page. |
| masterName | String | Master’s name. |
| isCalculate | boolean | Is Calculate shape or not. |
Returns: The unique ID of the shape within shapes collection on the specified page.
addShape(pinX, pinY, width, height, masterName, isCalculate) (2 of 5)
Adds shape created by master on page with defined PinX and PinY.
| Parameter | Type | Description |
|---|---|---|
| pinX | float | Specifies the x-coordinate of the shape’s pin (center of rotation) in relation to the page. |
| pinY | float | Specifies the y-coordinate of the shape’s pin (center of rotation) in relation to the page. |
| width | float | Specifies the width of the shape in inches. |
| height | float | Specifies the height of the shape in inches. |
| masterName | String | Master’s name. |
| isCalculate | boolean | Is Calculate shape or not. |
Returns: The unique ID of the shape within shapes collection on the specified page.
addShape(pinX, pinY, masterName) (3 of 5)
Adds shape created by master on page with defined PinX and PinY.
| Parameter | Type | Description |
|---|---|---|
| pinX | float | Specifies the x-coordinate of the shape’s pin (center of rotation) in relation to the page. |
| pinY | float | Specifies the y-coordinate of the shape’s pin (center of rotation) in relation to the page. |
| masterName | String | Master’s name. |
Returns: The unique ID of the shape within shapes collection on the specified page.
addShape(pinX, pinY, width, height, masterName) (4 of 5)
Adds shape created by master on page with defined PinX,PinY,Width and Height.
| Parameter | Type | Description |
|---|---|---|
| pinX | float | Specifies the x-coordinate of the shape’s pin (center of rotation) in relation to the page. |
| pinY | float | Specifies the y-coordinate of the shape’s pin (center of rotation) in relation to the page. |
| width | float | Specifies the width of the shape in inches. |
| height | float | Specifies the height of the shape in inches. |
| masterName | String | Master’s name. |
Returns: The unique ID of the shape within shapes collection on the specified page.
addShape(newShape, masterName) (5 of 5)
Adds shape created by master to specific page.
| Parameter | Type | Description |
|---|---|---|
| newShape | Shape | New shape object Shape . |
| masterName | String | Master’s name. |
Returns: The unique ID of the shape within shapes collection on the specified page.