kenbuja
  • Member for 10 years, 9 months
  • Last seen this week
  • Washington, DC
How can I have ArcGIS not automatically add raster clip output from Python window to the current map
Accepted answer
10 votes

You can change this setting in the MXD by clicking Geoprocessing|Geoprocessing Options and unclicking "Add results of geoprocessing operations to the display".

View answer
How to convert field values from lower case to upper case in ArcGIS 10.1?
Accepted answer
9 votes

You can use UCase UCase( [fieldName] )

View answer
Visual Studio 2010 templates for ArcGIS missing
9 votes

When creating a new project using an ArcGIS template, you have to make sure you target the .NET Framework 3.5 instead of 4, which comes up by default

View answer
Label Expressions to replace null values with text not in feature class
9 votes

You can use a simple script like this to label the features with Null values. Function FindLabel ( [yourfield] ) if isnull( [yourfield]) then FindLabel = "WO" else FindLabel = [yourfield] ...

View answer
Arcgis Javascript latitude and longitude convert to WGS_1984_UTM_Zone_36N
Accepted answer
8 votes

You're going to have to use a Geometry Service to project features into anything other than the Web Mercator spatial reference. This sample show how to do a coordinate conversion using the service. ...

View answer
ArcMap 10: How do I escape certain characters when labeling?
8 votes

You can replace them in your script with the syntax Function FindLabel ([LABELFIELD]) NewString = Replace([LABELFIELD],"&","&amp;") FindLabel = "<ITA>" & NewString & "</...

View answer
Determining ESRI File Geodatabase release version?
Accepted answer
8 votes

You can use the IGeodatabaseRelease2 interface on a workspace to determine the version. It has the properties MajorVerison and MinorVersion. The MajorVersion is offset from the ArcGIs version by 7: ...

View answer
Why is mosaic of rasters big, black rectangle in ArcGIS Desktop?
Accepted answer
7 votes

If you have not recalculated the statistics, you can do this by right clicking on the raster and selecting "Calculate Statistics"

View answer
How to let the user select a spatial reference using ArcObjects?
Accepted answer
7 votes

You can use the built in SpatialReferenceDialog that allows the user to select the spatial reference. Here's an example built in VB.NET that I use in one of my applications. pSR is set as ESRI.ArcGIS....

View answer
Get displaylevels/zoom level javascript API
Accepted answer
7 votes

Map has the property getLevel which you can use to find the zoom level. <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> ...

View answer
Field Calculator VB Script Codeblock IF statement syntax is wrong?
Accepted answer
7 votes

The "as Number" is what's causing the error. Just use "dim X" dim X if [New_Pipe_S] = 0 then X = [DIAMETER_1] else X = [New_Pipe_S] end if

View answer
Turn off field programmatically in ArcMap via VB.Net
Accepted answer
7 votes

You can use the IFieldInfo::Visible property. Here's one way Dim pFieldInfo As IFieldInfo Dim pLayerFields As ILayerFields pLayerFields = pMxDoc.FocusMap.Layer(0) pFieldInfo = pLayerFields....

View answer
Turn certain layers on and off in ArcGIS Web AppBuilder Developer Edition
5 votes

The Layer Toggle Button widget is designed to do precisely that. This is just a simple widget to toggle a configured layer(s) on and off using a button. The layer(s) can be a whole map service layer ...

View answer
ArcGIS JS API SimpleMarkerSymbol is not a subclass of Layer
Accepted answer
5 votes

It's because your function arguments don't match up with your require modules. These must be in the same order! require([ "esri/Map", "esri/views/MapView", "esri/layers/TileLayer", "esri/layers/...

View answer
ArcMap symbols exported to PDF don't draw when viewed on another computer
Accepted answer
5 votes

Make sure you have the option "Embed All Document Fonts" checked.

View answer
How to select features that intersect but don't touch (using ArcObjects)?
Accepted answer
5 votes

You should use esriSpatialRelEnum.esriSpatialRelRelation instead and set the SpatialRelDescription property to pSFilter.SpatialRelDescription = "T***F****". This will only return the features that ...

View answer
Unselecting Individual Selected Features using ArcObjects?
5 votes

You can use the IFeatureSelection::SelectionSet property to return an ISelectionSet. This has the RemoveList method, where you can supply a list of OIDs to be removed from the selection set.

View answer
How to clean gap between two polygon?
Accepted answer
5 votes

You can use the Integrate tool to clean this gap

View answer
Geoprocessor Select By Location Using Features Instead of Layers
5 votes

Take a look at help topic http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/Using_geoprocessing_to_develop_applications/0001000001wt000000/ and look at the section ...

View answer
ArcGIS - ICommandBars exception
Accepted answer
5 votes

You've declared mxApp, but you haven't actually set it to anything. If you're using an addin, you can set that with the line mxApp = My.ArcMap.Application

View answer
ArcObjects 10 - copying fields (table structure) to a new feature class
5 votes

Here's a few subroutines I use in creating new feature classes with an existing template and adding fields. A few notes about the code. I have created a global variable for the geoprocessor (Globals....

View answer
ArcGIS 10 HTML popup code for images
Accepted answer
4 votes

This was the code I ended up using inside one of the XSL samples. <xsl:when test="FieldName[starts-with(., 'Coll')]"> <xsl:variable name="imageName" select="FieldValue"/> <img ...

View answer
Select for a specific number of characters
4 votes

From the help Use the LIKE operator (instead of the = operator) to build a partial string search. For example, this expression would select Mississippi and Missouri among U.S. state names: ...

View answer
Javascript API: queryTask error - where should I put the alert?
4 votes

The Error function will returns a result if something is wrong with the query, like an improperly formatted where statement or a incorrect URL. A result of no records found isn't an error. In your ...

View answer
How to output ActiveView to JPEG image using ArcObjects?
Accepted answer
4 votes

There are two Visual Studio snippets that exports the active view as a JPEG: Create JPEG (hi-resolution) from ActiveView Snippet : Creates a .jpg (JPEG) file from IActiveView using a high ...

View answer
Where are ComReleaser & WebObject ManageLiftime in ArcGIS 10.2.1
4 votes

The ComReleaser class is in found in the ESRI.ArcGIS.ADF.Connection.Local reference. However, this cannot be added using the "Add ArcGIS Reference" dialog. You'll have to use the "Add Reference" ...

View answer
Zooming to selected features with ArcObjects
4 votes

You could use the build-in command to Zoom to Selected features. This is from the Find Command and Execute Snippet public void FindCommandAndExecute(ESRI.ArcGIS.Framework.IApplication application, ...

View answer
get valules for all fields from selected features
4 votes

Here are two examples of getting values from the selected features. This one lists all the values for the feature IMxDocument pMxDocument = ArcMap.Application.Document as IMxDocument; IMap pMap = ...

View answer
List items are replaced with new reference when adding in ArcObjects?
Accepted answer
4 votes

If what's happening is that all the items in PFeatureList are the same, then try using a non-recycling cursor. pFeatureCursor = pFeatureClass.Search(pQueryFilter, false);

View answer
ArcMap: Help with FindLabel funtion
Accepted answer
4 votes

What you'll want to do is something like this. Function FindLabel ( [SwineWeFin] , [SwineGrFin] , [SwineNurse] , [SwineGesBo] , [SwineSowLt] , [SwineGilti] , [CattleDaHl] , [CattleDaJr] , [CattleDaHf]...

View answer
1
2 3 4 5 6