POST
|
Hi, I am looking for help on an issue that we have come across. Within our ArcGIS extension, we have functionality that creates a mask based on geomtry. In 931, this functionality would work fine. In 10, it doesn???t work as expected. It shows the mask in layout view only not in desktop view. I am trying to figure out the cause of this issue and if something that has changed in version 10. m_pMap.ClipGeometry = pGeometry m_pMap.ClipBorder = pBorder Appreciate any feedback. Thanks Jay
... View more
07-13-2012
10:33 AM
|
0
|
0
|
548
|
POST
|
I have an application (extension) that works fine on Windows XP platform. When I run this application on Windows 7 it throws this error. I am not sure what is causing this. I was thinking that it could be due to the fact that .net framework is not installed but I can see all in there. Looking for any ideas to resolve this issue. Note: this error comes up when I click on a combox box. How can i get past this message box and get to actual error. Thanks Jay See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ***** Exception Text ******* System.NullReferenceException: Object reference not set to an instance of an object. at MapExt_Net.HEI_Extensions.layout.frmLayout.DisplaySize() at MapExt_Net.HEI_Extensions.layout.frmLayout.cBLayoutExtent_SelectedIndexChanged(Object sender, EventArgs e) at System.Windows.Forms.ComboBox.OnSelectedIndexChanged(EventArgs e) at System.Windows.Forms.ComboBox.WmReflectCommand(Message& m) at System.Windows.Forms.ComboBox.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) [ATTACH=CONFIG]16041[/ATTACH]
... View more
07-12-2012
02:02 PM
|
0
|
1
|
3161
|
POST
|
have an application (extension) that works fine on Windows XP platform. When I run this application on Windows 7 it throws this error. I am not sure what is causing this. I was thinking that it could be due to the fact that .net framework is not installed but I can see all in there. Looking for any ideas to resolve this issue. Note: this error comes up when I click on a combox box. How can i get past this message box and get to actual error. Thanks Jay See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ***** Exception Text ******* System.NullReferenceException: Object reference not set to an instance of an object. at MapExt_Net.HEI_Extensions.layout.frmLayout.DisplaySize() at MapExt_Net.HEI_Extensions.layout.frmLayout.cBLayoutExtent_SelectedIndexChanged(Object sender, EventArgs e) at System.Windows.Forms.ComboBox.OnSelectedIndexChanged(EventArgs e) at System.Windows.Forms.ComboBox.WmReflectCommand(Message& m) at System.Windows.Forms.ComboBox.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) [ATTACH=CONFIG]16040[/ATTACH]
... View more
07-12-2012
01:55 PM
|
0
|
0
|
1150
|
POST
|
Here is my scenario: I am working on migrating a 931 extension to version 10. As per the ESRI link, I have made changes and the revised installer and it works fine. When we went for deployment, the user account that we used before (@931 level) comes back with an error. It throws this error: Error 1001. InstallUtilLib.dll, unknown error. With some accounts with higher privileges, it works fine. it seems like there is a permission issue and I want to know what I need to ask from our System admin to resolve this issue. http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//0001000002pv000000 Thanks Jay
... View more
07-09-2012
08:11 AM
|
0
|
1
|
3866
|
POST
|
Hi There, I have an extension that writes to bin directory of ArcGIS installation. At 931, with power user rights, it works fine but at ArcGIS 10, it doesn???t allow copy of the dll's to C:\Program Files\ArcGIS\Desktop10.0\Bin folder. As local admin, it works fine and copies all the files properly. It seems like something has chnaged at ArcGIS 10 that is preventing this. I am looking for some feedback on possible options to resolve this issue. Thanks Jay
... View more
06-26-2012
12:30 PM
|
0
|
1
|
462
|
POST
|
Hi Jeffery, Thanks for your reply. This is the script that I am using. I am having mixed success. Script fails sometimes, giving some Utility.py error. I would appreciate any suggestions. Thanks Jay import arcpy, datetime, os, io, sys try: #Read input parameters from GP dialog # Prod Setting... folderPath = arcpy.GetParameterAsText(0) output = arcpy.GetParameterAsText(1) sourceString = r"P:\Local" # arcpy.GetParameterAsText(1) replacmentString = r"\\hq\share" # arcpy.GetParameterAsText(2) #Create an output file outFile = open(output, "w") #Loop through each "LYR" file count = 0 for path, dires, files in os.walk(folderPath): for filename in files: fullpath = os.path.join(path, filename) if os.path.isfile(fullpath): if filename.lower().endswith(".lyr"): groupLayerName = "" layerFile = arcpy.mapping.Layer(fullpath) #Reference each layer in a layer file count = 1 for lyr in arcpy.mapping.ListLayers(layerFile): if lyr.isGroupLayer: groupLayerName = lyr.name if lyr.supports("DATASOURCE"): oldLoc = sourceString newLoc = replacmentString if lyr.dataSource.find(oldLoc) != -1: ds = lyr.dataSource.replace(oldLoc, newLoc) index = ds.find(lyr.datasetName) newds = ds[0:index-1] if lyr.dataSource.find(".shp") >= 0: lyr.replaceDataSource(newds, 'SHAPEFILE_WORKSPACE', lyr.datasetName) outFile.write(fullpath + "\t" + "SHP" + "\t" + lyr.longName + "\t" + groupLayerName + "\t" +lyr.name + "\t" + lyr.datasetName + "\t" + str(newds) + "\t" + "SHP" "\n") elif lyr.dataSource.find(".mdb") >= 0: lyr.replaceDataSource(newds, 'ACCESS_WORKSPACE', lyr.datasetName) outFile.write(fullpath + "\t" + "PGDB" + "\t" + lyr.longName + "\t" + groupLayerName + "\t" +lyr.name + "\t" + lyr.datasetName + "\t" + str(newds) + "\t" + "PGDB" "\n") elif lyr.dataSource.find(".gdb") >= 0: lyr.replaceDataSource(newds, 'FILEGDB_WORKSPACE', lyr.datasetName) outFile.write(fullpath + "\t" + "FGDB" + "\t" + lyr.longName + "\t" + groupLayerName + "\t" +lyr.name + "\t" + lyr.datasetName + "\t" + str(newds) + "\t" + "FGDB" "\n") layerFile.save() del layerFile outFile.close() #Open the resulting text file os.startfile(output) #Delete variables that reference data on disk del outFile except Exception, e: import traceback map(arcpy.AddError, traceback.format_exc().split("\n")) arcpy.AddError(str(e))
... View more
06-05-2012
12:31 PM
|
0
|
0
|
815
|
POST
|
Hi Jeffrey , I am having a similar issue and and I am able to set the path to UNC path. The issue that I am getting is with Layer files with nested data sources. Would you have any input on how to make this happen. Thanks Jay I need to change thousands of LYR files to use relative paths instead of absolute. Following the example in help I got this: import arcpy, os folderPath = r"C:\Testing\ArcGIS10_release\paths" for filename in os.listdir(folderPath): fullpath = os.path.join(folderPath, filename) if os.path.isfile(fullpath): basename, extension = os.path.splitext(fullpath) if extension.lower() == ".lyr": lyr = arcpy.mapping.Layer(fullpath) lyr.findAndReplaceWorkspacePath (r"C:\Testing\ArcGIS10_release\paths", r"\\ Testing\ArcGIS10_release\paths ") lyr.save() del lyr The paths are coming out as broken when I move them to the same path but a different directory (D:\Testing\ArcGIS10_release\paths). I think I need to append the file name on the end of the path for this to work - but am not sure how. Any help?
... View more
06-01-2012
12:09 PM
|
0
|
0
|
815
|
POST
|
Hi There, I am having some difficulty changing the data source for a grooup layer. Below is the code that i am using. It processes LYR file successfully that has single data source but if LYR file has more than one data layers, it doesn't do it. Appreciate any feedback. Thanks Jay import arcpy, datetime, os, io, sys try: #Read input parameters from GP dialog # Prod Setting... folderPath = arcpy.GetParameterAsText(0) output = arcpy.GetParameterAsText(1) sourceString = r"P:\Temp" # replacmentString = r"Z:\Temp" # #Create an output file outFile = open(output, "w") #Loop through each "LYR" file count = 0 for path, dires, files in os.walk(folderPath): #for filename in os.listdir(folderPath): for filename in files: #fullpath = os.path.join(folderPath, filename) fullpath = os.path.join(path, filename) if os.path.isfile(fullpath): if filename.lower().endswith(".lyr"): groupLayerName = "" #Reference LYR layerFile = arcpy.mapping.Layer(fullpath) #Reference each layer in a layer file count = 1 for lyr in arcpy.mapping.ListLayers(layerFile): if lyr.isGroupLayer: groupLayerName = lyr.name if lyr.supports("DATASOURCE"): dataSourceOrig = str(lyr.dataSource) if dataSourceOrig.find(sourceString) >= 0: dataSourceNew = dataSourceOrig.replace(sourceString, replacmentString) if groupLayerName: outFile.write(fullpath + "\t" + groupLayerName + "\t" +lyr.name + "\t" + dataSourceOrig + "\t" + dataSourceNew + "\t" + "GROUP LAYER SOURCE" "\n") lyr.findAndReplaceWorkspacePath(sourceString, replacmentString, True) lyr.save() else: outFile.write(fullpath + "\t" + "Non Group Layer" + "\t" + lyr.name + "\t" + dataSourceOrig + "\t" + dataSourceNew + "\t" + "SINGLE LAYER SOURCE" "\n") lyr.findAndReplaceWorkspacePath(sourceString, replacmentString, True) lyr.save() del layerFile outFile.close() #Open the resulting text file os.startfile(output) #Delete variables that reference data on disk del outFile except Exception, e: import traceback map(arcpy.AddError, traceback.format_exc().split("\n")) arcpy.AddError(str(e))
... View more
06-01-2012
07:02 AM
|
0
|
13
|
6683
|
POST
|
Great, these steps did allow me to update latest version of the Viewer successfully. Thanks Jay
... View more
04-24-2012
02:57 PM
|
0
|
0
|
584
|
POST
|
Hello There, I am having issues with connecting to our Intranet from ArcGIS Mobile (Trimble Juno). I am looking for some feedback from user community who have successfully connected to intranet using F5 Edge client. Thanks Jay
... View more
04-23-2012
08:05 AM
|
0
|
0
|
389
|
POST
|
Hi Wilbur, Thanks for your feedback, I got completely sidetracked on some other tasks. Finally got a chance to work on this issue. I tried the steps you suggested but the problem still persists. I have attached the error message that I have received. I have attached the error messages that I am getting. Appreciate any feedback. Thanks jay
... View more
04-17-2012
02:55 PM
|
0
|
0
|
584
|
POST
|
Hi There, I am trying to run the samples from the Silverlight Viewer website...made sure that web is start up project and htm page startup page with IE as default browser. Website loads but nothing happens when I click on the AddIn. I am curious what else I am missing? I have tried many samples with same results. Appreciate any input. Thanks Jay
... View more
04-17-2012
10:14 AM
|
0
|
1
|
1984
|
POST
|
Hi katy, My quetion is slightly different now. It turns out that I was trying to add is an ArcIMS service not an WMS service. Please let me know if the approach above would still work? Thanks Jay
... View more
03-09-2012
07:33 AM
|
0
|
0
|
769
|
POST
|
Hi Katy, I was trying to download the sample from the link but it says "Service Unavailable". I have tried this twice now so wanted to check if there is any issue. On your suggestion for ArcGISonline option, I did try that but didn't get far with this. While creating the map, it does accepth the URL but it doesnt ask me to specify login/pwd and eventully it doesnt show in the map. This is a secured service. Thanks Jay
... View more
03-09-2012
07:00 AM
|
0
|
0
|
769
|
POST
|
Hi Katy, Just wanted to let you know that I am using Builder to add this wms layer, not doing any coding for this. I will into and see what I can get from SL API forum. I still think this is a relevent issue (Builder) that will need resolution. Thanks Jay
... View more
02-29-2012
06:08 AM
|
0
|
0
|
860
|
Title | Kudos | Posted |
---|---|---|
1 | 07-04-2016 01:36 PM | |
1 | 08-29-2016 10:42 AM |
Online Status |
Offline
|
Date Last Visited |
02-18-2021
05:23 PM
|