Syntax 

void PCMSSetCustomMode(Trip trip, bool onOff)


Parameters 

Trip trip – Handle to a trip.

bool onOff – Set to True for custom routing; False to use defaults.  


Description

Enables or disables custom routing. When set to True, avoided, favored, and overridden roads set in the PC*MILER user interface will be used. The default is False.


Alternatively, this setting can be changed in the PCMSERVE.INI file, by adding the setting: CustomRoute=FALSE


Return Values 

None


Sample Code

//PCMSSetCustomMode(trip, true);
   ret = PCMSCalculate(trip);
   TestErr(ret > 0, "PCMSCalculate(trip)");        
   Log_Pcmstest("  %.1f miles (custom mode false)", ret/10.0f);
   DumpReport(trip, 1, RF_Lines);


Supported Since: PC*MILER|Connect 12

Category: Trip Options