Consume GP service on ArcMap 10.0; how 2 send ArcMap extent ?
dear Readers, I was looking for examples to do the following: 1. using arcmap 10.0 using geoprocessor function call a webservice in a GP server: [h=2]DataExtract (GPServer)[/h] Service Description:...
View ArticleAdd-In 10.0 not working in 10.1 or 10.2
I'm hoping someone may be able to help. ESRI explains that add-ins created for 10.0 are forward compatible and thus work in 10.1 and 10.2, without additional compilation. However, none of my users can...
View ArticleHow to create a Textbox on a toolbar in ArcGIS 10.2?
All, I am porting an old VB6 project to a 10.2.1 VB .Net ESRI AddIn and hit the "wall". On the old VB6 toolbar I had a TextBox which was an editbox on a form with a class implementing IToolControl and...
View ArticleOverlap area between two polygons
Hi everyone, I have a script that checks the percentage of overlap between two polygons. The code below was working fine in 9.3 but now in 10.1 it crashes every time on the...
View ArticleIMap.FeatureSelection.Next returns null ZCoordinateUnit in the feautre geometry.
xFeature is an IFeature object I retrieved by from the selected feature on the map (using IMap.FeatureSelection.Next function). The feature is from a polyline feature class in personal geodatabase...
View Articlehow to check spatial references for layers and map doc matching in code
Hi, is there any way (in code) to check matching spatial references between layers against map document? If I have a set of layers / feature classes in an MXD ... how to check each one of them matches...
View ArticleCustom ToolBox. Parameter description.
Hello. I've a problem trying to set a description to a parameter for a custom toolbox I've developed. Is there any attribute in the inputParameter that allow to describe this parameter? or I have to...
View Articlehow to hittest with z value
i use IHitTest to get distance, a point has z value hittest a polyline has z value ,but the result distance just computed via x and y value,does not use z to do hitttest. how to hittest use z...
View ArticleAltering the SpatialReference of a Esri grid raster failed in ArcMap 10.2.1
Hi, as I have installed the 10.2.1 update, I become an COMException by the call of AlterSpatialReference function on raster dataset (ESRI grid ASCII format). The code: Code: IRasterWorkspace...
View ArticleHow to find midpoint on lines with vb.net of C#
Hi all, Can someone post the code to find the midpoint on a line with ArcObjects? thanks
View ArticleHow to display selected features in Identify Dialog
Hello, I'm brand new to ArcObjects SDKs and am struggling. I have a Python Add-in performing a query to select records (works great)and now trying to call the identify dialog via an .NET addin button...
View ArticleHiding an old VB6 ICommand via another Addin Command using .NET C#
HI All, I am facing some issues while trying to disable an old ICommand button written in VB6. I don't want to make changes to VB6 code as it requires new release of whole solution which contains many...
View ArticleFinding intersection point of two lines on "extending the lines" till they...
Hi All, Could any one please direct me on finding an intersection point of two polyline objects by extending them till they intersect, using ArcObjects (its not 3D). The two input polylines initially...
View ArticlePrevent OnChangeFeature event from firing within itself?
Hello, I have an OnChangeFeature event wired to fire whenever a feature is changed (obviously). Within the event, I am updating a field value, which then fires the event again. Hence, infinite loop....
View ArticleISimpleJunction
I want to run this sample code just to manage the edges of a selected feature (junctionFeature)... Code: // Assume we already have a pointer to a junction feature. ISimpleJunctionFeature...
View Article.net
Hi, I trying to export bmp image from arcmap , right noww the i extend the envelop by 5 , but i want to export my envelop to the orignal raster resolution, of the arcmap, Does Anyone can help? what...
View ArticleExporting and zooming to raster image
Hi, I trying to export bmp image from arcmap , right noww the i extend the envelop by 5 , but i want to export my envelop to the orignal raster resolution, of the arcmap, Does Anyone can help? what...
View ArticleArcObjectsNet on Win x64
I'm new to ArcObjectsNet API and first thing I tried was to build and run a sample. Tried C:\Program Files (x86)\ArcGIS\DeveloperKit10.1\Samples\ArcObjectsNet\ClonableObject\ solution. Build it as x32...
View ArticleReceive events from Catalog view to an Add-In
Hi, I am new in developing with ArcGIS but now I have succeeded in making an Add-In. Now, I want this Add-In to receive event from the Catalog View in ArcMap. For example when I select an item in the...
View ArticleNot able to get the RasterDataset from ArcSDE 10/10.1 using ArcGIS Engine 10.2.2
Getting following error while accessing the RaterDataset from ArcSDE 10/10.1 using ArcGIS engine 10.2.2. But When do the same thing using ArcGIS Engine 10 it works fine. NOTE:: The raster data exists...
View Article