Tag Info

Hot answers tagged

3

It seem you have written an ArcEngine application. So, you must install ArcEngine Runtime on any machine you need to run your application. ArcEngine Runtime is the minimum. You can either install ArcEngine SDK or even ArcGIS Desktop to run you application. The Arc Application (Engine or Desktop), must match the version of sdk that you have built your ...


3

(I don't have enough rep to comment so I'm answering instead.) @Michalis Avraam This isn't enirely true, a FGDB has 3 types of locks. SR - schema lock RD - read lock ED - edit lock The proposed solution by StacyR will work in all situations except for exclusive edit locks (ED) according to arcgis help documentation. ...


1

Take a look at the code below. Full code in git repository can be here: https://bitbucket.org/bugramovic/fme_arcobjects_interop_example PrintStream out = System.out; FMEWorkspaceFactory fmeWorkspaceFactory = new FMEWorkspaceFactory(); IPlugInWorkspaceHelper plugInWorkspaceHelper = fmeWorkspaceFactory.openWorkspace( pathToFdlFiles ); ...


1

In this case the field NumEvents was not available until the DisplayRelationship was set up. gridLayer = new FeatureLayerClass(); gridLayer.FeatureClass = layersFeatureWorkspace.OpenFeatureClass(layerName); gridLayer.Name = "Density Grid"; gridLayer.Cached = true; gridLayer.Selectable = true; gridLayer.ShowTips = true; [...] // Create relationship between ...


1

I don't have a "50 reputation" to comment yet so I have to comment like this: What is the licensed product of ArcGIS that you are running? ArcGIS Basic (formerly ArcView) cannot edit an SDE workspace so if that is what you are using that could be your problem. If you are using ArcEngine, verify the licensed product that you are initializing your ...


1

Cast them to ints, add them and recast back to esriSnappingType, like: snappingEnvironment.SnappingType = (esriSnappingType) ((int)esriSnappingType.esriSnappingTypePoint + (int)esriSnappingType.esriSnappingTypeEndpoint + (int)esriSnappingType.esriSnappingTypeVertex + (int)esriSnappingType.esriSnappingTypeEdge);


1

I found the solution thaks to : ArcObjects: Memory leak in IFeatureClass.Search (only on SDE with direct connect) Code correction : ITopologicalOperator4 topoOperateur = ((IClone)secteurPsr.Shape).Clone() as ITopologicalOperator4; IGeometry geomPsr = ((IClone)currentPsr.Value.Shape).Clone(); IPolyline polylinePsr = geomPsr ...


1

ESRI have "improved" their forum site and it's now hard to find any of the archived threads but I did find this code fragment in a thread from 2008. I've done very little in Engine so this may be a red herring? ICommand command = new ControlsZoomToSelectedCommandClass(); command.OnCreate(this.axMapControl1.Object); command.OnClick();


1

I have never tried them myself, but it looks like the iScreenDisplay interface has rotation functions: iScreenDisplay Also check out screenDisplay.DisplayTransformation.Rotation() Might be a good starting point.



Only top voted, non community-wiki answers of a minimum length are eligible