syntax problem using accumulateAttributeNames property on Route

552
2
Jump to solution
08-17-2020 01:31 PM
jacquelinewillan1
New Contributor III

Hi, I'm having a syntax problem with adding the accumulateAttributeNames property to the Route object, in a Python script in Pro 2.5.  When I try with just one attribute it works, but when I add a second attribute there is an error on the Solve, so I must not have the right delimiter.  I've tried with commas and semicolon:

Accumulators = "VehicleTrack,VehicleWheel"
#Accumulators = "VehicleTrack;VehicleWheel"

route.accumulateAttributeNames = [Accumulators]

What is the correct delimiter?  thanks!

0 Kudos
1 Solution

Accepted Solutions
jacquelinewillan1
New Contributor III
0 Kudos
2 Replies
MelindaMorang
Esri Regular Contributor

It needs to be a list of the string names of the attributes you want to accumulate.

route.accumulateAttributeNames = ["VehicleTrack", "VehicleWheel"]

jacquelinewillan1
New Contributor III

Thanks!

0 Kudos