New answers tagged

2

The question is old but since I had a hard time finding the answer to this and ended up on this page several times, I thought I would supplement the acccepted answer a bit. I found the solution from ESRIs GeoNet: "When you create a join in ArcMap, the join results in a table that is a combination of the two tables you've joined together. This table is ...


0

It turns out the fix was pretty obvious (as often) I ran the ArcGIS Code Migration Analyzer in Visual Studio and it told me all projects/class libraries have to be explicitly set to x86 upon release. In my case only the main project was set to x86 and the rest to anyCPU. I cannot really explain why but it worked


2

I've also created a script that creates a Network Dataset using comtypes and arcobjects COM Objects. The information posted here, these two GIS-se posts and the ArcGIS tutorial linked in the question were extremely helpful me in putting this together. I went into a little more depth in configuring the network attributes and other settings of the Network ...


-1

public override void OnMouseDown(int Button, int Shift, int X, int Y) { if (Button == 2) { **m_activeview.ScreenDisplay.Invalidate(null, true, m_activeview.get_ScreenCacheID(esriViewDrawPhase.esriViewGraphics, null));** } }


1

I have done something similar with the IPackageFile object. The unpack method should do what you want.


3

Got this fixed. For those facing similar issue: expand the "References", find the ESRI.ArcGIS.Display reference. Right click it and select properties, and change "Embed Interop Types" to false.


2

If you're working on an arcgis engine app then check your licence initializer change bindingarcgisruntime method the below code void BindingArcGISRuntime(object sender, EventArgs e) { // // TODO: Modify ArcGIS runtime binding code as needed // if (!RuntimeManager.Bind(ProductCode.Engine)) { ...


0

I believe that's because your Python is using ArcPy to call Geoprocessing tasks, which are running in 64-bit processes. ArcObjects happens in 32-bit processes.


0

I just found the solution (several minutes after..). Subfields have to be set to the fieldName: queryFilter.setSubFields(fieldName); and it works very fast!


0

Who said 'COM objects don't consume memory'? It may not be much but they do have at least a reference in memory... If you've only got 4GB to play with sometimes you need to be careful of even the little things. Most Esri objects are cleaned up nicely by the garbage collector, with cursors being a noticeable exception, workspaces and modified feature classes ...



Top 50 recent answers are included