usage restriction truble

483
2
09-13-2010 08:13 AM
lorenzoperone
New Contributor
Hi,
I'm working with Arcgis 9.3 SP3 and the Network analysist extension.
I've a nework street in wich I've to calculate the shortest path from two points (near start/end of some bridges) using the bridge and in case of bridge fall.
When I've build the network dataset I've done an attribute named "interruzioni" (usage restriction) that is based on the field "attivo" (integer: 0 road/bridge inactive, 1 road/bridge active) then in the evaluators I've set Type: field, value <expression>, in the expression I've put this:

Attivo = True
If attivo = 0 Then
Attivo = False
Else
Attivo = True
End if


and in Value= Attivo

When I solve the route the value in the "attivo" field don't make any difference. If I set the field "attivo" in all the record to 0 or 1 the results of the rout are the same, nothing change.
I'm a bit perplexed.
Thanks for suggestions.
lorenzo
Tags (2)
0 Kudos
2 Replies
lorenzoperone
New Contributor
Hi,
I've tried, using the vb syntax that you suggets me,
but when I change the value of a network arc record from 1 to 0
don't change noting, the route generated by the solve is the same.
I made some screenshot to describe my settings:
http://www.dropbox.com/gallery/4255917/1/network_analyst?h=d70f9c
Thanks a lot.
Lorenzo
0 Kudos
lorenzoperone
New Contributor
It works now!
Thanks a lot.
Bye
Lorenzo
0 Kudos