addShape

addShape(pinX, pinY, masterName, isCalculate) (1 of 5)

Adds shape created by master on page with defined PinX and PinY.

ParameterTypeDescription
pinXfloatSpecifies the x-coordinate of the shape’s pin (center of rotation) in relation to the page.
pinYfloatSpecifies the y-coordinate of the shape’s pin (center of rotation) in relation to the page.
masterNameStringMaster’s name.
isCalculatebooleanIs 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.

ParameterTypeDescription
pinXfloatSpecifies the x-coordinate of the shape’s pin (center of rotation) in relation to the page.
pinYfloatSpecifies the y-coordinate of the shape’s pin (center of rotation) in relation to the page.
widthfloatSpecifies the width of the shape in inches.
heightfloatSpecifies the height of the shape in inches.
masterNameStringMaster’s name.
isCalculatebooleanIs 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.

ParameterTypeDescription
pinXfloatSpecifies the x-coordinate of the shape’s pin (center of rotation) in relation to the page.
pinYfloatSpecifies the y-coordinate of the shape’s pin (center of rotation) in relation to the page.
masterNameStringMaster’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.

ParameterTypeDescription
pinXfloatSpecifies the x-coordinate of the shape’s pin (center of rotation) in relation to the page.
pinYfloatSpecifies the y-coordinate of the shape’s pin (center of rotation) in relation to the page.
widthfloatSpecifies the width of the shape in inches.
heightfloatSpecifies the height of the shape in inches.
masterNameStringMaster’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.

ParameterTypeDescription
newShapeShapeNew shape object Shape .
masterNameStringMaster’s name.

Returns: The unique ID of the shape within shapes collection on the specified page.