FreeRollerConveyor: GetProductInArea
Called to get an array of ‘Product’ objects within the specified range along the free roller conveyor
Function
Array GetProductInArea(start: double, end: double)
Parameters
Name | Type | Description |
---|---|---|
start | Double | The start distance of the area to check in the units chosen when the project was created (metres or feet) |
end | Double | The end distance of the range to check in the units chosen when the project was created (metres or feet) |
Return Value
An Array object that contains product object references, the return value may also be null if no product is found
Example
var ps = oConv.GetProductInArea(0,1);
for (var i = 0; i < ps.length; ++i) {
LogDebug("area 0 - 1 products : " + i + " " + ps[i].Name);
}