|
POST
|
I was wondering if anyone has done any customization of this widget? I'm trying to figure out how to do the following. when I click on the help button it opens the welcome screen. Then before I can access the help for the widgets I have to close that window and reopen it. I would like the help for the widgets the first time I open the help widget. TIA Terry
... View more
11-05-2015
07:51 AM
|
0
|
13
|
4593
|
|
POST
|
I’m thinking the segment would have an output parameter? So the direction would be output? In the parameter properties?
... View more
10-29-2015
12:25 PM
|
0
|
1
|
1860
|
|
POST
|
I don't know if its going to work as the only reason I made some of those parameters was to get the model to export the variables correctly so it would run. when I run it through the model with only the first_point and the end_point as parameters and generate the GP service and run it this is the dialog that shows..
... View more
10-29-2015
09:38 AM
|
0
|
0
|
1860
|
|
POST
|
thanks for your help, I have been struggling learning this.. I did look at the parameters in the model and it gave me an example so going to try this..
... View more
10-29-2015
08:57 AM
|
0
|
0
|
1860
|
|
POST
|
My end goal it to add this service to a WAB widget and have the user enter the information from the widget and then it passes the data to the service..
... View more
10-29-2015
08:20 AM
|
0
|
0
|
1860
|
|
POST
|
I spoke to soon, I thought I could set those parameters once the GP service was created. If I set them in the script before I run it to publish it, it crashes.. I set them to string.. Traceback (most recent call last): File "C:\Users\U0654\Desktop\new_seg4.py", line 29, in first_point__2_ = arcpy.GetParameterAsText(2) File "E:\MDTAPPS\Desktop10.2\arcpy\arcpy\__init__.py", line 632, in GetParameterAsText return gp.getParameterAsText(index) File "E:\MDTAPPS\Desktop10.2\arcpy\arcpy\geoprocessing\_base.py", line 224, in getParameterAsText self._gp.GetParameterAsText(*gp_fixargs(args, True))) RuntimeError: Object: Error in getting parameter as text
... View more
10-29-2015
08:19 AM
|
0
|
5
|
1860
|
|
POST
|
That is exactly what I was looking for.. My first_point is a table so would the data type be table for the parameter?
... View more
10-29-2015
08:05 AM
|
0
|
2
|
1860
|
|
POST
|
I'm trying to figure out parameters in python. I created a model and it has some parameters in it. When I run it and create a GP service from it, it asks me to enter those parameters and then runs. I have a python script that I added to a toolbox hoping it would ask for those parameters as well. when I add the script to the toolbox and run it, it says this tool has no parameters. I assumed the in the script arguments from my example that the first_point = arcpy.GetParametersAsText(0) would ask me to enter the first point. Can someone point me in the right direction? TIA # -*- coding: utf-8 -*-
# ---------------------------------------------------------------------------
# new_seg4.py
# Created on: 2015-10-29 07:32:00.00000
# (generated by ArcGIS/ModelBuilder)
# Usage: new_seg4 <first_point> <end_point> <first_point__2_> <end_point__3_> <beg_point> <end_pt> <first_pt_loc> <end_pt_loc> <points> <segment> <temp__2_>
# Description:
# ---------------------------------------------------------------------------
# Import arcpy module
import arcpy
arcpy.env.overwriteOutput = True
toolbox = ("E:/MDTAPPS/interactive/refmseg.tbx")
# Load required toolboxes
arcpy.ImportToolbox("E:/MDTAPPS/interactive/refmseg.tbx")
# Script arguments
first_point = arcpy.GetParameterAsText(0)
if first_point == '#' or not first_point:
first_point = "E:\\MDTAPPS\\interactive\\interactive.mdb\\first_point" # provide a default value if unspecified
end_point = arcpy.GetParameterAsText(1)
if end_point == '#' or not end_point:
end_point = "E:\\MDTAPPS\\interactive\\interactive.mdb\\end_point" # provide a default value if unspecified
first_point__2_ = arcpy.GetParameterAsText(2)
if first_point__2_ == '#' or not first_point__2_:
first_point__2_ = "E:\\MDTAPPS\\interactive\\interactive.mdb\\first_point" # provide a default value if unspecified
end_point__3_ = arcpy.GetParameterAsText(3)
if end_point__3_ == '#' or not end_point__3_:
end_point__3_ = "E:\\MDTAPPS\\interactive\\interactive.mdb\\end_point" # provide a default value if unspecified
beg_point = arcpy.GetParameterAsText(4)
if beg_point == '#' or not beg_point:
beg_point = "beg_point" # provide a default value if unspecified
end_pt = arcpy.GetParameterAsText(5)
if end_pt == '#' or not end_pt:
end_pt = "end_pt" # provide a default value if unspecified
first_pt_loc = arcpy.GetParameterAsText(6)
if first_pt_loc == '#' or not first_pt_loc:
first_pt_loc = "E:\\MDTAPPS\\interactive\\interactive.mdb\\first_pt_loc" # provide a default value if unspecified
end_pt_loc = arcpy.GetParameterAsText(7)
if end_pt_loc == '#' or not end_pt_loc:
end_pt_loc = "E:\\MDTAPPS\\interactive\\interactive.mdb\\end_pt_loc" # provide a default value if unspecified
points = arcpy.GetParameterAsText(8)
if points == '#' or not points:
points = "E:\\MDTAPPS\\interactive\\interactive.mdb\\points" # provide a default value if unspecified
segment = arcpy.GetParameterAsText(9)
if segment == '#' or not segment:
segment = "segment" # provide a default value if unspecified
temp__2_ = arcpy.GetParameterAsText(10)
if temp__2_ == '#' or not temp__2_:
temp__2_ = "E:\\MDTAPPS\\interactive\\interactive.mdb\\temp" # provide a default value if unspecified
# Local variables:
Output_Event_Table_Properties = "RID POINT MEAS"
Output_Event_Table_Properties__2_ = "RID POINT MEAS"
MDTGIS_ROUTES_LRM_RM = "MDTGIS.ROUTES_LRM_RM"
MDTGIS_ROUTES_LRM_DC_MI = "MDTGIS.ROUTES_LRM_DC_MI"
MDTGIS_ROUTES_LRM_DC_MI__2_ = "MDTGIS.ROUTES_LRM_DC_MI"
interactive_mdb = "E:\\MDTAPPS\\interactive\\interactive.mdb"
MDTGIS_ROUTES_LRM_DC = "MDTGIS_ROUTES_LRM_DC"
temp = "E:\\MDTAPPS\\interactive\\interactive.mdb\\temp"
# Process: Calculate Field
arcpy.CalculateField_management(first_point, "Corridor", "str(!Corridor!) + \"_\" + str(!RM!)", "PYTHON_9.3", "")
# Process: Calculate Field (2)
arcpy.CalculateField_management(end_point, "Corridor", "str(!Corridor!) + \"_\" + str(!RM!)", "PYTHON_9.3", "")
# Process: Make Route Event Layer (2)
arcpy.MakeRouteEventLayer_lr(MDTGIS_ROUTES_LRM_RM, "ROUTE_ID", end_point__3_, "Corridor POINT end_offset", end_pt, "", "ERROR_FIELD", "NO_ANGLE_FIELD", "NORMAL", "ANGLE", "LEFT", "POINT")
# Process: Make Route Event Layer
arcpy.MakeRouteEventLayer_lr(MDTGIS_ROUTES_LRM_RM, "ROUTE_ID", first_point__2_, "Corridor POINT beg_offset", beg_point, "", "ERROR_FIELD", "NO_ANGLE_FIELD", "NORMAL", "ANGLE", "LEFT", "POINT")
# Process: Locate Features Along Routes
arcpy.LocateFeaturesAlongRoutes_lr(beg_point, MDTGIS_ROUTES_LRM_DC_MI, "CORRIDOR", "0 Meters", first_pt_loc, Output_Event_Table_Properties, "ALL", "NO_DISTANCE", "ZERO", "NO_FIELDS", "NO_M_DIRECTION")
# Process: Locate Features Along Routes (2)
arcpy.LocateFeaturesAlongRoutes_lr(end_pt, MDTGIS_ROUTES_LRM_DC_MI__2_, "CORRIDOR", "0 Meters", end_pt_loc, Output_Event_Table_Properties__2_, "FIRST", "NO_DISTANCE", "ZERO", "NO_FIELDS", "NO_M_DIRECTION")
# Process: Append
arcpy.Append_management("E:\\MDTAPPS\\interactive\\interactive.mdb\\first_pt_loc;E:\\MDTAPPS\\interactive\\interactive.mdb\\end_pt_loc", temp, "", "RID \"CORRIDOR\" true true false 10 Text 0 0 ,First,#,E:\\MDTAPPS\\interactive\\interactive.mdb\\first_pt_loc,RID,-1,-1,E:\\MDTAPPS\\interactive\\interactive.mdb\\end_pt_loc,RID,-1,-1;beg_offset \"beg_offset\" true true false 8 Double 0 0 ,First,#;end_offset \"end_offset\" true true false 8 Double 0 0 ,First,#", "")
# Process: Table to Table
arcpy.TableToTable_conversion(temp__2_, interactive_mdb, "points", "", "RID \"CORRIDOR\" true true false 10 Text 0 0 ,First,#,E:\\MDTAPPS\\interactive\\interactive.mdb\\temp,RID,-1,-1;beg_offset \"beg_offset\" true true false 8 Double 0 0 ,First,#,E:\\MDTAPPS\\interactive\\interactive.mdb\\temp,beg_offset,-1,-1;end_offset \"end_offset\" true true false 8 Double 0 0 ,First,#,E:\\MDTAPPS\\interactive\\interactive.mdb\\temp,end_offset,-1,-1", "")
# Process: Make Route Event Layer (3)
arcpy.MakeRouteEventLayer_lr(MDTGIS_ROUTES_LRM_DC, "CORRIDOR", points, "rid LINE beg_offset end_offset", segment, "", "ERROR_FIELD", "NO_ANGLE_FIELD", "NORMAL", "ANGLE", "LEFT", "POINT")
# Process: Script1
arcpy.Script1_ref()
... View more
10-29-2015
07:22 AM
|
0
|
10
|
4653
|
|
POST
|
Maybe you can point me in the right direction on this. So I have the python script running and I added the script to the tool box. the problem is that I need to be able to have the user enter the First_point and then end_point. when I run the script through the tool box it says this tool has no parameters. Here is the working python script. # -*- coding: utf-8 -*-
# ---------------------------------------------------------------------------
# new_seg4.py
# Created on: 2015-10-29 07:32:00.00000
# (generated by ArcGIS/ModelBuilder)
# Usage: new_seg4 <first_point> <end_point> <first_point__2_> <end_point__3_> <beg_point> <end_pt> <first_pt_loc> <end_pt_loc> <points> <segment> <temp__2_>
# Description:
# ---------------------------------------------------------------------------
# Import arcpy module
import arcpy
arcpy.env.overwriteOutput = True
toolbox = ("E:/MDTAPPS/interactive/refmseg.tbx")
# Load required toolboxes
arcpy.ImportToolbox("E:/MDTAPPS/interactive/refmseg.tbx")
# Script arguments
first_point = arcpy.GetParameterAsText(0)
if first_point == '#' or not first_point:
first_point = "E:\\MDTAPPS\\interactive\\interactive.mdb\\first_point" # provide a default value if unspecified
end_point = arcpy.GetParameterAsText(1)
if end_point == '#' or not end_point:
end_point = "E:\\MDTAPPS\\interactive\\interactive.mdb\\end_point" # provide a default value if unspecified
first_point__2_ = arcpy.GetParameterAsText(2)
if first_point__2_ == '#' or not first_point__2_:
first_point__2_ = "E:\\MDTAPPS\\interactive\\interactive.mdb\\first_point" # provide a default value if unspecified
end_point__3_ = arcpy.GetParameterAsText(3)
if end_point__3_ == '#' or not end_point__3_:
end_point__3_ = "E:\\MDTAPPS\\interactive\\interactive.mdb\\end_point" # provide a default value if unspecified
beg_point = arcpy.GetParameterAsText(4)
if beg_point == '#' or not beg_point:
beg_point = "beg_point" # provide a default value if unspecified
end_pt = arcpy.GetParameterAsText(5)
if end_pt == '#' or not end_pt:
end_pt = "end_pt" # provide a default value if unspecified
first_pt_loc = arcpy.GetParameterAsText(6)
if first_pt_loc == '#' or not first_pt_loc:
first_pt_loc = "E:\\MDTAPPS\\interactive\\interactive.mdb\\first_pt_loc" # provide a default value if unspecified
end_pt_loc = arcpy.GetParameterAsText(7)
if end_pt_loc == '#' or not end_pt_loc:
end_pt_loc = "E:\\MDTAPPS\\interactive\\interactive.mdb\\end_pt_loc" # provide a default value if unspecified
points = arcpy.GetParameterAsText(8)
if points == '#' or not points:
points = "E:\\MDTAPPS\\interactive\\interactive.mdb\\points" # provide a default value if unspecified
segment = arcpy.GetParameterAsText(9)
if segment == '#' or not segment:
segment = "segment" # provide a default value if unspecified
temp__2_ = arcpy.GetParameterAsText(10)
if temp__2_ == '#' or not temp__2_:
temp__2_ = "E:\\MDTAPPS\\interactive\\interactive.mdb\\temp" # provide a default value if unspecified
# Local variables:
Output_Event_Table_Properties = "RID POINT MEAS"
Output_Event_Table_Properties__2_ = "RID POINT MEAS"
MDTGIS_ROUTES_LRM_RM = "MDTGIS.ROUTES_LRM_RM"
MDTGIS_ROUTES_LRM_DC_MI = "MDTGIS.ROUTES_LRM_DC_MI"
MDTGIS_ROUTES_LRM_DC_MI__2_ = "MDTGIS.ROUTES_LRM_DC_MI"
interactive_mdb = "E:\\MDTAPPS\\interactive\\interactive.mdb"
MDTGIS_ROUTES_LRM_DC = "MDTGIS_ROUTES_LRM_DC"
temp = "E:\\MDTAPPS\\interactive\\interactive.mdb\\temp"
# Process: Calculate Field
arcpy.CalculateField_management(first_point, "Corridor", "str(!Corridor!) + \"_\" + str(!RM!)", "PYTHON_9.3", "")
# Process: Calculate Field (2)
arcpy.CalculateField_management(end_point, "Corridor", "str(!Corridor!) + \"_\" + str(!RM!)", "PYTHON_9.3", "")
# Process: Make Route Event Layer (2)
arcpy.MakeRouteEventLayer_lr(MDTGIS_ROUTES_LRM_RM, "ROUTE_ID", end_point__3_, "Corridor POINT end_offset", end_pt, "", "ERROR_FIELD", "NO_ANGLE_FIELD", "NORMAL", "ANGLE", "LEFT", "POINT")
# Process: Make Route Event Layer
arcpy.MakeRouteEventLayer_lr(MDTGIS_ROUTES_LRM_RM, "ROUTE_ID", first_point__2_, "Corridor POINT beg_offset", beg_point, "", "ERROR_FIELD", "NO_ANGLE_FIELD", "NORMAL", "ANGLE", "LEFT", "POINT")
# Process: Locate Features Along Routes
arcpy.LocateFeaturesAlongRoutes_lr(beg_point, MDTGIS_ROUTES_LRM_DC_MI, "CORRIDOR", "0 Meters", first_pt_loc, Output_Event_Table_Properties, "ALL", "NO_DISTANCE", "ZERO", "NO_FIELDS", "NO_M_DIRECTION")
# Process: Locate Features Along Routes (2)
arcpy.LocateFeaturesAlongRoutes_lr(end_pt, MDTGIS_ROUTES_LRM_DC_MI__2_, "CORRIDOR", "0 Meters", end_pt_loc, Output_Event_Table_Properties__2_, "FIRST", "NO_DISTANCE", "ZERO", "NO_FIELDS", "NO_M_DIRECTION")
# Process: Append
arcpy.Append_management("E:\\MDTAPPS\\interactive\\interactive.mdb\\first_pt_loc;E:\\MDTAPPS\\interactive\\interactive.mdb\\end_pt_loc", temp, "", "RID \"CORRIDOR\" true true false 10 Text 0 0 ,First,#,E:\\MDTAPPS\\interactive\\interactive.mdb\\first_pt_loc,RID,-1,-1,E:\\MDTAPPS\\interactive\\interactive.mdb\\end_pt_loc,RID,-1,-1;beg_offset \"beg_offset\" true true false 8 Double 0 0 ,First,#;end_offset \"end_offset\" true true false 8 Double 0 0 ,First,#", "")
# Process: Table to Table
arcpy.TableToTable_conversion(temp__2_, interactive_mdb, "points", "", "RID \"CORRIDOR\" true true false 10 Text 0 0 ,First,#,E:\\MDTAPPS\\interactive\\interactive.mdb\\temp,RID,-1,-1;beg_offset \"beg_offset\" true true false 8 Double 0 0 ,First,#,E:\\MDTAPPS\\interactive\\interactive.mdb\\temp,beg_offset,-1,-1;end_offset \"end_offset\" true true false 8 Double 0 0 ,First,#,E:\\MDTAPPS\\interactive\\interactive.mdb\\temp,end_offset,-1,-1", "")
# Process: Make Route Event Layer (3)
arcpy.MakeRouteEventLayer_lr(MDTGIS_ROUTES_LRM_DC, "CORRIDOR", points, "rid LINE beg_offset end_offset", segment, "", "ERROR_FIELD", "NO_ANGLE_FIELD", "NORMAL", "ANGLE", "LEFT", "POINT")
# Process: Script1
arcpy.Script1_ref()
... View more
10-29-2015
07:09 AM
|
0
|
1
|
1013
|
|
POST
|
Ok, I used append and it worked so looking good. thanks for your help.
... View more
10-29-2015
06:36 AM
|
0
|
0
|
1013
|
|
POST
|
Yeah I have been tinkering with the python script that was exported. I have it working till the merge and then it completely crashes ArcMap.. Is there another was to combine 2 tables?
... View more
10-29-2015
06:17 AM
|
0
|
0
|
1013
|
|
POST
|
Yeah I have been tinkering with the python script that was exported. Not really sure I understand how it makes the variables.. I set the output_event properties and now I can get it to run to the Make table view tool. the problem when I set them to "RID POINT MEAS" it actually changes my first_point and end_point tables so that the make table view no longer see it. This is what the python looks like. Runtime error Traceback (most recent call last): File "<string>", line 68, in <module> File "E:\MDTAPPS\Desktop10.2\arcpy\arcpy\management.py", line 6514, in MakeTableView raise e ExecuteError: ERROR 000229: Cannot open E:\MDTAPPS\interactive\interactive.mdb\end_point Failed to execute (MakeTableView). # -*- coding: utf-8 -*-
# ---------------------------------------------------------------------------
# new_seg1.py
# Created on: 2015-10-28 15:17:56.00000
# (generated by ArcGIS/ModelBuilder)
# Usage: new_seg1 <first_point> <end_point> <segment>
# Description:
# ---------------------------------------------------------------------------
# Import arcpy module
import arcpy
arcpy.env.overwriteOutput = True
# Load required toolboxes
arcpy.ImportToolbox("E:/MDTAPPS/interactive/refmseg.tbx")
# Script arguments
first_point = arcpy.GetParameterAsText(0)
if first_point == '#' or not first_point:
first_point = "E:\\MDTAPPS\\interactive\\interactive.mdb\\first_point" # provide a default value if unspecified
end_point = arcpy.GetParameterAsText(1)
if end_point == '#' or not end_point:
end_point = "E:\\MDTAPPS\\interactive\\interactive.mdb\\end_point" # provide a default value if unspecified
segment = arcpy.GetParameterAsText(2)
if segment == '#' or not segment:
segment = "segment" # provide a default value if unspecified
# Local variables:
first_point__2_ = first_point
beg_point = first_point__2_
first_pt_loc = beg_point
temp = first_pt_loc
points = temp
Output_Event_Table_Properties = "RID POINT MEAS"
end_point__3_ = end_point
end_pt = end_point__3_
end_pt_loc = end_point__3_
end_pt_loc_Vw = end_pt_loc
Output_Event_Table_Properties__2_ = "RID POINT MEAS"
MDTGIS_ROUTES_LRM_RM = "MDTGIS.ROUTES_LRM_RM"
MDTGIS_ROUTES_LRM_DC_MI = "MDTGIS.ROUTES_LRM_DC_MI"
MDTGIS_ROUTES_LRM_DC_MI__2_ = "MDTGIS.ROUTES_LRM_DC_MI"
interactive_mdb = "E:\\MDTAPPS\\interactive\\interactive.mdb"
MDTGIS_ROUTES_LRM_DC = "MDTGIS_ROUTES_LRM_DC"
# Process: Calculate Field
arcpy.CalculateField_management(first_point, "Corridor", "str(!Corridor!) + \"_\" + str(!RM!)", "PYTHON_9.3", "")
# Process: Calculate Field (2)
arcpy.CalculateField_management(end_point, "Corridor", "str(!Corridor!) + \"_\" + str(!RM!)", "PYTHON_9.3", "")
# Process: Make Route Event Layer
arcpy.MakeRouteEventLayer_lr(MDTGIS_ROUTES_LRM_RM, "ROUTE_ID", first_point__2_, "Corridor POINT beg_offset", beg_point, "", "ERROR_FIELD", "NO_ANGLE_FIELD", "NORMAL", "ANGLE", "LEFT", "POINT")
# Process: Make Route Event Layer (2)
arcpy.MakeRouteEventLayer_lr(MDTGIS_ROUTES_LRM_RM, "ROUTE_ID", end_point__3_, "Corridor POINT end_offset", end_pt, "", "ERROR_FIELD", "NO_ANGLE_FIELD", "NORMAL", "ANGLE", "LEFT", "POINT")
# Process: Locate Features Along Routes
arcpy.LocateFeaturesAlongRoutes_lr(beg_point, MDTGIS_ROUTES_LRM_DC_MI, "CORRIDOR", "0 Meters", first_pt_loc, Output_Event_Table_Properties, "ALL", "NO_DISTANCE", "ZERO", "NO_FIELDS", "NO_M_DIRECTION")
# Process: Locate Features Along Routes (2)
arcpy.LocateFeaturesAlongRoutes_lr(end_pt, MDTGIS_ROUTES_LRM_DC_MI__2_, "CORRIDOR", "0 Meters", end_pt_loc, Output_Event_Table_Properties__2_, "FIRST", "NO_DISTANCE", "ZERO", "NO_FIELDS", "NO_M_DIRECTION")
# Process: Make Table View
arcpy.MakeTableView_management(end_pt_loc, end_pt_loc_Vw, "", "", "OBJECTID OBJECTID VISIBLE NONE;RID RID VISIBLE NONE;MEAS MEAS VISIBLE NONE;Distance Distance VISIBLE NONE;RM RM VISIBLE NONE")
# Process: Merge
arcpy.Merge_management("end_pt_loc_Vw;E:\\MDTAPPS\\interactive\\interactive.mdb\\first_pt_loc", temp, "RID \"CORRIDOR\" true true false 10 Text 0 0 ,First,#,E:\\MDTAPPS\\interactive\\interactive.mdb\\first_pt_loc,RID,-1,-1,end_pt_loc_Vw,RID,-1,-1;beg_offset \"beg_offset\" true true false 8 Double 0 0 ,First,#,E:\\MDTAPPS\\interactive\\interactive.mdb\\first_pt_loc,beg_offset,-1,-1;end_offset \"end_offset\" true true false 8 Double 0 0 ,First,#,end_pt_loc_Vw,end_offset,-1,-1")
# Process: Table to Table
arcpy.TableToTable_conversion(temp, interactive_mdb, "points", "", "RID \"CORRIDOR\" true true false 10 Text 0 0 ,First,#,E:\\MDTAPPS\\interactive\\interactive.mdb\\temp,RID,-1,-1;beg_offset \"beg_offset\" true true false 8 Double 0 0 ,First,#,E:\\MDTAPPS\\interactive\\interactive.mdb\\temp,beg_offset,-1,-1;end_offset \"end_offset\" true true false 8 Double 0 0 ,First,#,E:\\MDTAPPS\\interactive\\interactive.mdb\\temp,end_offset,-1,-1", "")
# Process: Make Route Event Layer (3)
arcpy.MakeRouteEventLayer_lr(MDTGIS_ROUTES_LRM_DC, "CORRIDOR", points, "rid LINE beg_offset end_offset", segment, "", "ERROR_FIELD", "NO_ANGLE_FIELD", "NORMAL", "ANGLE", "LEFT", "POINT")
# Process: Script1
arcpy.gp.toolbox = "E:/MDTAPPS/interactive/refmseg.tbx";
# Warning: the toolbox E:/MDTAPPS/interactive/refmseg.tbx DOES NOT have an alias.
# Please assign this toolbox an alias to avoid tool name collisions
# And replace arcpy.gp.Script1(...) with arcpy.Script1_ALIAS(...)
arcpy.gp.Script1()
... View more
10-29-2015
04:49 AM
|
0
|
0
|
3629
|
|
POST
|
Here is a view of the model. Yes I want to publish it as a service to use in WAB. I was trying to find someone with knowledge about GP and python. Here is the scenario, I created a model with the Make Route Event layer as the last tool and I want to create a segment. The points table has a route and a from and to offset for the MDTGISroute_LRM_DC to to locate the segment. The problem is the points table is in the GPInMemoryWorkspace so the tool does not see it. I tried to export the model to Python and add it as a tool but it hangs on the Locate Features Along Routes tool because my type of out_event_properties do not match the type of in_features. Which is odd as the model runs just fine.
... View more
10-28-2015
01:47 PM
|
0
|
6
|
3629
|
|
POST
|
What are folks using when they want to debug a script you run in ArcMap? I'm running a script and it is giving me the following error "Runtime error Traceback (most recent call last): File "<string>", line 57, in <module> File "E:\MDTAPPS\Desktop10.2\arcpy\arcpy\lr.py", line 396, in LocateFeaturesAlongRoutes raise e ExecuteError: ERROR 000709: The type of out_event_properties does not match the type of in_features. " I have looked syntax for the locate feature along route and not sure about the out_event_properties. my in_features are points and the output_event_properties is a table.
... View more
10-28-2015
12:42 PM
|
0
|
3
|
3142
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-19-2015 02:57 PM | |
| 1 | 03-10-2016 08:36 AM | |
| 1 | 03-10-2016 09:00 AM | |
| 1 | 07-16-2015 01:15 PM | |
| 1 | 09-14-2015 06:48 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:25 AM
|