|
POST
|
Satyanarayana, Can you be more specific about the problem you are having with your script? What is it not doing? Regards, Tom
... View more
06-05-2015
02:37 PM
|
0
|
0
|
1791
|
|
POST
|
Richard, Did you look at the spatial reference? That may be the culprit? Regards, Tom Sellsted Supervising Senior Analyst Tom.Sellsted@YakimaWA.gov<mailto:Tom.Sellsted@YakimaWA.gov> 129 North 2nd Street, Yakima, WA 98901<x-apple-data-detectors://2/1> Phone (509) 576-6602<tel:(509)%20576-6602> | FAX (509) 249-6835<tel:(509)%20249-6835> 46° 36' 17.86"N 120° 30' 18.23"W
... View more
05-21-2015
07:46 PM
|
0
|
2
|
1696
|
|
POST
|
Richard, It is a bit hard to say without having more code for context. A couple of things I noticed. You are setting the graphic symbol with the symbol variable instead of the simpleMarkerSymbol that you just created. Is that correct? Is the spatial reference appropriate for the graphic? This may also cause the graphic to not be displayed. Regards, Tom
... View more
05-21-2015
04:11 PM
|
1
|
4
|
1696
|
|
POST
|
Greetings, I have done a couple of similar projects where I am doing a search like you are trying to do. I add a second instance of the layer to the dataframe that I want to use for the search as described above. That way I can set the symbology and label the selected features too. That way when a search is performed they can better see the results of their search. Again, there are many ways to do things. Use what best works for your situation! Regards, Tom
... View more
05-21-2015
08:26 AM
|
0
|
0
|
2333
|
|
POST
|
Greetings, Certainly! Here is a completely alternative way to accomplish what you are trying to do: import arcpy
mxd = arcpy.mapping.MapDocument('CURRENT')
df = arcpy.mapping.ListDataFrames(mxd, "Layers") [0]
lyr = arcpy.mapping.ListLayers(mxd, "Subdivision Boundaries")[0]
whereClause = "PLAT_NAME LIKE '%" + arcpy.GetParameterAsText(0) + "%'"
lyr.definitionQuery = whereClause
df.extent = lyr.getExtent(True)
arcpy.RefreshActiveView() Regards, Tom
... View more
05-20-2015
11:55 AM
|
0
|
2
|
2333
|
|
POST
|
Greetings, It looks like you are doing another selection which you have already done using your search cursor so that you can zoom to the extent of the plat. There are always many ways to do things. Here is a suggestion. I have removed the section selection and added the shape field to your search cursor. import arcpy
mxd = arcpy.mapping.MapDocument('CURRENT')
df = arcpy.mapping.ListDataFrames(mxd, "Layers") [0]
lyr = arcpy.mapping.ListLayers(mxd, "Subdivision Boundaries")[0]
whereClause = "PLAT_NAME LIKE '%" + arcpy.GetParameterAsText(0) + "%'"
with arcpy.da.SearchCursor(lyr, ("SHAPE@", "PLAT_NAME"), whereClause) as cursor:
for row in cursor:
df.extent = row[0].extent
df.scale = df.scale * 5
arcpy.RefreshActiveView()
#arcpy.mapping.ExportToPDF(mxd, "C:/test/" + fc + "_" + str(row[1]) + "_" + str(row[2]) + ".pdf") Regards, Tom
... View more
05-20-2015
11:24 AM
|
1
|
4
|
2333
|
|
POST
|
Greetings, It looks like your whereclause is incomplete. Try: whereClause = "PLAT_NAME LIKE '%" + arcpy.GetParameterAsText(0) + "%'" Regards, Tom
... View more
05-20-2015
09:54 AM
|
1
|
6
|
2333
|
|
DOC
|
Larry, Thanks very much! Did your solution also maintain the text angle of the dimensions being drawn? Regards, Tom
... View more
05-19-2015
02:47 PM
|
0
|
0
|
15809
|
|
POST
|
Chad, Had you looked at the sample on this page? Fade effect using ArcGIS.com web maps | ArcGIS API for JavaScript It shows how to change between different web maps based on a click event similar to yours. Regards, Tom
... View more
05-19-2015
02:25 PM
|
1
|
0
|
666
|
|
POST
|
Tim, I agree. I think I almost spent more time trying to deal with how to make my widget work with Internet Explorer than coding it... Regards, Tom
... View more
05-19-2015
10:41 AM
|
0
|
0
|
550
|
|
POST
|
Tim, I found some event handling weirdness when creating my Measure Widget Measure Widget 1.1.1 for Web App Builder I had to use some special event handling to accommodate the differences between the versions of Internet Explorer. My problem was more related to mouse-drag or mouse-move events, but maybe you are having a similar problem? Regards, Tom
... View more
05-19-2015
08:51 AM
|
1
|
2
|
2229
|
|
DOC
|
Nick, Yes, you are correct. It would be a rounding issue with the toFixed. Thanks very much for your updates! Regards, Tom
... View more
05-18-2015
03:15 PM
|
0
|
0
|
15809
|
|
DOC
|
Rickey, I am seeing the same result you are. The print widget doesn't appear to be honoring the text rotation or offsets of the dimension graphics. I also tried just printing using the browser, which prints as displayed. I will dig into the print widget and see if there is something that I need to do differently to the dimension graphics that will help it print correctly. Regards, Tom
... View more
05-18-2015
02:48 PM
|
0
|
0
|
15809
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-24-2023 10:45 AM | |
| 1 | 05-19-2023 08:13 AM | |
| 1 | 02-22-2023 09:12 AM | |
| 1 | 05-15-2015 03:11 PM | |
| 1 | 02-10-2015 11:52 AM |
| Online Status |
Offline
|
| Date Last Visited |
02-26-2024
04:50 PM
|