Product: GetProductPosition
This function is called to retrieve the current absolute position of a product component, specifically at its leading edge. (we don’t support sorters)
Function
Array GetProductPosition(product: Product);
Parameters
Name | Type | Description |
---|---|---|
product | Product | The product object |
Return Value
Array of Number (X, Y, Z) Positions
Example
var pos = GetProductPosition(product);
LogDebug("Product at " + "X: " + pos[0] + " Y: " + pos[1] + " Z: " + pos[2]);