XPAC Reference Guide

Working with Talpac files

Working with Talpac files

Previous topic Next topic  

Working with Talpac files

Previous topic Next topic  

The file below illustrates how to use Talpac files for the calculation of travel time. It also illustrates the simplest program that can be created using this object.

Dim tt As Object
Set tt = CreateObject("TRAVELTIMECOM.TravelTime")
 
tt.truck.LoadFromTalpac6File("C:\CATERPILLAR773B.atr")
tt.HaulRoute.LoadTalpacTextFile("C:\Haul Cycle1.txt")
 
Dim Time As Double
Time = tt.Calculate
MsgBox(Time)