GroupQty
Entity-Specific System Function
The GroupQty function counts and returns Entities in a grouped or loaded Entity that match the specified Entity type.
Syntax
GroupQty({<entity name>})
Examples
Order GroupQty(Part1) Part2 TO Loc1
If GroupQty(Part1) > 5 Then...
Parameters
({<entity name>})
The optional specific Entity type to search for in the group. If no name is specified, ProModel returns the entire group quantity.
Remarks
If GroupQty is directed to a loaded Entity, ProModel only counts the temporarily loaded Entities, not the base Entity. For example, if four Castings are temporarily loaded onto a Pallet and called Batch, the GroupQty function counts Castings (i.e., 4), which does not include the base entity Pallet.
In the case of hybrid nested groups with several mixed and nested group levels and loads, GroupQty counts Entities in the uppermost level only.
If multiple loads have occurred (no groups), either of different Entities or at multiple Locations, GroupQty returns the combined total of all loads.
GroupQty is valid in speed fields, traveling-time fields, conveyor-speed fields, Resource fields, operation logic, routing fields, arrival logic, and debug user-condition fields.