AnsweredAssumed Answered

Scripting "Create Geometric Network" Syntax Error

Question asked by clclark on Apr 10, 2013
Latest reply on Apr 10, 2013 by clclark
Once again I have a syntax error that I cannot figure out. It keeps highlighting the end quotation marks which I have made RED.

Thanks for any input. This is my first attempt at scripting GeoNetworks so I could have other errors as well.

# Import arcpy module
import arcpy, sys, traceback
arcpy.env.overwriteOutput = True
from os import path as p

# Define Workspace directory
arcpy.env.workspace = top = r"G:\ChrisGIS\PS_Steelhead\Work"
#
# Create List of all Workspaces (GDB)
try:
    for ws in arcpy.ListWorkspaces("*", "FileGDB"):
        arcpy.env.workspace = ws
        print '\n\nSearching in %s\n\n' %ws
        #
        # Define Variables to be used in processes      
        BARRIERS = p.join(ws, "BARRIERS_MERGED_1")
        SHORE = p.join(ws, "NHD_EndVert_Shore_1")
        NHD = p.join(ws, "NHD_Split_Barriers_1")
        FDS = p.join(ws, "GEONET")
        #
        #
        # Process: Create Geometric Network
        arcpy.CreateGeometricNetwork(FDS, "NETGEO_Net", [BARRIERS "SIMPLE_JUNCTION" "NO", SHORE "SIMPLE_JUNCTION" "NO", NHD "SIMPLE EDGE"], "10", "","","","")
        print '\n\nGeometric Network created in  %s\n\n' %FDS

Outcomes