|
POST
|
Ok, I’m stuck on what my parameters should be for the “Display Name” and “Data Type”. I’m thinking Display name is “RID” and Data type is numeric? Also the table is actually going to be in memory so will I need to set the table path?
... View more
10-15-2015
06:16 AM
|
0
|
23
|
1736
|
|
POST
|
Ok, that does work, I was trying to run the python code via the Field calculator. Is that possible? The reason I wanted to do that was I’m building a model to run a process and the second to the last step is to populate the to_MEAS so I can create a line segment.
... View more
10-15-2015
05:28 AM
|
0
|
25
|
1736
|
|
POST
|
That is my fault I copied the wrong results.. I get an invalid syntax when I select python..
... View more
10-14-2015
02:58 PM
|
0
|
28
|
1736
|
|
POST
|
I’m trying to calculate a field based on another field in a table using python in the field Calculator.
... View more
10-14-2015
02:47 PM
|
0
|
30
|
1736
|
|
POST
|
This is an image of the errors I receive in ArcMap
... View more
10-14-2015
02:25 PM
|
0
|
32
|
2155
|
|
POST
|
Ok, made a little headway. It appears to not like the null values in the fields. When I: replace them with 0 then it does not error out at line 1 anymore. :It then give me the warming. "A Field name was not found or there were unbalanced quotation marks". I was not sure if this was due to line 21 or 15..
... View more
10-14-2015
10:07 AM
|
0
|
0
|
2155
|
|
POST
|
I created sever types of table and set the table variable but seems to keep throwing the syntax at line 1. Here is an example of an exported table and the code I used. table = "Export_Output"
ridList = []
with arcpy.da.SearchCursor(table, ["RID"]) as cursor:
for row in cursor:
ridList.append(row[0])
del cursor
ridList = set(ridList)
for RID in ridList:
toMeasList = []
with arcpy.da.SearchCursor(table, ["RID", "to_MEAS"], "RID = '" + RID + "'") as cursor:
for row in cursor:
toMeasList.append(row[1])
del cursor
toMeasList.sort()
with arcpy.da.UpdateCursor(table, ["to_MEAS"], "RID = '" + RID + "'") as cursor:
for row in cursor:
row[0] = toMeasList[-1]
cursor.updateRow(row)
del cursor
... View more
10-14-2015
07:32 AM
|
0
|
3
|
933
|
|
POST
|
I did that, the table is called result. Does it have to be a certain type of table?
... View more
10-14-2015
07:25 AM
|
0
|
35
|
2155
|
|
POST
|
Says syntax error line 1 which is declaring the table correct?
... View more
10-14-2015
07:13 AM
|
0
|
41
|
2155
|
|
POST
|
I get a 000539 : Error message from Python. It seems like it should work. At the end its taking the row[0] array and setting the toMeasList equal to it minus 1 record correct?
... View more
10-14-2015
06:49 AM
|
0
|
0
|
2155
|
|
POST
|
I have a table like the one attached. I’m trying to create a line segment from it that goes from 22.473 to 27.346 but they are on separate lines. I need a python script to calculate the to_measure from OBJECTID 1 equal to the to_measure from OBJECTID2. Is this possible?
... View more
10-14-2015
06:11 AM
|
0
|
1
|
2077
|
|
POST
|
Ok I think I’m close but need a little more help. I have a table like the one attached. I’m trying to create a line segment from it that goes from 22.473 to 27.346 but they are on separate lines. I need a python script to calculate the to_measure from OBJECTID 1 equal to the to_measure from OBJECTID2. Do you think that is possible?
... View more
10-14-2015
05:50 AM
|
0
|
44
|
10115
|
|
POST
|
I got it.. Thanks for your help./. Have a good weekend..
... View more
10-09-2015
12:09 PM
|
0
|
0
|
875
|
|
POST
|
That worked but it adds a .0 to the end of the RM.. I created the RM field as a short with 0 decimal places. So it returned C000001E156.0. The precision is set to 4
... View more
10-09-2015
08:54 AM
|
0
|
2
|
875
|
|
POST
|
I tried that and it won’t work.. Not sure if it has something to do with it being a text field..
... View more
10-09-2015
08:07 AM
|
0
|
5
|
875
|
| 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
|