Questions tagged [arcobjects]

ArcObjects is a set of COM-based APIs from ESRI Inc. that are used in several of their products including ArcGIS Desktop, ArcGIS Engine and ArcGIS Server.

Filter by
Sorted by
Tagged with
2
votes
1answer
90 views

What is wrong with area?

Which unit in result of calculating the polygon's geometry programmatically using .Area property of IArea object? For example, there are 2 polygons. Let's calculate geometry manually (in some ...
0
votes
2answers
94 views

Issue on ArcGIS SOAP NAServer Namespace

I am trying to create a simple ArcGIS Server SOAP consumer by C# like below snippet but I am getting error on NAService_NAServeras illustrated in attached image. Can you please let me know which ...
1
vote
0answers
40 views

Selecting multi features on map based on Datagrid row/rows selection?

I was trying to select feature depending on the selection change of the datagrid. Each row of the datagrid consists of the feature OID and feature Name etc. While selecting I am seeing that more ...
0
votes
1answer
91 views

How to get the column header of attribute table

I have a simple vb.net code which gets all the layer names present in the ArcMap and displays it in a vb form combobox. My question is if I select a layer name that is present in my combobox it should ...
2
votes
1answer
40 views

ArcObjects error storing long integer value to Oracle

I am trying to save a long integer value to an Oracle field. I have created a field of long integer type using ArcCatalog in a standalone table. The below code breaks at row.set_Value(idx, val) . ...
0
votes
1answer
118 views

With in Version Difference (DifferenceTypeUpdateNoChange) how to pass IQueryFilter in ArcObjects

I want to know only real shape edits between 2 versions. How can I pass iQueryfilter to DifferenceTypeUpdateNoChange? public void DifferenceTypeUpdateNoChange(ITable sourceTable, ITable ...
0
votes
2answers
43 views

way to view this map

public void AddScalebar(IPageLayout pageLayout, IMap map) { if (pageLayout == null || map == null) { return; } IEnvelope envelope = new EnvelopeClass()...
1
vote
1answer
69 views

Reducing area of polygons using ArcObjects with C#?

I want to reduce the size of my selected polygons. In other words, I want to implement the "scale" program which is in the editor section of ArcGIS. For that purpose I have searched a lot and just ...
4
votes
1answer
399 views

ArcGIS and .Net compatibility (Extending ArcObjects)

Backstory Historically, when compiling a custom dll that extends ArcObjects you would compile on a PC with the lowest compatible version of ArcMap installed, for example 10.1. Then that custom ...
1
vote
0answers
107 views

Build network dataset using comtypes and arcpy [closed]

I am aware of the existence of this Build Network Dataset with python comtypes question. In fact, I used the same code. The error I am getting is different hence my posting of this new question. I am ...
1
vote
1answer
87 views

How to create a line by passing two points and save in feature class in arcobjects using vb.net

I want to create a line from two points in acrobjects. but i don't know how to save that line to a feature class public static ILine CreateSegment(IPoint pFrom, IPoint pTo) { ILine line = new ...
1
vote
0answers
41 views

Recognize Tiled Internet Layers

Is there a way to recognize a Tiled Internet Layer using arcobjects in .NET? I've tryed several ways but I always end up in a dead road... ILayerFile lyrf = new LayerFile(); lyrf.Open(@"G:\mypath.lyr"...
1
vote
0answers
25 views

Get M at a point [closed]

I am trying to transfer the Measure values from an old feature to a newer one. Frequently the measures on the new feature have just been reversed. I am using IMSegmentation3.GetPointsAtM to get the ...
1
vote
0answers
43 views

Closing AddIn in ArcGIS with Visual Studio 2013? [closed]

I was working in ArcGIS 10.2 with VBA but now I work with Visual Studio 2013 to create addins. I need to close all processes, I did this with the end statement in VBA but I don't find a command to ...
1
vote
1answer
93 views

How to programmatically set Selection-> Selection Options [Scale selection symbols when a reference scale is set] checkbox checked or unchecked

I have seen the unanswered Scale Selection Symbols with Reference Scale using ArcGIS Engine? at the time of posting this question, and my question is different as i need to set this "Scale selection ...
0
votes
1answer
131 views

Setting scale of Data Frame in layout using ArcObjects?

I'm building an application to automate the production of MXDs for printing. I can add the layers from the database just fine, and configure the page layout. Now I want to set a particular scale to ...
3
votes
1answer
515 views

ArcObjects c# .Net Merge with Geoprocessing?

I'm trying to run the Merge tool using ArcObjects c# .Net. I'm fairly new to the skill but I have been able to run other tools such as Buffer and Points to Line. However, I have met my match with ...
0
votes
0answers
153 views

How to call an SOE from ArcObjects?

I have a map service with an SOE. The SOE works fine and I can call it through http no problem. I would like to call it from an ArcObjects tool but My code errors when trying to cast the MapServer ...
0
votes
1answer
56 views

ArcObjects Java - Add-ins crashing ArcMap when starting editor

I'm having a strange problem in my company. I've created several add-ins for ArcMap using ArcObjects for Java, and all of them do what they are supposed to. The problem I'm facing occurs after going ...
0
votes
1answer
151 views

ArcObjects - Listen to Editor events in Extension Add-In using Java

I'm struggling at finding a way to listen to Editor events in my extension add-in. What am I trying to do is: after user creates a new point feature, extension should populate an attribute of it with ...
0
votes
0answers
79 views

Create sequence numbers based on location of line features using Arcobjects

I want to add a Sequence number property for line features (Pipe), which will hold a value that will determine where the line is in respect to other lines that are attached to the from point and to ...
1
vote
1answer
358 views

Getting catalog path from IFeatureClass using ArcObjects?

VB.NET against ArcGIS 10.1 I have a function which searches a geodb for a feature class name. If found I would like to display where it was found. Currently I only return the FeatureClass object like ...
1
vote
0answers
182 views

How can I access custom parameters for WMS layers via ArcObjects, and create a new layer file with the updated parameters?

I have a set of data in PostGIS related to a large number (7,000) of species, and have a single PostgreSQL view, and corresponding GeoServer layer, that contains data for all species. Based on input ...
1
vote
2answers
294 views

How to get the angle of a line?

I am new to ArcObjects, I need to identify the angle of the line in a particular Layer "MV Feeder" I am trying the below code, which gives error "object reference is not set to and instance of the ...
2
votes
1answer
140 views

Creating copy of featureclass using ArcObjects does not set measures?

I am making an exact (empty) copy of an existing featureclass using the following code: public static string createFCCopy(IFeatureClass pFromFC, IFeatureWorkspace pToFWS, string sNewFCName) { ...
5
votes
1answer
148 views

ArcObjects Convert GxDialog to Workspace

ArcGIS 10.1 with VB2010 I am using the GxDialog to get the users option to save a feature class. The target can be a shapefile, geodatabase, or Dataset inside a geodatabase. I can’t wrap my head ...
2
votes
0answers
62 views

Validating attributes of tables added in ArcMap?

I have validated the Telco Features based on the feature class name and their Type_Name. But I am not able to do same for tables like connection table etc. and others which mostly have different ...
0
votes
0answers
63 views

arcobject.net Addin Toolbar only works once

I created a toolbar using ArcObjects 10.0 which does some heavy processing in the onClick event of the only button it includes. It works fine however it works only once. If I click again on the button ...
2
votes
1answer
141 views

How to remove broken linked layers from ArcMap in ArcObjects?

In Python there is a function to list all broken data sources in a MapDocument: brknList = arcpy.mapping.ListBrokenDataSources(mxd) You could then use this function to remove such broken links: ...
1
vote
0answers
284 views

Highlighting Selection Of Features in Map using ArcObjects?

I have some features which at the time of validation found to having incorrect attributes' values. How do I highlight those features in the map? Here is what I tried: public void ...
1
vote
0answers
28 views

Getting a reference of an already running session of ArcMap with ArcObjects/C# [duplicate]

I'm new to both C# and ArcObjects and I want to get the layers on a currently opened document, which I've done via: IApplication app = ???; IMxDocument doc = (IMxDocument) app.Document; IEnumLayer ...
2
votes
1answer
73 views

Hiding particular field in parameter combo box using ArcObjects and C#?

I am currently fetching the all fields/attributes of feature class and display in Combo box parameter using below code: paramEdit = new GPParameterClass(); paramEdit.DataType = new DEFeatureClassType(...
1
vote
0answers
237 views

Is Python or C# with ArcObjects more efficient in memory management in ArcGIS Desktop? [closed]

I have two scripts one in Python and other in C# using ArcObjects, both of them perform same operations and that is making some edition by using Select by Location. The amount of data which is being ...
2
votes
0answers
92 views

How to use IGxDialog to save output feature class

I found this code to take input through IGxDialog box from a guidebook: IGxDialog gxd = new GxDialogClass(); gxd.AllowMultiSelect = false; gxd.ButtonCaption = "Add FileGDB"; gxd.Title = "Add All ...
0
votes
2answers
217 views

Opening feature class created in_memory using ArcObjects?

How do you open an IN_MEMORY featureclass? The code below is not working: IGPUtilities2 gpUtils = new GPUtilitiesClass(); IFeatureClass featureClass = gpUtils....
0
votes
1answer
683 views

Using IFeature Selection with ArcObjects and C#?

I have a list of IFeature (List lst) and I want to select and highlight and show in the map. All I am getting is like the IFeatureSelection , ISelectionSet and they work with Feature Layer not the ...
0
votes
1answer
247 views

Deleting Multiple Field from a Feature class in ArcObjects

I am trying to delete all fields from a feature class except 4 Fields "FID", "Shape", "OBJECTID" and "SUBTYPECD" With below code: IGPUtilities2 gpUtils = new GPUtilitiesClass(); ...
1
vote
1answer
594 views

Which programming language is used to develop ArcGIS Desktop application?

I just wanted to understand which programming language is used to develop the ArcGIS Desktop application, through my initial research I got to know that ArcGIS Desktop was created by using C++. I ...
0
votes
0answers
51 views

Merge Management Not Working with more than two input

I have code to merge two featureclasses with Merge_Management geoprocessing tool using ArcObject. Below is the code : for (int i = 0; i < map.LayerCount; i++) { if (...
0
votes
1answer
141 views

Getting features from given geometry in map using ArcObjects with C#?

I am trying to get features from a given geometry (getting only layers ). This is not selection. The validate part I will be doing using configuration. But I am not able to get the features from the ...
1
vote
0answers
179 views

How to find intersecting features from inside a drawn polygon

I have drawn a polygon and I want to get all the intersecting features. But here I got stuck and not able to proceed.When I run the code it allows me to draw the polygon in the map. But I am not very ...
1
vote
1answer
49 views

Creating unique identifier for cadastral parcels in ArcGIS 10.5?

Creating unique identifier for cadastral parcels in ArcGIS 10.5 (ArcView)? I'm adding selected parcels to a feature class and I would like to have a text prefix and then three or four digit number ...
1
vote
1answer
284 views

Selecting an Area/ Boundary on MouseDown Event and find all the feature class within that boundary scope Using C#

I was thinking to select an area or a boundary in ArcMap on MouseDown Event and select all the features inside it. How do I select the boundary with the code in C#? Here is what I did: public ...
1
vote
1answer
439 views

Create buffer around selected points and add to a new shapefile

I am trying to figure out how to create a buffer around selected points and add them to an new shapefile. My idea is to have a loop that loops through the selected points and perform a buffer and ...
2
votes
1answer
173 views

Creating polygon with esrieditor.editor in C#?

How can I make a polygon using esrieditor.editor in ArcObjects? I tried this method: workspaceEdit.StartEditOperation(); IFeature feature = featureClass.CreateFeature(); Polygon p2 = featureClass....
2
votes
1answer
82 views

Using Merge_management Geoprocessing tool in ArcObjects?

I am trying to use Merge_Management Geoprocessing tool in arcobject, I want these tool to use layers named "HT Overhead Line" and "HT Underground Line" and create the output out.shp. Below is the ...
1
vote
1answer
154 views

How to select and add a featureclass through GXDialogue

I am new to arcobject i have learned how to add a feature class by specifying its name in code through gxdialogue. i want to change it so i could directly select the the featureclass instead ...
2
votes
1answer
520 views

How to find point on polyline using a starting point and a distance along the curve using ArcObjects

I want to query a point on a polyline, using a starting point on the polyline, and a distance from the starting point, using Arcobjects. My inputs Point A, Polyline A, Distance from pointA. Output ...
1
vote
0answers
123 views

How to get the closest line to a selected polyline

polylines A, B, and C meet at point P1. Whats a quick way that I could find out which line is closest to polyline A using arcobjects ? At first I used IProximityOperator by casting PolylineA and then ...
1
vote
1answer
596 views

In C# ArcObjects, how to get layer field names from ArcGIS Server layer?

I'm creating an add-in to ArcMap using C#. I need to get all the fields of every layer. Code below works to get the fields when the layer is added via a shapefile. However, I can't get the fields ...