Harry - Thanks for your response.
The attached model contains the concept. On input file defines the Entity serial numbers;the other file defines the ContainerEntity serial number and the serial number of the entity to be added to. The Entity.txt file also contains SerialLabel for testing, and a third parameter that not used (in this model).
Currently, each EntityContainer has assigned to it an EntitySerialNumber of an entity which will be added via the AddTo process as the Match argument. The SerialNumber attribute is added to the Entities, and used as the store's Match argument. Thus specific assemblies can be generated.
The complete scenario has SerialLabel defining the item to be assembled, including duplicates representing batch of objects. As the Match expression in JaamSim is dimensionless, I could pre-process all the string values to discrete integers, and map all the values appropriately. Though not pretty, this approach would address the Match as a string issue. The challenge is that all the Strings will need to be known a the start of the analysis, to allow the mapping to be complete. The SerialLabel could be any characters, or simple values such as Red, Green,....
Your thoughts on using AddTo with strings would be appreciated.
Regards
RiF