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:
Distance From Path
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.
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.
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.
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.
Set Var1 = Loader1.In Count
Sets Var1 to the number routes that are connected to the Loader.
Returns the number of Outgoing routes from the Loader.
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.