FuelTankUnits property
Returns or sets the units used to measure fuel tank capacity. Read/write GeoVolumeUnits.
GeoVolumeUnits |
Value |
Description |
---|---|---|
geoLiters |
1 |
Liters |
geoUKGallons |
3 |
U.K. gallons |
geoUSGallons |
2 |
U.S. gallons |
Applies to
Objects: DriverProfile
Syntax
object.FuelTankUnits
Parameters
Part |
Description |
---|---|
object |
Required. An expression that returns a DriverProfile object. |
Remarks
To return or set the capacity of the fuel tank, use the FuelTankCapacity property of the DriverProfile object.
Example
Sub SetFuelTankUnits()
Dim objApp As New MapPoint.Application
Dim objMap As MapPoint.Map
Dim objRoute As MapPoint.Route
'Set up the application
Set objMap = objApp.ActiveMap
Set objRoute = objMap.ActiveRoute
objApp.Visible = True
objApp.UserControl = True
'Add route stops and calculate the route
objRoute.Waypoints.Add objMap.FindResults("Seattle, WA").Item(1)
objRoute.Waypoints.Add objMap.FindResults("Redmond, WA").Item(1)
objRoute.Calculate
'Set fuel tank units to liters
objRoute.DriverProfile.FuelTankUnits = geoLiters
End Sub
Note This sample code is specific for use in MapPoint North America; it is for illustration purposes only.