POST
|
At the Berlin DevSum in December 2016 ESRI announced that two updates on ArcGIS .NET Runtime SDK were planned for 2017. Can not find any information about these updates. Any information about this would be appriciated.
... View more
06-12-2017
01:52 AM
|
0
|
4
|
1158
|
POST
|
We have developed a custom tool that inherits the BaseTool class with this OnMouseMove method. public override void OnMouseMove(int Button, int Shift, int X, int Y) { IActiveView pActiveView = (IActiveView)m_pMapControl3.Map; m_pPoint = pActiveView.ScreenDisplay.DisplayTransformation.ToMapPoint(X, Y); ISnappingResult snapResult = m_SnappingEnvironment.PointSnapper.Snap(m_pPoint); //Feedback m_SnappingFeedback.Update(snapResult, 0); //Update the current location to move the cursor to the snapped location. if (snapResult != null) m_pPoint = snapResult.Location; } And this is the code where we are trying to exclude layers from snapping. In this code we are trying to exclude ALL layers just for test. public override void OnCreate(object hook) { //...other code UID guid = new UIDClass(); guid.Value = "{E07B4C52-C894-4558-B8D4-D4050018D1DA}"; //Snapping extension. IExtension extension = extensionManager.FindExtension(guid); m_SnappingEnvironment = extension as ISnappingEnvironment; m_SnappingEnvironment.SnappingType = esriSnappingType.esriSnappingTypeVertex; m_SnappingFeedback = new SnappingFeedbackClass(); m_SnappingFeedback.Initialize(hook, m_SnappingEnvironment, true); IPointSnapper pointSnapper = m_SnappingEnvironment.PointSnapper; ISet excludedLayerSet = new ESRI.ArcGIS.esriSystem.SetClass(); pointSnapper.ExcludedLayers(ref excludedLayerSet); for (int i=0; i<m_pMapControl3.LayerCount; i++) { ILayer exkluderaLager = m_pMapControl3.Map.get_Layer(i); excludedLayerSet.Add(exkluderaLager); //Exkludera lagret } pointSnapper.ClearCache(); } Everything except ExcludeLayers seems to work fine for us. Anders
... View more
05-20-2014
10:14 PM
|
0
|
0
|
502
|
POST
|
I am having problem to get ExcludedLayers to work in an ArcGIS Engine application. I have exact the same code as in your example. This row returns true so it seems that my layer is excluded, but the i am getting snap feedback for all layers in my map. bool layerIsExcluded = excludedLayerSet.Find(pLayer); Any help is appriciated. Anders
... View more
05-20-2014
06:43 AM
|
0
|
0
|
502
|
POST
|
I am trying to create a Mobile Map With the GeoProcessor and ArcGisMobile build 2525 from an ArcGIS Engine application. This is working fine when I run the application as an administrator. But when the same application runs as a ordinary user i get a general exception from Arcobjects (80004005). My code is fairly simple: IVariantArray parameters = new VarArrayClass(); parameters.Add("C:\\temp\\test.mxd"); parameters.Add("C:\\temp\\MobileCache"); Geoprocessor GP = new Geoprocessor(); GP.Execute("CreateMobileMap", parameters, null); Does anyone know anything about permissions using this tool or other tools with the GeoProcessor object? Regards Anders
... View more
03-19-2012
07:14 AM
|
0
|
3
|
454
|
POST
|
Unfourtunatly it does not seems like ESRI has come up with an official Hotfix for this: http://resources.arcgis.com/content/nimbus-bug?bugID=TklNMDYyMDUx As my company is a partner with ESRI, they have helped us to get this to work, but it involved replacing a dll and a python script. I feel sorry for you guys that can not get this to work, I know it is very frustrating. But I can not share theese files I got from ESRI so I guess you have to wait for the official Hotfix. My suggestion is that you contact ESRI and ask them when they plan to release this Hotfix. Anders
... View more
01-03-2011
09:50 PM
|
0
|
0
|
464
|
POST
|
The latest information I got on this from ESRI is that SP1 and a Hotfix is required to get this to work. The bug ID is NIM062051. We were told that this Hotfix should have come last week but we are still waiting for it. Regards Anders
... View more
11-16-2010
09:50 PM
|
0
|
0
|
529
|
POST
|
Well it seems like a bug to me too. I contacted their support and the support team admitted that this is not working. The support team has reported this bug to the developers at ERSI Inc. so hopefully they will provide a hotfix to this issue soon. Anders
... View more
10-21-2010
11:54 PM
|
0
|
0
|
529
|
POST
|
Thanks for your quick reply Akhil. I have already tried to to what you are suggesting, I created a tool that uses the Create Mobile Map Tool using the Model Builder. This tool works fine within ArcMap, but when i export the script to a Python script I get this error when I run it: -------------- Traceback (most recent call last): File "MyMobileMapCreatorExport.py", line 24, in <module> arcpy.CreateMobileMap_mobile(mapdocument, output, "", "-4684579,73390153 -11 000940,2408731 7684579,73390153 11000940,2408731", "", "") File "C:\Program Files\ArcGIS\Mobile10.0\ArcToolbox\Toolboxes\Mobile Tools.tbx ", line 47, in CreateMobileMap AttributeError: 'NoneType' object has no attribute 'CreateMobileMap_mobile' -------------- MyMobileMapCreatorExport.py is my exported script. But the message points to an error at line 47 in Mobile Tools.tbx. Please send a note if you have any success in your project with an export using ArcObjects or Python. Anders
... View more
10-07-2010
05:32 AM
|
0
|
0
|
529
|
POST
|
I would like to automate the Mobile map creation in ArcGIS 10 from ArcObjects or Python, but can not get any of them to work. As far as I can see there is't a GPTool available for Mobile Tools in ArcObjects or am I wrong? When I did not find it possible to use ArcObjects for this I started to look at Python. I am new to Python so maybe I am doing some misstakes here. From the Python window in ArcMap I got this simple script to work after I disabled the Background Processing option i Geoprocessing options: ################## import arcpy arcpy.CreateMobileMap_mobile("c:/Temp/MyMxd.mxd", "c:/Temp", "","","","") ################## But I cant get a similar code to work in a stand alone Python script: ################## import arceditor import arcpy from arcpy import env arcpy.SetProduct("ArcEditor") arcpy.env.scratchWorkspace = r"C:\Documents and Settings\WMUser\My Documents\ArcGIS\Default.gdb" arcpy.env.workspace = r"C:\Documents and Settings\WMUser\My Documents\ArcGIS\Default.gdb" map_document = r"c:\Temp\MyMxd.mxd" output_folder = r"c:\Temp" arcpy.CreateMobileMap_mobile(map_document, output_folder,"#", "#", "#", "#") ################## The script does not generate any errors and I can not se any errors in the C:\Documents and Settings\WMUser\Application Data\ESRI\Desktop10.0\ArcToolbox\History log either. Any help would be appreciated. Anders
... View more
10-06-2010
11:50 PM
|
1
|
21
|
3607
|
Title | Kudos | Posted |
---|---|---|
1 | 10-06-2010 11:50 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|