POST
|
Does anyone have a link where I can download the "Query Related Records Tool" for ArcGIS Viewer for Silverlight 3.1 version. Query Related Records Tool for 3.2 The above link is for 3.2 version. It says for previous version of the add-in, post and request on forum.
... View more
03-05-2014
06:44 AM
|
0
|
0
|
1126
|
POST
|
In .NET ADF, the relate table of a feature layer is shown on the identify window by default. However the relate table hyperlink does not show up in ArcGIS Viewers for Silverlight/Flex. Does anyone know how to achieve this by using ArcGIS Viewers for Silverlight/Flex? I tried to use Query related records tool but that tool is inactive even when the feature layer has related table. Please help. Many thanks, Sarbajit.
... View more
11-20-2013
12:04 PM
|
0
|
0
|
2091
|
POST
|
I would also prefer not to hard code the layer path, since I have a shapefile joined with a table in the table of contents and that is the shapefile I want to export, not the original shapefile without join. In ArcObject, we could use pMap.Layer(i) where i (0,1,2,3 etc.) refers to the layers' order in the table of contents. Here's the concept of the code, although I couldn't get it to run. import arcpy
arcpy.env.overwriteOutput = True
mxd = arcpy.mapping.MapDocument(r"C:\temp\test.mxd")
# export the second layer in the table of contents
for lyr(1) in arcpy.mapping.ListLayers(mxd):
arcpy.CopyFeatures_management(lyr(1), r"R:\Corp Data Mgt\SGurung\temp\output")
... View more
08-23-2012
11:49 AM
|
0
|
0
|
1114
|
POST
|
Thanks Jason. I know the output directory won't be created automatically, so I created it before running the script. I'm running the following script on PythonWin. It doesn't give me any error, it just crashes when I run this script. Is this a common problem with PythonWin? It works when I run it from IDLE in ArcGIS. import arcpy
arcpy.env.overwriteOutput = True
mxd = arcpy.mapping.MapDocument(r"C:\temp\test.mxd")
for lyr in arcpy.mapping.ListLayers(mxd):
if lyr.dataSource == r"C:\temp\test.shp":
arcpy.CopyFeatures_management(lyr, r"C:\temp\output")
else:
print lyr.dataSource + "Not exported!"
... View more
08-23-2012
11:12 AM
|
0
|
0
|
1114
|
POST
|
Thanks Jason and Ken, that was a good catch indeed as my tiring eyes missed that colon. It runs well when I run it from Python window in ArcGIS but it crashes when I run it in PythonWin. The only thing I've changed in PythonWin is:
#mxd = arcpy.mapping.MapDocument("CURRENT")
mxd = arcpy.mapping.MapDocument(r"C:\temp\test.mxd")
i.e., instead of referring to CURRENT map document, I've used the path as I need to automate this task. Any suggestions?
... View more
08-21-2012
02:22 PM
|
0
|
0
|
1114
|
POST
|
Thanks Ken, I've followed your code but I've been unable to run the code. Here's the code: import arcpy
mxd = arcpy.mapping.MapDocument(r"C:\temp\test.mxd")
for lyr in arcpy.mapping.ListLayers(mxd):
if lyr.dataSource == r"C:\temp\test.shp"
arcpy.CopyFeatures_management(lyr, r"C:\temp\output\testout.shp") Any suggestions?
... View more
08-21-2012
11:08 AM
|
0
|
0
|
1114
|
POST
|
I need to select second layer from table of contents of an active data frame and then export that layer to a new feature class.
import arcpy
# Point to current map document
mxd = arcpy.mapping.MapDocument("CURRENT")
# Now how do I select the second layer from table of contents of current map document?
# Once I figure that out I can then export the layer by using "arcpy.CopyFeatures_management()"
Please help.
... View more
08-20-2012
02:09 PM
|
0
|
9
|
2937
|
POST
|
Modelbuilder allows to make a list of expression, so I've managed to get many expressions (as parameters) and execute the query accordingly. This works fine. Now I'd like to join each table with a layer (grids1.lyr) that will eventually give me different layers as output, for example, QueryTable A/B/C (join field: X) - Layer Name: grids1.lyr (join field: X) --> output layers: gridsA, gridsB, gridsC. I believe I have to use "For Iterators" to achieve this but I couldn't get it to work. Can anyone assist me please? Here's the model I created (without the for iterator): [ATTACH=CONFIG]12611[/ATTACH] Thanks, Sarbajit.
... View more
03-12-2012
02:32 PM
|
0
|
0
|
149
|
POST
|
In modelbuilder, I have "make query table" tool which relies on sql expression to query table and output a table. There are many possibilities of the sql expression so I have made it a model parameter. Now I'd like to create an iterator so that each time the expression changes, a new table is created in my workspace. Does anyone know how to do this. I've attached the model herewith. [ATTACH=CONFIG]12558[/ATTACH] Any help would be greatly appreciated. Many thanks, Sarbajit.
... View more
03-09-2012
08:11 AM
|
0
|
1
|
724
|
POST
|
Does a feature layer which has a table related to it show up in ArcGIS Explorer? It works in my web mapping application with the attributes of the related table hyperlinked. However, ArcGIS Explorer only shows the attributes of the layer and not the hyperlink of the related table. Does anyone know how to fix this issue? Many thanks, Sarbajit.
... View more
09-09-2011
02:10 PM
|
0
|
3
|
907
|
POST
|
Does a feature layer which has a table related to it show up in ArcGIS Explorer 1700? It works in my web mapping application but ArcGIS Explorer only shows the attributes of the layer and nothing about the related table. Does anyone know how to fix this issue? Many thanks, Sarbajit.
... View more
09-02-2011
11:41 AM
|
0
|
0
|
609
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|