Show / Hide Table of Contents

Entity


Entity-Specific System Function

The Entity function returns the current or a particular Entity name-index number in an Entity group. This function is especially useful in macros and subroutines that vary depending on which Entity calls them. Use Entity to determine the Entity type processing when an Entity type of All is specified at a Location. For example, if a common area handles several different parts with essentially the same process, use an If...Then statement in conjunction with an Entity to have individual statement blocks handle the details of the operation.

Syntax

Entity({<expression>})

Examples

Entity()
Entity(Var1)

Parameters

({<expression>})

The Entity number in a group to inspect. For example, Entity(3) returns the third Entity's name-index number in the group. If this option is omitted, ProModel returns the calling Entity's name-index number.

Example

The following example displays the Entity name-index number that enters the Truck Location.

Display Entity()

Entity Example 1


Entity Example 2

Remarks

Entity is valid in speed fields, traveling time fields, conveyor speed fields, Resource fields, operation logic, routing fields, arrival logic, and debug user-condition field.

This function returns an integer.

In This Article
Back to top Generated by DocFX