import arcpy import os arcpy.env.overwriteOutput = 1 arcpy.env.workspace = r"\\itdhq1apt50\GIS_Data\NeedsTracking\Scratch.gdb" gdb_loc = arcpy.env.workspace scratch = arcpy.env.scratchWorkspace scratch_gdb = os.path.join(scratch, 'scratch.gdb') print "starting this darn task" arcpy.AddMessage("starting this darn task") in_line = "Database Connections\CONNECTION SDE 4 MAPPING.sde\sdeProd.SDE.StateHighwayUpdateFile" #sde statehwy data used to create route file rteID = "RD_NAME" # using this a route ID to create routes base on road number rather than segment no #rteID = "UNIQUE_ID" # this will create routes based on segment no outRoute = "StateHwyRouteFile" outEvent = "lineTemp" fc = "LineSelection" #fc_prj = "PointsTestingWM" fc_prj = os.path.join(scratch,'LineSelectionWM') csWM = r"Coordinate Systems\Projected Coordinate Systems\World\WGS 1984 Web Mercator (Auxiliary Sphere).prj" #table = arcpy.GetParameter(0) table = gdb_loc + os.sep + "locateRoute" inRoute = "routeID" inBMP = "BMP" inEMP = "EMP" props = '"%s %s %s %s"' % (inRoute, 'LINE', inBMP, inEMP) arcpy.MakeRouteEventLayer_lr(outRoute, rteID, table, props, outEvent, "#", "ERROR_FIELD") #arcpy.MakeRouteEventLayer_lr(outRoute, rteID, table, "routeID LINE BMP EMP", outEvent, "#", "ERROR_FIELD")
In python the seperator between your properties is the | symbol, not a space. Your properties would be "routeID|Line|inBMP|inEMP".
If you called the same model from C# you would use spaces.