Follow

Truck settings example

Introduction

In this sample code you can see how to set truck attributes with the API function ChangeApplicationOptions. The dimensions are passed in millimeters and weight in kilograms.

C#

        SetTruck();

        public static void SetTruck()
        {
            SError err;
            SChangeOption option = new SChangeOption(); // to declare the option for trucks

            option.bUseTruckAtt = 1; //truck attributes approved
            option.nTruckWeightTotal = 16000;
            option.nTruckLenght = 9000;
            option.nTruckWidth = 2300;
            option.nTruckHeight = 3500;
            int ret = CApplicationAPI.ChangeApplicationOptions(out err, ref option, 0);
        }
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments