Save Mxd Document using C# code
Hi My requirement is to Open an Arc map application and close it automatically through C# coding. For that I Wrote below code IDocument pDoc = new MxDocumentClass(); pApp = pDoc.Parent;...
View ArticleHow to display point features w.r.t field values of a polygon file in arcgis...
I have a point & polygon shapefile. Point file has a field namely, Type: atm,hospital,school etc... Polygon file has a field Zone: Zn1, Zn2, Zn3. There will be two combo boxes which will populate...
View ArticleQuestion regarding Using directives
Getting started in ArcObjects 10.1 SDK... Within Visual Studio 2010, I entered in the following for Using directives: using ESRI.ArcGIS.ArcMapUI; using ESRI.ArcGIS.Desktop; using...
View ArticleSystem.IO.FileNotFoundException was unhandled
Hi. I am trying to migrate a console application from 9.3.1 to 10.1 but dont know this is giving an System.IO.FileNotFoundException was unhandled error.Please help anyone.. I have tried below web but...
View ArticleConvert GraphicsLayer to Annotation Feature Layer
Namaste, I am trying to create an Annotation Feature Layer from a GraphicsLayer. I have used CompositeGraphicsLayer to create the IGraphicsLayer and have drawn some graphic elements on it (Triangle...
View ArticleLine simplification
Hi i'm developping an arcgis tool allowing : * least cost route computation (cost path functions) (already done); * simplification (weeding) of the result polyline using constraints (to be done!!). The...
View ArticleHow to use ArcMap Existing Command in C# .Net(Arcobject).
Hi All, My name is Madan Burathi, I am new in Arcobject can any one please tell me how convert following VBA code to C# code. Actually my intention is how to use Arcmap existing commands in .Net...
View ArticleCreateESRISpatialReferenceFromPRJ returns The input is not a workstation prj
Hi, Im getting the following error while trying to execute CreateESRISpatialReferenceFromPRJ(string prjString). But when im using CreateESRISpatialReferenceFromPRJFile(string prjFile) with the same prj...
View ArticleProblem getting IComPropertyPage2 (EditorExtension) to register
This has been an on-going problem and decided to tackle it as I am recompiling the ArcGIS 10 code for Windows 7. I have a EditorExtension class that implements IComPropertyPage2 for the purpose of...
View ArticleArcMap window size
I need to draw on the ArcMap window - but I have two questions: (1) How to know the size in pixels of the ArcMap window? I need to know the size of the area where ArcMap renders the map. (2) I also...
View ArticleHow to programmatically change colors of CadAnnotationLayer?
I need to add Annotation layer from CAD file to arcmap. Unfortunately all annotations have different colors, but they must be represented in black. I've tried some methods to do it like this:...
View ArticleHow can I sign an Addin with signtool?
Hello, I am trying to sign an AddIn. I cannot easily use the ESRISignAddIn utility, because our ArcMap license is not on the same computer as the one with our certificates. So I tried to use signtool...
View ArticleCan a halo be added to a text element which is added to a graphic container?
Is there a way to programmatically add a halo to text elements that are being added to a graphic container? Here's a sample of my code: // // --- Obtani the area of the polygon to get the centroid of...
View ArticleHow to modify ESRI.ArcGIS.Geometry.IPoint to get decimal degrees?
Hi All, I think I have a simple question. This code returns the XY of the point clicked in feet. I would like to get it in decimal degrees. How would I modify the code? Code: using System; using...
View ArticleRobust way for testing geometric equivalence
Hi all, Can I please get some advice as to how to use IRelationalOperator on geometries from different layers with different spatial references? I have a routine which gets a test and base feature...
View Articleidentify tool using arcobject
Hi there I am using arcobject sdk 10.1. I have a map layer open in ARCMAP and i wish that on click event i can read the fields assoicated with the attribute table of the layer in the map something like...
View ArticlePopulating ListView From shapefile
Hi, I have a listview in my form I need to populate with the selected feature record, my code fill all the field in one columns, I need to show only 5 columns in my listview. here is my code so far....
View Articletime enabled layer throug ARCobject DOTNET SDK
I am using ARCObject SDK 10.1 to develop a Add-in to display time enabled layer. I. following is the code that i used to dispaly time enable data layer on every second. While my following code is work...
View ArticleAtt Items From Attribute Table To Combobox
Hello Experts, I am working on a Project that includes homes with customers and some specialities of buildings in attribute table. First Of All I want to make a queries with using customers' names to...
View ArticleHow to replace obsolete class?
For insert records in Featureclass I use: Using comReleaser As ESRI.ArcGIS.ADF.ComReleaser = New ESRI.ArcGIS.ADF.ComReleaser() comReleaser.ManageLifetime(featureBuffer)...
View Article