# 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
Solved! Go to Solution.