Loader
The Loader properties that are available through the Visual Logic Set Value editor are listed below.
Read and Write Properties
The Loader properties that are editable through the Visual Logic Set Value editor are:
Distance From Path
Sets how far away the loader is from the path.
Set Loader1.Distance From Path = 10
Image
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.
Index
Sets the Index number of the Loader to a value other than the default value.
Example:
Set Loader1.Index = 5
Load Time
Sets the time it takes to load a work item onto a vehicle.
Set Loader1.Load Time = 5
Max Quantity
Sets the maximum number of Work Items that the loader will load onto the vehicle before it departs.
Set Loader1.Max Quantity = 10000
Min Quantity
Sets the minimum number of Work Items that the loader will load onto the vehicle before it departs.
Set Loader1.Min Quantity = 1
Name
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
Position
Sets how far from the start of the path the loader is located.
Set Loader1.Position = 34
Selected
Sets whether the loader is selected onscreen or not.
1 = Selected
0 = Not selected
Set Loader1.Selected = 0
Unload Time
Sets the time it takes to unload a Work Item from a vehicle.
Set Loader1.Unload Time = 5
Read Only Properties
Loader Properties that return results are:
In Count
Returns the number of incoming routes to the Loader.
Example:
Set Var1 = Loader1.In Count
Sets Var1 to the number routes that are connected to the Loader.
Out Count
Returns the number of Outgoing routes from the Loader.
Example:
Set Var1 = Loader1.OutCount
Sets Var1 to the number routes that are connected from the Activity.
Unique ID
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.