Tagged Questions
3
votes
1answer
26 views
How can I hide a tool from command window under category
I have created a tool, a button and a dockable window under one project. To open/close the dockable window, button is used. For some specific work, by clicking some specific button from dockable ...
3
votes
0answers
33 views
drawing line from points
I have a series of XY coordinates. I want to use these points to draw a line in ARCMAP using arcobject10.1 using c#. I have saved this in a table inside geodatabase.Am i supposed to create a feature ...
2
votes
3answers
60 views
Get IWorkSpace from IGxObject
I am creating a tool that opens an IGxDialog which it's objects are filtered to show only workspaces, my question is how can I convert IGxObject to IWorkSpace or get the selected workspace without ...
3
votes
1answer
53 views
Customizing Identify Dialog in ArcMap
Any idea for customizing Identify Dialog in ArcMap.I want to use my control (for example a list view or a custom control) to show attributes of features in same native ArcMap Identify Dialog,mean ...
2
votes
1answer
41 views
ArcObjects 10/10.1 Get rid of Invalid layer symbol in TOC
I've written an add-in (VS2010, C#) that finds specific invalid feature layers in ArcMap and fixes them. After the layer is fixed, the red invalid symbol still appears in the TOC. An ...
1
vote
0answers
45 views
How to get hold of the Activated Event for the ArcMap window?
I am using ArcObjects 9.3 .NET. In my ArcMap dockable window, I have a single element host hosting a WPF user control (That's the only means of using WPF for ArcMap extensions as far as I know).
...
2
votes
1answer
47 views
How to convert existing lines to polygons with Arcobjects, preferably in C#?
Does anyone know how to convert existing line geometry to polygons with arcobjects as it works with the geoprocessing tool "feature to polygon"?
2
votes
2answers
73 views
How to use shortcuts in dockable windows?
I have developed a custom dockable window with textboxes, comboboxes and buttons for use in ArcMap. After the user clicks on a button in the dockable window a function is invoked.
How can I invoke the ...
1
vote
1answer
51 views
What is the preferable value for setting tolerance for selecting a feature
I know it's really a basic question. But I am really confused about this. For selecting a point feature by mouse click, we need to set a tolerance value to create the envelope. And here is the problem ...
3
votes
1answer
55 views
Set unique values to different groups programmatically
I have a polyline feature layer. After doing some computation, I update a field of that layer and want to set unique color for different value of that field. We can do this from symbology using unique ...
1
vote
1answer
73 views
How to create dynamic sub-menu in ArcMap?
I created a static menu contains 3 static items like in this link create menus,
I want to add a sub-menu and get the menu's items from database like in this image:
I already did the left part with ...
4
votes
1answer
106 views
How to set focus on ArcMap map window using arcobjects and c#.net
I have developed a custom dockable window with textboxes, comboboxes and a button for use in ArcMap. After the user clicks on the button in the dockable window a function is invoked. After the ...
0
votes
0answers
31 views
How to get the nearest line to a feature?
I have features on map, and i want to get the nearest poly-line to each one.
How to write spatial query to get the nearest one.
I tried to use ISpatialFilter but i couldn't reach anything.
1
vote
0answers
56 views
Is ArcFM or ArcMap leaking memory when switching between page templates?
Can anyone else reproduce the memory leak described below? Any insight into what may be causing the leak is appreciated.
I have custom code that swaps between landscape and portrait templates and ...
1
vote
2answers
93 views
How to drag a layer from ArcMap Add-in into its MXD?
I have a simple ArcMap Add-in that displays all featureclass names in a database inside of a ListBox. If I select a name or multiple names in the listbox, how can I drag and drop it in ArcMap? Just ...
5
votes
0answers
72 views
Is it possible to add to the map a layer containing results from a sql query
I'm developping an ArcMap Extension and I need to join an existing feature class with data from a sql query located on another DBMS.
I already set up a Workspace with an OleDbWorkspaceFactory. I'm ...
3
votes
0answers
189 views
VBA Convert decimal degree to Meters button
I have 2 data frames one which has WGS data in it and the other OSGB1936. I am trying to create a button where the user can input decimal degrees (WGS) and it will zoom them to that location in ...
3
votes
2answers
213 views
Split a Polyline into small segments
I am writing an addin, which needs to split a polyline into a number of segments taking the number of segments as an input from user.
How can I accomplish this?
2
votes
1answer
78 views
how to add the label for located charts in ArcGIS
I am creating a Location Pie chart for my study area using Male and Female population in ArcGIS software, the software creates for legend of charts but I want to create a label on chart itself, how to ...
0
votes
2answers
261 views
Is there any API in C# for Zooming selected feature?
I am new to ArcGIS and want to implement the Zoom to Selected Features functionality available in Selection menu option (Selection-> Zoom to Selected Features), using C# API.
Is any API available in ...
1
vote
0answers
35 views
Problem with deployment of GeoProcessors
I am developing an AddIn which requires lots of Geoprocessing but whenever I deploy any Geoprocessor, the ArcMap crashes and its always with the Geoprocessors only. All other commands are working fine ...
1
vote
0answers
45 views
Interpolate shape (3d analyst) problem
I am making a code on C# to interpolate z values of a line on a DEM. Below is the code that I've written. I have also tried step by step debugging, the program works fine till the Geoprocessor ...
2
votes
0answers
192 views
How can I copy selected polygon features to a polyline feature class with ArcObjects?
I would like to copy selected polygon features to a polyline feature class. (Similar to how polygon features can be copied and pasted inside an edit session in ArcMap)
Until recently I've been using ...
1
vote
0answers
30 views
How do I prevent Arcmap from verifying SQL expressions when using a plugin dataset?
I've written a plugin workspace for ArcGIS.
I'm able to compose a where clause containing syntax that my implementation of IPluginDatasetHelper understands, assign it to IQueryFilter.Whereclause, and ...
2
votes
0answers
35 views
ArcObjects custom GP tool: Multiple extensions using IGPFileDomain
I am using IGPFileDomain to make the user select between different file extensions, for example .type1, .type2, .type3. These are added using domain.AddType("type1") etc.
The dialog box then lists ...
5
votes
0answers
123 views
Slow performance when selecting features
I am trying to use the following code to select the features that have the attribute values that I pass in. The performance is really slow when it comes to a lot of values e.g >16k values to match ...
1
vote
1answer
41 views
how to set workspace of Geoprocessor in .net?
I am migrating some code from VBA to C# for developing an addin. In VBA, the geoprocessor's workspace could easily be accessed by workspace property of Geoprocessor. But how to set the geoprocessor's ...
2
votes
1answer
91 views
Getting Error while exporting
I am making an addin to create subsets and export them to a new workspace. I have stepped through my program and getting error at this particular line while running the addin:
...
7
votes
4answers
99 views
How do you programmatically read the coordinate display format in ArcMap?
I'm looking for a property (or properties) that will give me the display units and the formatting.
I assume I need IMap.DistanceUnits but I can't find the formatting. Is this exposed?
I am also ...
6
votes
3answers
173 views
How can you find ArcGIS version programatically?
Is there a way using ArcObjects.net to find out what version of ArcGIS is installed on a machine (i.e. 9.3., 10.0, 10.1)?
4
votes
3answers
175 views
Is it possible to target an ArcMap add-in to an earlier version?
My development environment is Visual studio 2010 with ArcGIS Desktop 10.1 installed.
I need my add-in to support 10.0 AND 10.1. Right now, if I try to install it on ArcMap 10.0, it fails.
Is it ...
2
votes
4answers
440 views
How to zoom to selected Feature in ArcMap using ArcObjects?
By using the QueryFilter I am getting some features based on the query and I am placing that feature names in a listbox.
When the user selects a particular name in the listbox that feature has to be ...
1
vote
2answers
200 views
Data View/Layout View Changes - ArcMap 10
I have code that will hide a certain set of points from the view using an ExclusionSet, and then switch to layout view for printing.
I noticed in my 9.1 version, when after I am done printing, and I ...
8
votes
1answer
101 views
What's the ArcObjects equivalent to ArcMap's Flip button
In an ArcMap extension, I need to flip multiple lines from a selection.
The ArcMap Flip button only allow to flip one feature at a time.
What's the ArcObjects equibalent to the ArcMap's flip button?
...
3
votes
1answer
68 views
How do you access the Draw toolbar symbol(s) from ArcObjects?
I'm dropping a text element onto a map and I'd like to use whatever settings the Draw toolbar has (font, size, color, etc).
Is there a convenient way to access symbol interfaces? Or do you have to ...
3
votes
1answer
206 views
How to find polygon neighbors by rook and queen contiguity in a feature class?
I have a feature class containing several polygons. I would like to find all polygons that have a common border to a polygon of my choice. This can be done with the ISpatialFilter and ...
5
votes
2answers
140 views
Is it possible to modify the ArcObjects IProgressDialog2?
It turns out that the best way to run long tasks in ArcMap is to use the IProgressDialog2. The BackgroundWorker in combination with ArcObjects (STA Threads) is a mess.
However, it seems that the only ...
1
vote
1answer
105 views
Is it possible to create a join between a feature class and a table created with an InMemoryWorkspaceFactory
I'm trying to join a featureclass contained inside a pgdb with a table created with an InMemory Workspace.
The in-memory table contains results that I want to use to define symbology on the ...
2
votes
1answer
51 views
How to add a ITable (Table object) to the current map (or document)?
I created an in-memory results ITable and I need to add it to the current ArcMap document/map to see the generated data. How can I do it?
4
votes
1answer
119 views
How to render features with different symbols depending on in memory data?
We are developing a complex ArcMap extension software which contains class extensions, a workspace extension and some ArcMap extensions.
The purpose of the software is to link our existing management ...
1
vote
1answer
86 views
How to set a color for a rectangle?
I had drawn a rectangle by adding element to graphics container like the code below:
IGraphicsContainer gc = mxDoc.FocusMap as IGraphicsContainer;
gc.Reset();
IRectangleElement rectangleElement = new ...
0
votes
0answers
26 views
How to capture the “OnFeatureChange” or “OnFeatureChange” for a parcel in a cadastral fabric?
The normal "OnChangeFeature" and " OnCreateFeature" don't fire when editing in a cadastral fabric and I'm looking for similar events where I can hook into editing events that are occuring for ...
3
votes
1answer
146 views
How to get X and Y coordinate values of the map?
I want the upper right and lower left coordinate of the exposed portion of the map, and for the whole map.
What is the way to do this?
1
vote
1answer
160 views
How to change the view from layout view to data view using c# code in ArcMap?
How to change the view from layout view to data view using c# code?
1
vote
1answer
45 views
How to get 'IGraphicsContainer' from the map?
I tried to get IGraphicsContainer from Data View (active map) using FocusMap, ActiveView
IGraphicsContainer graphicsContainer = (IGraphicsContainer)neApp.Document.MxDocument.FocusMap;
but the ...
-1
votes
1answer
91 views
How to get the nonspatial tables in the TOC into a combobox in ArcMap?
I'm new in using Arcobject . i'd like to set dbf of ArcMap TOC to the Combobox Items.
How can i set dbf files to items of combobox using C# programming and Arcobject ?
2
votes
1answer
168 views
How to draw a rectangle a the map using C#?
I have two points, Ipoint upperRight; and Ipoint lowerLeft; points.
from the previous points i can get the height and the width for the rectangle.
How can i draw a rectangle on the map?.
I think i ...
1
vote
1answer
55 views
Store global reference to a service/object
In developing with ArcMap, is there any way to register a service that can be used during the life-cycle of a document- for example to do something like:
C# .NET
...
2
votes
1answer
154 views
How to display custom context menu during create feature task?
I have a created a custom context menu using ICommandBar and am displaying it on create feature mouse-down right click. I am constructing a point collection on each mouse down and then creating a ...
1
vote
1answer
279 views
Is there any way to set polygon features fill color and outline programmatically?
By some process I am creating a polygon feature layer. Before adding the layer in the map, I want to set polygon's fill color to no color and set polygon's outline color and width. I am working with ...