Tagged Questions
2
votes
3answers
59 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 ...
0
votes
2answers
45 views
Zoom and Pan using scroll wheel in Arcobjects
is there any way to zoom using scroll wheel ? i have tried AutoMouseWheel of map control, it works well for the first used custom tool, but once i change the tool, it stops working , i would like to ...
1
vote
1answer
78 views
Problem in splitting and removing Polyline
I am stuck at a problem for weeks, Please Help!!!
I am making program in C#
Here is what I need to do --- I have two polylines that are intersecting with each other at some points. I want to delete ...
8
votes
2answers
116 views
Arcobjects, mystery green lines in the Layout View produced during script execution
Could any of Arcobjects guru tell me, what are these green lines on my Page Layout and what to do, or not to do, so they do not appear? See image attached.
I do used Arcobjects from Python. My script ...
3
votes
1answer
72 views
it is possible to undo and redo outside an edit session in Arcobjects?
I would like to know if it is possible to undo and redo changes outside of edit session, i'm working on an ArcSDE versioned 10.1 database?
if yes how i could do it in Arcobjects .NET .
Any help ...
4
votes
5answers
109 views
Intersection of two lines tool
Is there any way to make intersection of two lines tool with extending lines option, so the result would be a point. the hardest part is when the lines have to be extended to intersect.
the tool will ...
2
votes
2answers
50 views
Creating Workspace
Can I create a Workspace without using IWorkspaceFactory.Create
I am trying to create a Workspace without specifying it's parent directory, is that possible ?
Thanks in advance.
1
vote
1answer
37 views
Mosaic RasterDataset
I use ArcGIS .NET SDK in C#.
I'm able to load some DTED files in my ArcMap and show them in proper colors. What I want is to concat/merge/mosaic some DTED files. How can I do this?
I want to mosaic ...
4
votes
1answer
61 views
How can I query lines that meet in endpoints, and show the result in clockwise order
I have some polylines - roads. They meet in an intersection like on the picture:
I want to find out which roads meets Road A - endpoint to endpoint - and i want to know the clockwise order of the ...
2
votes
1answer
89 views
Write string to status bar that doesn't go away
I'm attempting to write the number of items matching a given query to the statusbar. when i debug through the code, i am able to step through and see the message hit the statusbar, but then it ...
1
vote
0answers
34 views
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 ...
6
votes
1answer
126 views
Why are annotation features containing both GraphicElement and TextElement objects not drawing in an ArcGIS Server map service?
I am building annotation features with Python/comtypes/ArcObjects. The annotation works great in ArcMap (10.1), but it is does not draw when published to a map service in ArcGIS Server. Each piece ...
3
votes
1answer
54 views
How to add image base tool control to a drop-down list in ArcGIS 9.3.1
I have to retrograde an ESRI add-in application from ArcGIS 10.1 to ArcGIS 9.3.1.
My challenge is how in the drop down list can I add base tool control( will be shown as icons inside the drop down ...
2
votes
0answers
47 views
ArcObjects running in Addin slower?
I have created a class library which does some geoprocessing. The addin calls a class that is an async process. I have ensured the thread is STA and the arcobjects are thread safe (ie. not passed from ...
1
vote
0answers
53 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 ...
2
votes
2answers
102 views
best practices for exception handling in ArcGIS .NET custom geoprocessing tools
I'm working on a set of C# GP tools for use both in Desktop and Server 10.1.
The only soup-to-nuts treatment of writing geoprocessing tools in .NET appears to be Building a custom geoprocessing ...
0
votes
0answers
144 views
How to convert Graphic Layer to Feature Layer in ArcGIS 10.1
In general Graphics can be converted into Features manually from Drawing Toolbar option convert Graphics to Feature.
My requirement here is i want to convert through code using Arc Objects and C#. ...
2
votes
1answer
86 views
Can't cast from IFeatureClass to IFeatureClassLoad [duplicate]
I'm attempting to load a large number of features (up to 310k) into a feature class. It is functional at the moment, but speed is a major issue. It takes about .42 seconds per 1000 features. I've ...
3
votes
1answer
65 views
ArcObjects: Perform action upon refresh command in the TOC
We are using custom layers in our plugin used in ArcScene/ArcMap. For quite some time we were trying to figure out how to hook into the event occuring when the user selects "Refresh" in the right ...
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 ...
2
votes
1answer
76 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
259 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 ...
2
votes
2answers
129 views
arcobjects update geometry Z values of line vertices with a given number
I am trying to develop arcgis 10.0 addin to update Z values of vertices of a selected line.
Scenario: The tool scans all features in a given shape file and populates the list of features which has at ...
1
vote
0answers
31 views
What affects the kind of date (local vs. UTC vs unspecified) on JTXJobClass.StartedDate?
I am accessing the JTXJobClass.StartedDate for a JTX Job (with IJTXJob3). I am getting an unspecified DateTime.Kind value. The value appears to be UTC (iirc, WMX always stores UTC in the database ...
5
votes
2answers
142 views
Calculating a projected distance
I am pretty new to this and I am not sure I understand all the concepts, so I might be using words wrongly or obviously not getting some details right. Here goes.
We mean to do those calculations ...
7
votes
4answers
98 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 ...
0
votes
1answer
27 views
List items are replaced with new reference when adding
Based on the query i am getting some features in pFeatureCursor. I am adding that features into a List(IFeature). When iam iterating the pFeatureCursor and adding the values into pFeatureList all ...
0
votes
1answer
75 views
Setting a path to a Variable to be able to open a new mxd? [duplicate]
Possible Duplicate:
How to define Subroutines and functions?
I know its strange but I need to be able to open a new mxd into an existing one. Yes, it can be done. All I need to do is set a ...
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 ...
8
votes
1answer
99 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?
...
-1
votes
2answers
127 views
Code for Connecting to Folder/File to open a mxd document!
I have a dialog box written in ArcOBjects. I am programming the Map button on the dialog box. The user picks a type of station and county. The program goes to folder containing the mxds and opens the ...
4
votes
1answer
63 views
How to detect densely labelled areas?
I'm trying to detect densely labelled areas for a given scale like explained below. so dense labelled area is the area having high rate of overlapping labels.
I'd like to detect densely labelled ...
1
vote
1answer
171 views
Getting error in applyEdits function for ArcGIS
I have been trying to add an entry to a featureLayer and in want to get a callback from this so I can update another field in it. below is my code
clkListenerAddFeature = dojo.connect(map, "onClick", ...
3
votes
0answers
46 views
Is IGraphicTracker leaking memory?
It seems that when geometries are removed from an IGraphicTracker instance, the geometries remain in memory until IAoInitialize.Shutdown() is called. I have tried removing the geometries by calling ...
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
118 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 ...
2
votes
2answers
63 views
How do I reach a layer inside a GroupLayer?
I am having problems in ArcObjects. I am struggling to get to the individual (feature-)layers inside a GroupLayer. Does anyone know how to do that ?
2
votes
1answer
47 views
Should I use thread lock when implementing Enabled void in ArcGis Command?
I've noticed that that ArcGis Commands are activated asynchronously. So I supposed that there is a chance to corrupt memory without using thread locks when overriding Enabled void of custom ArcGis ...
1
vote
1answer
66 views
Having trouble setting up Eclipse for ArcGIS 10.0 Java development
I'm trying to setup Eclipse for ArcGIS development. I've been reading for days and weeks through the documentation and through the forums here and elsewhere. It seems that no one has this same ...
3
votes
2answers
190 views
How to add point to a polyline?
I have a polyline, and i want to add point (vertex) on a specific distance, like two meters for example.
How can i do that?
1
vote
1answer
151 views
Managing Data Driven Pages with ArcObjects
I can't find any resources on managing Data Driven Pages with ArcObjects. E.g.: is it possible to use ArcObjects (.NET) for the following tasks:
1) Check if the current map document has enabled Data ...
3
votes
2answers
119 views
How should I get a Raster out of ArcMap and into Google Earth (.kmz) with transparency
RasterLayerExportClass will only create a .png with a single value transparency, however there is a bug in Google earth which prevents this from working.
The other export options don't support ...
2
votes
1answer
50 views
How to output the ActiveView to a Jpeg image
I have an ArcGIS Desktop extension and I need to extract images from the map.
How can I programmatically output the active view to a jpeg image?
2
votes
1answer
87 views
Get Annotations selection Arcobjects
i have annotations stored in mxd document, when i select some annotation , i tried to get the selection through graphics selection, so i got always the rectangle of the dataframe (because i'm working ...
2
votes
1answer
103 views
Error in Symbol Selector Sample
This question can seems to be n00b, but really im stuck at running this Arcengine Sample code, then i got this error
i'm looking for any working example of Symbol Selector.
i'm working on XP SP3, ...
0
votes
2answers
257 views
Unselect Individual Selected Features using ArcObjects
I've been stumbling around with this issue for a bit now and I can't seem to find any relevant answer for it anywhere else.
In my Add-In built using .NET ArcObjects/C# with Arc 10.0 I would like to ...
0
votes
0answers
48 views
How to do Spatial Query by Objects On Graphic Layer?
I have created a graphic layer and put some Points on it, now I want to click on points and Intersect them with lower layers.
Any help is appreciated.
1
vote
1answer
189 views
Convert a FeatureLayer to graphics in Arcobjects
I want to convert a Map or FeatureLayer to graphics on Arcobjects 10.1, Any help or code examples
Problem Solved
this is the working code:
private void Convert_to_graphics( IMapDocument doc)
...