The Loader properties that are available through the Visual Logic Set Value editor are listed below.
The Loader properties that are editable through the Visual Logic Set Value editor are:
Sets how far away the Loader is from the path.
Set Loader1.Distance From Path = 10
Sets the image used for the Loader to any image located in the Graphics, Images menu option.
Example:
Set Loader1.Image = "BlueB"
Where BlueB exists as an image. Note the Inverted Commas around the name of the image.
Sets the Index number of the Loader to a value other than the default value.
Example:
Set Loader1.Index = 5
Sets the time it takes to load a Work Item onto a Vehicle.
Set Loader1.Load Time = 5
Sets the maximum number of Work Items that the Loader will load onto the Vehicle before it departs.
Set Loader1.Max Quantity = 10000
Sets the minimum number of Work Items that the Loader will load onto the Vehicle before it departs.
Set Loader1.Min Quantity = 1
Allows the name of the Loader to be changed or accessed.
Example:
Changes the name to whatever is inside the inverted commas: Set Loader1.Name = "Change the Name"
Sets a text Global Data Item to contain the name of the Loader1: Set Var1 = Loader1.Name
Sets how far from the start of the path the Loader is located.
Set Loader1.Position = 34
Sets whether the Loader is selected onscreen or not.
1 = Selected
0 = Not selected
Set Loader1.Selected = 0
Sets the time it takes to unload a Work Item from a Vehicle.
Set Loader1.Unload Time = 5
Loader Properties that return results are:
Returns the number of incoming routes to the Loader.
Example:
Set Var1 = Loader1.In Count
Sets Var1 to the number of routes that are connected to the Loader.
Returns the number of Outgoing routes from the Loader.
Example:
Set Var1 = Loader1.OutCount
Sets Var1 to the number of routes that are connected from the Activity.
Gets Simul8's internal Unique Number that identifies every object - you can be sure it is different for all objects. It never changes once an object is in a simulation.