10
votes
Accepted
Unable to create .esriAddin; missing ESRI ArcGIS Add-in SDK components(s)?
I did not per se figure it out becuase i don't really understand what is going on here but I was trying different things until it worked. I am not sure whether it is suppose to work or whether this ...
6
votes
Accepted
Getting feature class from File Geodatabase in ArcObjects using VB.NET?
Assuming your project is setup correctly, with all references added and compiles without errors. Using Visual Studio Express 2013, ArcGIS 10.3 and targeting .Net framework 3.5
Also ensure you add ...
5
votes
Accepted
vb.net arcobjects determine whether arcmap is in editing session
You can check for the EditState on the editor extension.
5
votes
Accepted
Finding layer based on source name using ArcObjects?
To find the name of the dataset as stored in the database use IDataset.BrowseName. IDataset.Name will give you the layer name as it is named in ArcMap.
You should also test that the layer can be cast ...
5
votes
Accepted
I am making a selection with ArcObjects, is there an Issue with iSelectionSet:AddList or do i have an error somewhere?
It seems you can no longer trust the ISelectionSet.AddList, according to the help document:
This method should not be called by .NET or Java applications. Instead, call IGeoDatabaseBridge2.AddList.
...
5
votes
Accepted
Getting feature class names within dataset with vb.net and ArcObjects?
You need to iterate the datasets to get his containing feature classes. Like this:
While Not pSdeDSName Is Nothing
Dim pEnumDataset = pSdeDSName.Subsets
Dim pSubset = pEnumDataset.Next()
...
4
votes
How to enable 3D analyst in ArcGIS through VB.NET?
If your application is running inside of ArcGIS your product license should handle the activation of extensions for you. Failing that you can always use ArcObjects to check out the required extensions....
4
votes
Accepted
Update attributes during edit session using ArcObjects
If you comment out the Store call, you should be good: http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#//0025000007wv000000
Store should not be called inside of edit events,...
4
votes
Accepted
vb.net arcobjects spatial query get fields value of desired layer only
I think you are making this more difficult than it has to be. You are obtaining your selected features from IMap.FeatureSelection. So multiple layers could return a selection.
A much better way is to ...
4
votes
Accepted
vb.net arcobjects determine 'create features' on which layer
Yes. You need to respond to the IEditEvents.OnCreateFeature which returns an object of type IFeature which has a property Class which will give you the feature class it belongs to.
After you have ...
4
votes
Accepted
How do you set a polygon layers transparency in DotSpatial
Figured it out seconds after posting, you need to specify a colour using the Color.FromArgb method making sure you specify the desired alpha transparency then the base colour i.e.
mpl.Symbolizer = ...
3
votes
Accepted
vb.net ArcObjects is there a function the same as "Select Features by Polygon" of ArcMap's tool
If you want to select features by polygon using ArcObjects, you would typically use a spatial filter, which is very simple to implement. Here's an example in VB.NET, where pPolygon is your polygon ...
3
votes
Using ArcGIS Geoprocessing and 32/64 bit architecture with ArcObjects?
Had a quick search on Google for what R6034 meant and here are some threads, it may not even be anything to do with ArcMap:
Thread
Reason
StackOverflow Q&A
And a whole load more...
3
votes
Accepted
Difference between 'point' and 'WKSpoint' in ArcGIS
If you have an IPointCollection you can add points to it (IPoint), be careful which point you use as there are many types that are "point", the one you want is IPoint:
IPoint pPoint = new PointClass()...
3
votes
Creating TIN in ArcGIS from 5 points using VB.NET?
The best recommendation I can give is don't. Creating a TIN using ArcObjects is a tedious process.
You would be best looking at IGeoprocessor and calling the existing tools. If you have 5 points in ...
3
votes
Finding path where add-ins are installed for ArcGIS Desktop?
Here is the C# code to get the addin assembly folder:
public static string AssemblyDirectory
{
get
{
string codeBase = Assembly.GetExecutingAssembly()....
3
votes
Permanently reordering fields in feature class programmatically using ArcObjects with VB.Net
This is possible in python using FeatureClasstoFeatureClass with Fieldmappings. You can also rename fields at the same time.
So if you have a Featureclass with FIELD3,FIELD2,FIELD1 and you want the ...
3
votes
Accepted
vb.net arcmap add-in loop through a dbf file get 'System.NullReferenceException' error
This line:
pRow = pCur.NextRow
should be at the end of your loop
Do Until pRow Is Nothing
SegmentID = pRow.Value(pFieldIndex1)
DrainName = pRow.Value(pFieldIndex2)
MsgBox("SegmentID = ...
3
votes
Arcmap VB.NET export map to SHP error
You get the selection set on the feature layer but then you do a feature count on the feature class, an object that does not support selections. So your current logic makes no sense.
Now do you want ...
3
votes
ArcObjects interface to construct circles with segments instead of arcs
What you are looking for is the circumcircle of a triangle. The circumcircle of a triangle is the circle that passes through all three vertices of the triangle and is unique. Help
Although I think ...
3
votes
Accepted
Getting Layername from selected feature using ArcObjects?
You can't go from a feature to a featureLayer, because the same feature can be part of multiple featureLayers (ex: add the same layer multiple times with different symbology, filtering etc).
What you ...
3
votes
Accepted
ArcObjects VB.net looping through domains of a subtype
First when you're saying categories you're talking about two different things (unless I am misunderstanding). First you have the subtype. Second you have a domain. For the purposes of this explanation ...
2
votes
Joining and Calculating using ArcObjects with vb.net
I think the error maybe your calculateField. When you join tables you get a qualified field name this is:
Tablename.fieldname
So in your case it will be the FeatureClass name and the field name you ...
2
votes
Is extrusion of a line (which is curved) into a plane at a certain angle possible in ArcGIS?
This is not possible in ArcGIS as ArcGIS is not a 3D but rather a 2.5D software as discussed here:
How to set up a 3D plane in ArcGIS?
What is a better idea for modelling a fault plane than as TIN?
...
2
votes
Inverse of Selected Records using ArcObjects?
The following VBA code shows you how to inverse the current selection on a layer, you would then get a SelectionSet on it to step through the new selection.
Public Sub InverseSelection()
' Get ...
2
votes
Permanently reordering fields in feature class programmatically using ArcObjects with VB.Net
I know this is totally out of the scope of the question, but could be useful for those who want to reorder fields inside a table only once by hand. You can do the trick by importing the classes (or ...
2
votes
Using ArcGIS Geoprocessing and 32/64 bit architecture with ArcObjects?
I have eventually solved the issue, based on the post by Hornbydd. As he suggested, something in my PATH environment variable was causing mixed architecture (32 and 64 bit) DLLs to get loaded.
1) I ...
2
votes
Accepted
Access a topology sample code runtime error when define ITopologyExtension
To clarify the comments, the problem is that you have an IApplication object but haven't linked it to ArcMap (initialized the object):
Dim topoUiD As UID = New UIDClass
topoUiD.Value = "esriEditorExt....
2
votes
Accepted
Working with topology errors sample code error
Try this syntax:
topoError = eErrorFeat.Next
Do While Not (topoError Is Nothing)
topologyExt.AddActiveError(topoError, esriTEEventHint.esriTENone)
topoError = eErrorFeat.Next
Loop
You may ...
2
votes
Accepted
How to create a transparent buffer of a polyline?
The following VBA code grabs the first polygon graphic on the Map and sets the transparency. The problem is that graphics don't appear to support true transparency. In the Help for IColor.Transparency ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
vb.net × 247arcobjects × 178
arcgis-10.0 × 49
arcmap × 36
add-in × 23
arcgis-desktop × 19
vba × 18
arcgis-10.1 × 15
arcgis-10.2 × 14
visual-studio × 13
arcgis-server × 10
c# × 10
.net × 10
coordinate-system × 9
arcgis-9.3 × 8
topology × 8
geometry × 6
enterprise-geodatabase × 6
editing × 6
arcgis-engine × 6
python × 5
raster × 5
point × 5
geoprocessing × 5
vb × 5