Show / Hide Table of Contents

ObjectID


Entity-Specific System Function

The ObjectID function returns the unique identifying number associated with the Entity calling the function. As each Entity enters the simulation, whether through an Arrival, order, or being created, its ID number is incremented in sequence to ensure every ObjectID is unique throughout the simulation. The first Entity is given the number 1, and each subsequent Entity's ID number is incremented by 1.

Syntax

ObjectID()

Examples

Var1 = ObjectID()

The following example displays Entity Object IDs when they enter the Truck Location.

Display ObjectID()

ObjectID Example 1


Object Example 2

In This Article
Back to top Generated by DocFX