Quantcast
Channel: Forums - ArcObjects SDKs
Browsing all 1374 articles
Browse latest View live

Memory usage for ArcMap - System.OutOfMemoryException //c#

Hi the problem is common as far as I know from reading post from this and other forums(memory usage for arcgis). I'm developing a add-in for ArcMap that checks electricity flow in Geometric Network....

View Article


Trying to assign already selected features to ISelctionSet2

Good Afternoon, I am trying to loop through a set of selected features for a specific layer. The key issue I have is that the user will have already made a selection (with any of the out-of-the-box...

View Article


Colorize individual polygon's outline in a polygon layer.

My Environment...Visual Studio 2008 VB.NET ArcObjects 10.0 I have no clue where to even start on this. Say you're given a layer that is a Simple Polygon File Geodatabase Feature Class which resides in...

View Article

Question in adding layer to dataframe in C#

Environment: ArcObjects 10.1 I want to create a button using the conversion tool to convert an ASCII file to a raster dataset and add it into ArcMap. I have a few questions: 1. Does the OnUpdate method...

View Article

Hiding dynamically added toolbar will crash ArcGIS desktop 10.1 on XP

I have weird bug If you create dynamically a toolbar on ArcGIS Desktop extension, and then try to hide it . It will crash Desktop 10.1 on Windows XP. But work find on Windows 7. So, for example this...

View Article


Bug in ESRI's IEnumBSTR usage (IWorkspaceExtension.DataDictionaryTableNames)

All, My team has a class very similar to the sample below. It really bothered me when I saw how it signaled that there were no more strings to enumerate (throwing an exception.) I read the ESRI...

View Article

Datagrapht with 2-D line and 3-D bars?

I don't know if it's possible....it is in regular ArcMap. But I have my doubts it is possible in ArcObjects. ==================================================================== Dim pdatagraph As...

View Article

Image may be NSFW.
Clik here to view.

Unexpected Result With esriSpatialRelEnvelopeIntersects and Shapefiles

Hi All, I am getting an unexpected result when I query a shapefile source feature class with a Spatial Filter using the esriSpatialRelEnum.esriSpatialRelEnvelopeIntersects for my spatial filter...

View Article


Performance: Non case-sensitive where clause for IQueryFilter

Hi all, I have a variety of different Shapefiles/SDE Featureclasses/File GDB Featureclasses which I need to perform attribute queries on. I need to develop a way which will ignore the varierty of case...

View Article


10.1 - ComEx 2147218671 "doesn't have the required license" using IClone

Hi, I'm trying to run those lines: IRepresentationRules repRules = GetRepRule(); IClone clone = (IClone)repRules; IRepresentationRules cloneRepRule = clone.Clone() as IRepresentationRules; At the last...

View Article

How to sort the results from the IFeature based on the data in Feature Class?

Hi, Can anyone please help me with this scenario? I am facing a scenario like to locate the inputs on a feature class. For this I am trying to query over the Feature Class to and then I am using...

View Article

Error: “Workspace or data source is read only.” from file geodatabases

After updating from ArcObjects 10.0 to 10.1 (service pack 1), we are receiving this error quite often: “Workspace or data source is read only.”Our ArcObjects applications update and alter...

View Article

HRESULT 2147467259 - IClassSchemaEdit.AlterDomain() in 10.1

Hi everyone, I'm trying to use this example in my code: http://edndoc.esri.com/arcobjects/9.2/ComponentHelp/esrigeodatabase/Alter_Domain_Example.htm It works fine most of the time, but somwtimes i'm...

View Article


Create Configurable Extension in ArcGIS Desktop

I am creating a configurable extension for ArcGIS desktop 10.1 I am not using Add-on , so please don't suggest add-on. How can I disable some toolbars and commands, when the extension is disabled? I...

View Article

File GDB feature class editing problem

I'm trying to add new feature to file GDB feature class and keep getting this error: Objects in this class cannot be updated outside an edit session. Feature class has attachments enabled (exists...

View Article


Communicating between windows application and class library

As some have pointed out, there are some things that cannot be done in a Windows Application (go into VB.net and create "Windows Application. You can launch ArcMap and load a shapefile but not color...

View Article

Windows Forms - Best Practice Question

Hi, Obviously this isn't going to be a 100% agreed upon answer, but I'm curious what others think about it. Is it "best" or "better" practice to have a new form (literally a form complete with elements...

View Article


How to convert IPersistStream or IStream(in Arcgis)to...

Hi, Are there anyone know how to convert IPersistStream or IStream object (in Arcgis) into MemoryStream or FileStream in C# ? Could you please give some codes for demo this ? Thanks and regards, Tai

View Article

[.NET] ArcCatalog 10.1 tree doesn't refresh after adding new custom IGxObject

I am using ArcObjects 10.1 (.NET) to customize ArcCatalog: adding new nodes in catalog tree like in the Esri's example. But when I add new child node to already expanded parent, it doesn't show up in...

View Article

Can't load Mxd file in MapControl ?

Hi, I used below codes to save IMap into byte[] (to store in my database), but I can't load it again, are there anyone know what's wrong ? Code: public byte[] SaveMap(AxPageLayoutControl pageLayOut) {...

View Article
Browsing all 1374 articles
Browse latest View live