After reading through the documentation of the new arcpy.nax library, specifically ODCostMatrix and related objects, I attempted to port over a script that was using arcpy.na. Unfortunately the Lines output remains stubbornly blank using mostly default inputs, and I am having trouble diagnosing why that is. I've tried changing several of the inputs but none of them seem to fill the Lines output.
Here is the portion of my script using ODCostMatrix:
Here is the description of my network. It was a pre-existing network, and I added the "Basic" travel mode so it would work with arcpy.nax.
Data Type: File Geodatabase Network Dataset
Database:
[REDACTED]
Feature Dataset: RDIDataSet1
Network: RDINetwork1
Dataset Version: 10.0
Build Status: Built
The network dataset has been built.
Build Time: Fri Aug 30 18:39:27 2019
Edges: 5460
Junctions: 2179
Sources:
Edge Sources:
Streets1
Junction Sources:
RDINetwork1_Junctions
Connectivity:
Policies:
Streets1 edges use End Point connectivity policy.
Elevation Model: Elevation Fields
Travel Attributes:
Travel Modes:
Default Travel Mode: Basic
Travel Mode: Basic
Description:
Collection of network dataset settings that define actions that are allowed on the
network and how the actions can be performed.
Type: Automobile
Uses Costs:
Impedance: RouteDistance
Allowed U-Turns: All
Costs:
Cost: RouteDistance
Units: Meters
Data Type: double
Used By Travel Modes:
Impedance: Basic
Evaluators:
Streets1 (Bi-Directional): Field Script (VBScript)
Value: [Shape_Length]
The full script is attached. Any help is appreciated!