Is there a Travel Mode property equivalent to Accumulate Attribute?

448
4
08-12-2020 05:37 AM
jacquelinewillan1
New Contributor III

In 10.6, the Make Route Layer command had a property "accumulate_attribute_name" where for each cost attribute that was accumulated, a Total_[Impedance] property was added to the routes that are output . In Pro, is there a property in TravelMode that is equivalent to that property? Thanks!

0 Kudos
4 Replies
MelindaMorang
Esri Regular Contributor

No, the accumulate attributes are independent from the travel mode.

0 Kudos
jacquelinewillan1
New Contributor III

OK, in that case where should they be input for the solve with the NAX module?  I have the code:

arcpy.nax.MakeNetworkDatasetLayer(NDS, NDLayerName)

route = arcpy.nax.Route(NDLayerName)

route.load(arcpy.nax.RouteInputDataType.Stops, Waypoints)
result = route.solve()

I didn't see them as a RouteInputDataType in the documentation and didn't see where else they could be input?  Thanks!

0 Kudos
MelindaMorang
Esri Regular Contributor

Just set the accumulateAttributeNames property of the Route object, the same way you would set the travel mode.  The complete list of properties can be found here: Route—ArcGIS Pro | Documentation 

jacquelinewillan1
New Contributor III

That's great! don't know how I missed that.  Thanks for your help!

0 Kudos