How do I add time as a cost in a network travel mode?
When I try to create a Vehicle Routing Problem Layer, I get an error saying my network dataset doesn't have a time impedance value. But when I try to add it in the Travel Mode dialog box it isn't an option and I can't add it as a cost in the costs tab. My road network has maxspeed, TF_Minutes, FT_Minutes fields.
Solved! Go to Solution.
The New option may be grayed out because the network dataset is in use. Perhaps you have a route analysis layer in the same Pro session. Or it could be in a read only place.
I suggest closing all Pro sessions, and starting a new Pro project, then navigate to the network dataset in the catalog pane and trying adding the cost attribute again.
Jay Sandhu
You probably first need to add a new cost attribute called TravelTime and have it load from the FT and TF_Minutes field. Then you can add this cost attribute to a travel mode. And make sure to build the network dataset after you add a new cost attribute.
I suggest you look at the steps in the Add Cost section of this tutorial:
Create a network dataset—ArcGIS Pro | Documentation
Jay Sandhu
Thanks Jay,
I tried adding Time as a cost but the "New" cost option is greyed out. What do I need to do to be able to make the "New" option available?
The New option may be grayed out because the network dataset is in use. Perhaps you have a route analysis layer in the same Pro session. Or it could be in a read only place.
I suggest closing all Pro sessions, and starting a new Pro project, then navigate to the network dataset in the catalog pane and trying adding the cost attribute again.
Jay Sandhu
That was the issue. Creating a new map that didn't have the network dataset in the contents pane (and closing the map that did) caused the "New" option to become available and I was able to create a new cost for time.
Thanks for the help!