POST
|
Hi I tried your suggestions and the scripts validate correctly but still does not create a restriction when testing using a route between 2 locations. I've attached screen shots of the network attributes and evaluator scripts. thanks again,
... View more
04-13-2012
02:40 PM
|
0
|
0
|
372
|
POST
|
Hi Alan, thanks for your response, but I'm not sure if I follow what your suggesting. I tried creating a network description attribute called left restriction. I used a field expression to get the value from the feature class that indicates if a left restriction occurs in the digitized direction and opposite. In the default values tab under turns I used the vbscript below: restricted = false a = Turn.Angle If a > 210 And a < 330 Then If toEdge.AttributeValueByName( "Left Restriction" ) = "LR" Then restricted = True End If End If this script did not work. I'm not clear how to use the element variable and methods. I have minimal programming experience. If a road feature class has attributes that indicate turn restrictions is there an alternative way to apply this to the network without manually creating a turn feature class? Creating a turn feature class is just not feasible in my situation. thanks, rob
... View more
04-05-2012
01:29 PM
|
0
|
0
|
372
|
POST
|
Hi, I've set up a network dataset in 9.2, but I'm having difficulty defining turning restrictions based on field values in the roads attribute table. In the attribute table for the roads there are 4 fields which describe if a left turn or right turn is restricted in the from-to direction and to-from direction based on digitized direction. How can I create a restriction attribute in the network dataset that evaluates the turn as restricted or not?? I thought you could use the turn.angle in an expression but the fields that contain the restriction are not listed? I've read the online help page and do not want to create a turn feature class because the values are already stored in the road centreline feature class. thanks for your help, Rob O.
... View more
04-02-2012
02:36 PM
|
0
|
4
|
1085
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|