POST
|
Hi Eric, Our Software based on ArcGIS has one Setup to run on machines installed with ArcGIS Desktop or ArcGIS Engine. So our customers have machines just installed with ArcGIS Engine. So this test machine has also just installed ArcGIS Engine. We need the Installation withour ArcGIS Desktop to test if all DLL's are delivered and registered through our Setup. So this approach wouldn't be sufficent for our test environment. Christoph
... View more
01-15-2018
01:26 AM
|
1
|
0
|
651
|
POST
|
Hi Eric Bader, do you see a solution for my question? Regards Christoph
... View more
01-05-2018
01:33 AM
|
0
|
0
|
651
|
POST
|
Hi Eric Bader, within the Subcription i have an ArcGIS Engine Developer Kit ESU Number which endures for one year. This seems to be a single use licence. i registered this subcription this summer on 3 machines of me with Arcgis Engine 10.2.1, my developer machine and two test machines. In September we started to migrate our Software from ArcGIS Engine 10.2.1 to 10.5.1. So i installed three new machines, one developer machine and two test machines. I registered the first two succesfull with the ESU Number, the third machine didn't work anymore. I got an error „Autorisierung der Software fehlgeschlagen“ (Authorization failed). Even if i deregistered one of the 10.2.1 machines i couldnt register my last 10.5.1 test machine. We cannot deliver our new release so far, because we couldnt execute all our Tests. Regards Christoph Römer
... View more
12-15-2017
12:30 AM
|
0
|
2
|
651
|
POST
|
i have the same issue. Only when the Process runs in an background job, even if IMap is initialized. The IMap Object is not null, but the access to IMap.Mapscale aborts.
... View more
12-14-2017
02:54 AM
|
0
|
1
|
831
|
POST
|
I have problems to authorize my Testmachine. During Migration from 10.2.1 to 10.5.1 i installed my Developer machine and two Test machines with 10.5.1. On the 2nd Testmachine i wasn't able to authorize the machine anymore. Esri Support said that the Engine Developer Licence is a Single Use Licence. So may questions to ArcGIS Engine Developers. How do you authorize your Testmachine? I don't understand how to buy an Developer Subscription without being able to authorize test machines?
... View more
12-05-2017
01:45 AM
|
0
|
7
|
1419
|
POST
|
The Snippet plugin didnt got my simplify corrections correct after i copied the function from vs. so again: Snippet public static void ZoomToSelection(string layername, bool layeraktualisieren,string ff) { try { IEnumGeometry enumGeometry = new EnumFeatureGeometryClass(); IEnumGeometryBind enumGeometryBind = enumGeometry as IEnumGeometryBind; ArrayList envelopList = new ArrayList(); IEnvelope2 maxEnvelope = new EnvelopeClass(); ILayer layer = cGlobalUtilGISLayer.GetLayer(layername); if (layer == null) { //Debuglog... return; } IFeatureSelection featureSelection = layer as IFeatureSelection; if (featureSelection != null && featureSelection.SelectionSet != null) { //Debuglog... return; } //The following function doesnt respond sometimes! enumGeometryBind.BindGeometrySource(null, featureSelection.SelectionSet); IGeometryFactory3 geometryFactory = new GeometryEnvironmentClass(); maxEnvelope.Union(geometryFactory.CreateGeometryFromEnumerator(enumGeometry).Envelope); cGlobalGISVar.MyActiveView.Extent = maxEnvelope; if (layeraktualisieren) { cGlobalGISVar.MyActiveView.Refresh(); } } catch (Exception ex) { //Debuglog... } }
... View more
03-22-2017
05:41 AM
|
0
|
0
|
299
|
POST
|
We developed a function to step over an polygon layer, for each polygon, select every house (point layer) which lies inside the polygon. Now we zoom in den Map on these Buildings, to export the map. This jobs sometimes runs into an Esri Function enumGeometryBind.BindGeometrySource without response. But always at different polygons/areas. Sometimes all 6.000 areas are exported, sometimes the "no response" is at the 150th area, sometimes at area 3.500 ... . We put logs into our code to check the input feature and the selectionset and IEnumGeometryBind, but there is nothing we found as irregular. When u run the same areas again the programm will zoom to the area, where it doesnt work out before and maybe won't repsond at a another area. We develop with C# under VS 2015 and ArcGIS Desktop 10.2.1. All Layers are DBQuerylayers in ArcGIS from SQLServer2012. Migth be something with COM? Here the Code: Snippet public static void ZoomToSelection(string layername, bool layeraktualisieren) { try { IEnumGeometry enumGeometry = new EnumFeatureGeometryClass(); IEnumGeometryBind enumGeometryBind = enumGeometry as IEnumGeometryBind; ArrayList envelopList = new ArrayList(); IEnvelope2 maxEnvelope = new EnvelopeClass(); ILayer layer = cGlobalUtilGISLayer.GetLayer(layername); if (layer == null) { //Debuglog... return; } IFeatureSelection featureSelection = layer as IFeatureSelection; if (featureSelection != null && featureSelection.SelectionSet != null) { //Debuglog... return; } //The following function doesnt respond sometimes! enumGeometryBind.BindGeometrySource(null, featureSelection.SelectionSet); IGeometryFactory3 geometryFactory = new GeometryEnvironmentClass(); maxEnvelope.Union(geometryFactory.CreateGeometryFromEnumerator(enumGeometry).Envelope); cGlobalGISVar.MyActiveView.Extent = maxEnvelope; if (layeraktualisieren) { cGlobalGISVar.MyActiveView.Refresh(); } } catch (Exception ex) {
//Debuglog... } }
... View more
03-22-2017
05:34 AM
|
0
|
1
|
952
|
POST
|
Thank you for your reply. As I wrote in my text over the code example, i tried with "Right side of vehicle" and with 1, also with "1", but there was no impact on the solved result. it was always solved with standard "Either side of vehicle".
... View more
10-15-2015
09:19 AM
|
0
|
0
|
321
|
POST
|
Hi, i have problem setting the curbapproach for some points while loading them with loadlocations in C#. The code runs unter ArcGIS Desktop und Engine 10.2.1. We want to calculate routes with curbapproach right for main roads and right/left for side roads. In my sample i just wanted to test all my points mit curbaprroach right, i couldn't find sample code except for old c++ code i couldnt get through. i tried the set_DefaultValue("CurbApproach", "?") with 1 and "Right side of vehicle". The result is always that the my assigned curbapproach ist not inherited. public int LoadNALocations(ICursor inputPointFeatureCursor, INAContext naContext, string naClassName, string KeyfeldLayer) { if(inputPointFeatureCursor == null) { return 0; } INAClassLoader2 naClassLoader = new NAClassLoaderClass() as INAClassLoader2; var listOfAgents = new List<ESRI.ArcGIS.NetworkAnalyst.INALocatorAgent>(); naClassLoader.Initialize(naContext, naClassName, inputPointFeatureCursor); int rowsIn = 0; int rowsOut = 0; naClassLoader.FieldMap.set_MappedField("Name", "Stuetzpunkte.ID"); naClassLoader.FieldMap.set_DefaultValue("CurbApproach", "Right side of vehicle"); int agentCount = naContext.Locator.LocatorAgentCount; for (int locIndex = 0; locIndex < agentCount; locIndex++) { listOfAgents.Add(naContext.Locator.get_LocatorAgent(locIndex)); } // Remove the existing locator agents from the locator. This for loop is done in reverse order, because agents are being removed as the loop executes for (int locIndex = agentCount - 1; locIndex >= 0; locIndex--) { naContext.Locator.RemoveLocatorAgent(locIndex); } INALocatorLocationFieldsAgent naLocFAgent = new NALocatorLocationFieldsAgentClass(); naLocFAgent.OIDFieldName = "Stuetzpunkte.SOURCEOID"; naLocFAgent.SourceIDFieldName = "Stuetzpunkte.SOURCEID"; naLocFAgent.PositionFieldName = "Stuetzpunkte.POSALONG"; naLocFAgent.SideFieldName = "Stuetzpunkte.SIDEOFEDGE"; ((INALocatorAgent)naLocFAgent).Bind(naContext.NetworkDataset, null); naContext.Locator.AddLocatorAgent(naLocFAgent as INALocatorAgent); try { naClassLoader.Load(inputPointFeatureCursor, null, ref rowsIn, ref rowsOut); } catch(Exception ex) { Prot.Meldung("Beim Laden der Stützpunkte ist ein Fehler aufgetreten:\n" + ex.ToString(), true); return 0; } ((INAContextEdit)naContext).ContextChanged(); if (naContext.Locator.LocatorAgentCount == 1) { // Now remove the custom fields agent and add back the stored agents naContext.Locator.RemoveLocatorAgent(0); foreach (var agent in listOfAgents) { naContext.Locator.AddLocatorAgent(agent); } } return rowsOut; }
... View more
10-15-2015
06:52 AM
|
0
|
2
|
2913
|
POST
|
Hi, I didn't solve the problem itself, but i got a workaround: I realized that the function only ran into nirvana, when the IPageLayoutControl2 was ActiveView before. If the IMapControl3 was ActiveView the function worked. So when loading the mxd as template i switched the ActiveView to mapcontrol when it was pagelayoutcontrol before loading and back afterwards. Regards Christoph
... View more
06-24-2015
07:57 AM
|
0
|
0
|
284
|
POST
|
Hi, i wish to recall my question, maybe there is someone who can support in that case. Regards Christoph
... View more
02-27-2015
12:10 AM
|
0
|
1
|
284
|
POST
|
Hello, we have an ArcGIS engine Application .NET in C#. We have an function to change the layout/template. Under ArcGIS 9.x it was working fine with mxt-Files. After migrating to ArcGIS10.2.1 i changed the filter to load also mxd-Files because under 10.x you can only create mxd-"Templates". But our Function is not working anymore. The PageLayout is already drawn from the template but when the mapcontrol from the actual map is loaded into the IPageLayoutControl2 Object by ReplaceMaps, the functions runs into Nirvana and doesn't respond: PageLayout.ReplaceMaps(maps); Any suggestions? I found nothing in the web. Regards Christoph Römer C# Code: public override void OnClick() { if (m_hookHelper != null) { string sFilePath; OpenFileDialog dlg = new OpenFileDialog(); dlg.Filter = "Vorlage (*.mxd)|*.mxd|Vorlage (*.mxt)|*.mxt"; dlg.Multiselect = false; dlg.Title = "Vorlage Öffnen"; if (dlg.ShowDialog() == DialogResult.OK) { try { sFilePath = dlg.FileName; IMaps maps = new Maps(); maps.Add(MyMap); //MyMap is IMap IMapDocument mapDoc = new MapDocumentClass(); mapDoc.Open(sFilePath, string.Empty); //MyLayoutControl is IPageLayoutControl2 MyLayoutControl.PageLayout = mapDoc.PageLayout; MyLayoutControl.PageLayout.ReplaceMaps(maps); //!!! Function doesn't respond, killed after 30 minutes !!! IGraphicsContainer pGc = MyLayoutControl.ActiveView.GraphicsContainer; IMapSurroundFrame pMapSF; IMapSurround pMS; pGc.Reset(); IElement pElem = pGc.Next(); while (pElem != null) { if (pElem is IMapSurroundFrame) { pMapSF = pElem as IMapSurroundFrame; if (pMapSF.MapSurround is IMapSurround) { pMS = pMapSF.MapSurround as IMapSurround; if (pMS is ILegend) { pGc.DeleteElement(pElem); } } } pElem = pGc.Next(); } //refresh if (m_hookHelper.ActiveView is IPageLayout) { MyLayoutControl.ActiveView.Deactivate(); MyLayoutControl.ActiveView.Activate(MyLayoutControl.hWnd); MyLayoutControl.ActiveView.Refresh(); MyLayoutControl.Refresh(esriViewDrawPhase.esriViewForeground, null, null); } } catch (Exception) { MessageBox.Show("Die Vorlage konnte nicht geladen werden.","Vorlage Laden"); } } if (m_hookHelper.ActiveView is IMap) { MyMapControl.ActiveView.Refresh(); } } }
... View more
02-12-2015
09:02 AM
|
0
|
2
|
4308
|
POST
|
I solved the problem, after commenting out line by line in the example code i figured out, that the axmapcontrol is the reason fpr the toolbar to get enabled. but i couldnt find a difference between the mapcontrol in my code and the example, so i just deleteted the mapcontrol in my Form and copied the one from the example into my Form and everything was fine. I added the mapcontrol some years ago to the Form under ArcGIS 9.x and i just had to change some code when i migrated the application to higher ArcGIS Engine Versions. Even if the code didn't change there seem to be differences in private between the mapcontrol objects between 9.x nad 10.x which are elementary for the Network Analyst Tools.
... View more
12-03-2014
04:09 PM
|
0
|
0
|
190
|
POST
|
Hi, i just want to remind, if there is someone who in familiar with programming ArcGIS Engine .Net applications using network analyst? Regards Christoph Römer
... View more
11-28-2014
02:34 AM
|
0
|
1
|
190
|
POST
|
Hi, i'm not shure if my question is here at the right place, i delelope with VS 2013, ArcObjects .NET an ArcGIS Engine Application, current Version 10.2.1. I have an problem with the network analyst extension. After a route is added the commands on the network analyst toolbar are not enabled (show network analyst window command and later the solve commands). I compared our Coding with the ExampleCode unter ArcObjects Help for .NET (ArcGIS Network Analyst extension Engine application - http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/index.html#//0001000000pw000000) I couldn‘t find the point which variable has to be set, that the NetworkAnalyst Toolbar activates the Commands The Code of the Toolbar is hidden, so I just know that there have to be some Events to which the ToolbarControl responds to activate the Command for the NetworkAnalystWindow and later when Locations are added to activate the other Commands/Tools (ex. Calculate). So my question is, which variables have to be set, that these Tools get activated? in the example code are the Commands enabled in my code not. Our code is differnent to the example code, that our application has beside the mapcontrol an pagelayoutcontrol. This is a fragment of my code: frmMain_Load: … axToolbarControl3.SetBuddyControl(axMapControl1); IExtension ext = m_naEnv as IExtension; object obj = axToolbarControl3.Object; ext.Startup(ref obj); m_naWindow = m_naEnv.NAWindow; m_onContextMenu = new IEngineNAWindowEventsEx_OnContextMenuEventHandler(OnContextMenu); ((IEngineNAWindowEventsEx_Event)m_naWindow).OnContextMenu += m_onContextMenu; m_OnNetworkLayersChanged = new IEngineNetworkAnalystEnvironmentEvents_OnNetworkLayersChangedEventHandler(OnNetworkLayersChanged); ((IEngineNetworkAnalystEnvironmentEvents_Event)m_naEnv).OnNetworkLayersChanged += m_OnNetworkLayersChanged; m_OnCurrentNetworkLayerChanged = new IEngineNetworkAnalystEnvironmentEvents_OnCurrentNetworkLayerChangedEventHandler(OnCurrentNetworkLayerChanged); ((IEngineNetworkAnalystEnvironmentEvents_Event)m_naEnv).OnCurrentNetworkLayerChanged += m_OnCurrentNetworkLayerChanged; … Regards Christoph Römer
... View more
11-25-2014
02:21 AM
|
0
|
2
|
3343
|
Title | Kudos | Posted |
---|---|---|
1 | 01-15-2018 01:26 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|