Show / Hide Table of Contents

Res


Name-Index-Number Conversion Function

The Res function converts a name-index number or integer to a Resource name. Use this function when a statement or function needs a Resource name whose name-index number is stored in an Attribute, Variable, or some other expression. When used in a string expression expecting, ProModel outputs the actual Resource name. Use Res to assign a properly skilled operator according to the part Attribute or to change the duties of Resources as the simulation progresses.

Syntax

Res(<resource name-index number>)

Examples

Use 10 Res(Var1) for 1.5 min
Free Res(Var1)
Display "Now using" $ Res(Var1)

Parameters

(<resource name-index number>)

The Resource name-index number defined in your model to convert to a Resource name.

Remarks

Res is valid in any statement where a resource name is normally used. Also used in string expressions.

In This Article
Back to top Generated by DocFX