Tools that honor the Network Source environment use streets and other data from the selected network dataset during processing. This is used by Business Analyst tools only.
A custom network dataset can be selected to override the Business Analyst data source. The dataset can be from a local geodatabase or a service available from a portal.
Usage notes
- By default, the network dataset will be obtained from the Business Analyst data source. Selecting a network dataset from this environmental setting overrides the default until completion of tool processing or cancellation.
- Network datasets are used to create output polygons in tools such as the Generate Drive Time Trade Areas tool.
- The selected network dataset must contain data for the analysis area.
Dialog syntax
- Select an alternative network dataset, either locally or on the portal to which you are connected. The Default value will use the network dataset from the selected Business Analyst data source.
Scripting syntax
arcpy.env.baNetworkSource = NetworkSource
Script example
import arcpy
# Access from a local network dataset
arcpy.env.baNetworkSource = "C:\\MyData\\CustomStreetsData.gdb\\streets\\streets_ND"
# Access from the current portal URL (Online)
arcpy.env.baNetworkSource = "https://www.arcgis.com"