See Using the samples for help on compiling, setting up the debugger, and running the sample (either an exe or dll).
Rebuild the GlobalTurnEvaluators.sln in Microsoft Visual Studio 2005
Open ArcCatalog using an ArcView or higher license and also check out a Network Analyst license to enable network dataset schema updates.
In ArcCatalog, open the properties for the Streets_ND network dataset in the SanFranciscoNetwork folder.
Select the Attributes property page tab. In the attributes list select the "Minutes" attribute and click the "Evaluators…" button to open the evaluators sub-dialog. Note that this evaluator also works with any other network dataset that supports turns and has both a hierarchy attribute and a cost attribute with time units.
Switch to the default values tab in the evaluators sub-dialog and then select the turn element row in the evaluator assignments list. This row represents the global turns for the Minutes attribute.
Right click the turn row and expand the Type sub-menu context item and then click the "global turn" type of evaluator to assign the global turn evaluator.
To modify the properties of the global turn, click the assignment properties button to open the properties dialog for the selected assignment. In the dialog modify the angle ranges using the spin controls. Edit the traversal seconds for the selected turn types in the turn types list and then typing in a new value in the seconds text box. Use -1 for turn types that should not be traversed. If desired you can "Save To Default" in the dialog to use these settings as the default properties for subsequent global turn evaluator assignments. Apply the property page edits to update the network dataset and then close ArcCatalog.
Open the SanFrancisco.mxd map in ArcMap and make sure that a Network Analyst extension license is checked out to permit solving on network analysis layers.
Make the Route layer the active analysis layer. Open the properties and view the analysis settings to make sure that the Minutes attribute is the impedance attribute because the custom global turn evaluator is assigned to that attribute.
Add some stop locations and solve the Route analysis layer. Observe the route is affected by the global turn settings. To adjust the global turn evaluator settings close ArcMap so that a schema lock can be obtained and then go back to step 7.