Tagged Questions
3
votes
0answers
29 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
1answer
38 views
Creating maps programmatically using ArcObjects. Adding legends, scale bars, north arrows?
I'm looking for some examples related to the publishing of maps programmatically to image format using ArcObjects. More specifically I would like to add standard map elements such as a scale bar, ...
0
votes
0answers
44 views
Snapping with mutiple custom tool using diffrent snapping types
I have a custom tool with snapping type is (snapping to point + snapping to edge), and the second tool having snapping type is snapping to point only, so when i select the first tool it works well, ...
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 ...
2
votes
3answers
78 views
ARCObject query
I'm using ArcGIS 10.1 and developing an application using visual studio 2010 and ARCObject SDK 10.1.
I would like to use identity tool in my application and if not possible I want to execute a query ...
1
vote
1answer
34 views
How to extend a custom NASolver in ArcGIS Server 10.1?
The past year we developed a custom NASolver with C# , it works fine and that job has finished.
Now we are planning to use it from ArcGIS Server. The problem is that we have no information for that. ...
1
vote
1answer
50 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
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 ...
3
votes
2answers
142 views
Populating fields in a Matrix format
I am trying to develop an accuracy assessment tool using ArcObjects. As an output I would like to show a matrix with the fields such as road ,land,water etc. I just want to know how can I fetch ...
3
votes
0answers
98 views
Can custom map tiles be properly rendered via ArcObjects within my ArcGIS 10.1 Desktop AddIn?
Within ArcObjects for ArcGIS 10.1, we are attempting to render pre-generated map tiles as a
basemap (group) layer. The tiles themselves are of the typical web mercator aux. spherical tiling scheme. ...
1
vote
1answer
54 views
How to set min and max value for stretchType: esriRasterStretch_PercentMinimumMaximum
How can I set the min and max values for the stretch type "Percent Clip" in arcobjects?
It's possible to set the Stretch type:
rasterStretch.StretchType = ...
4
votes
5answers
107 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 ...
3
votes
1answer
39 views
Access attributes of a deleted IFeature in ArcObjects 10.1
I am migrating code for an ArcGIS extension from 9.3 to 10.1.
The code is throwing an exception in one place.
My duty is just to migrate it to 10.1, so I really don't like to do any modification more ...
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
1answer
183 views
ArcGIS 10.1 - c# custom geoprocessing function tool - how to populate a polyline output parameter?
I'm at 10.1SP1 with VS2010.
In my tool's ParameterInfo property I create an output GPParameter object of IGPParameterEdit.DataType GPLineTypeClass.
Then in the Execute() method I do work that ...
0
votes
0answers
143 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#. ...
1
vote
0answers
28 views
When should I use recycling = true with IFeatureClass.Update? [duplicate]
I am migrating .NET code from 9.3 to 10.1
The code is using
IFeatureClass.Update(queryfileter, true) where true is for recycling.
I know recycling should not be used when we do update, and actually ...
2
votes
1answer
37 views
How can I suspend default shortcut menu and substitute with a custom menu in the TOC?
I looking for solution (using ArcObject SDK 10.1 (VB.NET) ArcMap Addin template) to substitute the default shortcut "right-click" menu in the TOC (When a TOC Item is right-clicked) with a custom menu ...
3
votes
1answer
159 views
Intersect, Union are failing on 10.1
After a huge help from Blah238.
I found exactly what is the problem.
I wasted few days checking our data, and trying many things.
The problem that I cannot do intersection between two polylines to ...
0
votes
2answers
257 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
0answers
187 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 ...
4
votes
2answers
161 views
Is IPolygon2.QueryExteriorRingsEx Method not working in ArcGIS version 10.1 SP1?
I am updating my addins from 10.0 to 10.1 and my code is crashing on the IPolygon2.QueryExteriorRingsEx Method.
I understand there is something strange going on with this method because Developer ...
0
votes
1answer
42 views
How to use a property of a different interface for a created ArcObject
I have created an arc based three points (from point, through point, and to point). To create the arc I used this code:
import arcpy, comtypes.client
import comtypes.client.CreateObject as ...
1
vote
2answers
139 views
How can I permanently reorder fields in a feature class programmatically with ArcObjects, VB.Net?
Would someone be able to share the logistics on how to permanently programmatically reorder fields in a feature class with ArcObjects, VB.Net.
I want to be able to do this in the geodatabase not in ...
3
votes
1answer
112 views
When converting legacy addins to VS 2010 (ArcGIS 10.1), why are references to certain ArcObjects updated while others are not?
I am converting a number of my addins from VS 2008 Express, ArcGIS 10.0 to VS 2010, ArcGIS 10.1 and I need to update some but not all references. Why? For example, in the current addin I just ...
3
votes
2answers
86 views
How do I change the targeted .NET 4.0 Framework to version 3.5 in an existing VS 2010 EXPRESS project?
I am upgrading from ArcGIS desktop 10.0 to 10.1 and I have a bunch of addins developed in VS 2008 Express using ArcObjects 10.0. I would like to upgrade everything to 10.1 using VS 2010 Express. I ...
3
votes
0answers
230 views
Error opening feature class from SDE (which can be opened in another application)
We're using ArcGis 10.1 with ArcSDE 9.3.1 on Oracle 10g.
I've got 2 layers that cannot be opened or modified with ArcCatalog or ArcMap (but they show up in the list. Everything worked just fine ...
5
votes
1answer
152 views
Can you use ArcObjects in an MVC service at v10.1
I'm slighlty confused with the changes at 10.1 and understand this version no longer supports DCOM or remote arcobjects.
Can you use ArcObjects in a webservice (in my case a .NET MVC 4 service) that ...
1
vote
0answers
136 views
Algorithm to place the minimum of rectangles to cover a polygon
I'm trying to cover a polygon with the minimum set of rectangles like explained in the picture below, the used rectangles have the same size a*b (a != b) , the rectangle could be rotated by ...
4
votes
1answer
92 views
Map automation, create and populate inset maps for densely-labelled areas
I would like to know if it is possible to automate the example in the picture below, unlike the picture below i'm using vector data.
I would like for a fixed scale generate map, but when labels are ...
5
votes
4answers
218 views
Need help to convert 9.3 code for registering .dll to 10.1
This is my code to register my DLL (im using ArcMap 9.3)
Private Sub regDLL(ByVal dllName As String)
Dim asm As System.Reflection.Assembly = System.Reflection.Assembly.LoadFile(dllName)
...
3
votes
1answer
378 views
ArcObjects + comtypes at 10.1
Has anyone played around with using ArcObjects in Python at version 10.1?
I am having all sorts of problems, such as TypeErrors when wrapping the ESRI OLB modules and AttributeErrors when attempting ...
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, ...
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)
...
2
votes
1answer
172 views
Converting a Map to graphics and annotations
i want to export a map for later editing before print, so i thought about converting all the annotations and and graphics and save them in the .mxd map.
when i export graphics after exporting labels ...
5
votes
1answer
182 views
Converting Between Similar Classes in ArcObjects and WPF Runtime Libraries (C#)?
There seems to be an "impedance mismatch" (if I can borrow the term) between similar classes in ArcObjects and the WPF runtime libraries. For example, there is a ESRI.ArcGIS.Client.Geometry.Polyline ...
6
votes
1answer
905 views
Creating ArcGIS add-ins for both 10.0 and 10.1
Has anyone tried to deploy the ArcMap add-in for both ArcGIS 10.0 and ArcGIS 10.1? There is a target version parameter in the add-in config XML file that needs to be specified. After upgrading the ...
4
votes
3answers
454 views
ArcServer 10.1 - Publishing C# Executable as a Geoprocessing Service
I am trying to publish an arcobjects C# executable as a gpservice. We did this in 10.0 by adding it to a toolbox and hitting publish. Using ArcCatalog in 10.1 you must first run the script before you ...
6
votes
3answers
2k views
ArcObjects/ArcServer 10.1 - How to programatically publish a map service?
I am migrating some ArcObjects C# code to 10.1 and am having some trouble programatically publishing an MSD. We are using a multi-site configuration (not sure if that matters). Here is the code I am ...
4
votes
7answers
498 views
Where is the server.dat equivalent at 10.1?
Prior to 10.1, I could locate the server.dat file, and programmatically find out the arcgisoutput folder URL location (virtual directory when using IIS)
e.g.
<Directory>
...