Hot answers tagged

3

ArcEngine doesn't work like ArcGIS Desktop. If you have the proper licensing for a functionality or extension (e.g. spatial analyst) in ArcEngine, then you can use the related Interfaces of that extension. ILocatorExtension, itself is dedicated to ArcGIS Desktop and can not be used with ArcEngine. With ArcEngine your should utilize : ILocatorWorkspace2 ...


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)) { ...


2

You need to point edit to an existing workspace object not the base class. So you need to get a handle on the workspace you intend to edit before you point an IWorkspaceEdit interface to it. Search the API help for the page "Editing with the geodatabase API" there are several code samples to get you going.


2

You can not cast a FeatureClass into a ILayer! Here's the proper way to reach an ILayer from a FeatureClass: .... IFeatureLayer fl = new ESRI.ArcGIS.Carto.FeatureLayer() fl.FeatureClass = FC; var l = fl as ILayer; axMapControl1.AddLayer(l); I am assuming all of your previous methods are correct and you have a valid IFeatuerClass (FC).


2

It is not possible to use Esri Addins, regardless of whether you are using Python Addins or .NET Addins, to extend a custom application. You can only use Esri Addins to extend ArcGIS for Desktop applications (ArcMap, ArcCatalog, ArcScene, ArcGlobe). The error you are receiving is likely the result of your target name and/or version value not being a legal ...


1

Problem Solved pMap is Input arg MainMap and axMapControl1.ActiveView.FocusMap is Input arg ChildMap IObjectCopy esriObjectCopy = new ObjectCopyClass(); System.Object copyTarget = axMapControl1.ActiveView.FocusMap; System.Object copySource = pMap; esriObjectCopy.Overwrite(copySource , ref copyTarget); IBasicMap basicMap = ...


1

I've not programmed in Engine but looking at the help file for Interface IEngineFeatureSnapAgent the method Snap states: Snapping the passed in point means changing its x,y location properties. Because an IPoint interface pointer is passed into this function ByValue, direct edits of the point's parameters are possible. Resetting the IPoint ...


1

Ihad the same problem and I resolved it by casting featureClass from IFeatureClass to FeatureClass: IFeatureClass featureClass = featureWorkspace.openFeatureClass(shapefileName); FeatureClass featureClass2= new FeatureClass(featureClass); ..... //Attempt to acquire an exclusive schema lock on the feature class. ISchemaLock schemaLock = (ISchemaLock)...


1

One possible work around is to: "create layer from selected features" and label that (maybe making all the geometry transparent). A smart cookie could make a model or add-in to do it.



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