|
POST
|
The code you need is: ' Get a handle on DataFrame Dim pMap as IMap pMap = My.ArcMap.Document.FocusMap ' Set Display Units to meters pMap.DistanceUnits = esriMeters ' Set Map units pMap.MapUnits = esriMeters
... View more
01-22-2014
01:14 AM
|
0
|
0
|
1284
|
|
POST
|
John, There is a good walk through on the ESRI website that teaches you how to build a simple AddIn. This is what I used to get to grips with how to create them, change properties and run them. I think your best approach is to bite the bullet and walk yourself through this walk through first.
... View more
01-21-2014
07:05 AM
|
0
|
0
|
682
|
|
POST
|
As you are getting IFeatureLayers you would then get a handle on the FeatureClass. This gives you access the Fields which you can iterate over to retrieve the field names. If you want to read the actual values of each Feature then you need to create a FeatureCursor and iterate over this. There are many examples in the help and on this forum.
... View more
01-21-2014
06:53 AM
|
0
|
0
|
558
|
|
POST
|
I think your code should be: Dim pActiveView As IActiveView pActiveView = My.ArcMap.Document.ActiveView pActiveView.ScreenDisplay.DisplayTransformation.Rotation = 90 pActiveView.Refresh()
... View more
01-21-2014
06:44 AM
|
0
|
0
|
976
|
|
POST
|
You could use block statistics to find the highest value within your 50m search area then some sort of conditional statement?
... View more
01-17-2014
06:29 AM
|
0
|
0
|
685
|
|
POST
|
I've noticed that 10.2.1 is now available and I was wondering how big a difference it is from an ArcObjects perspective? Could someone from ESRI confirm if I installed 10.2.1 and developed a desktop AddIn could I run it on a 10.2 installation, assuming I'm not using functionality new to 10.2.1? Basically if I recompile an AddIn on a 10.2.1 machine that was originally created for a 10.2 setup would it work on a 10.2 setup? Duncan
... View more
01-08-2014
01:53 AM
|
0
|
2
|
4317
|
|
POST
|
Greg, I have never tried to hook into the Style Manager to change the symbology of features in a layer. This sample page appears to do this. You will need to read about the interface IStyleGallery. Of cause I'm sure you are not the first to ask this question, try the Archived forums, here is one such thread. Duncan
... View more
01-06-2014
08:12 AM
|
1
|
0
|
1145
|
|
POST
|
If its the boundary and not the area (entire polygon) you are after then use the Feature to Line tool to convert your polygon to a polyline then use the Polyline to Raster tool (make sure snap raster environment is set to your raster) to convert the line to a raster representation of your polyline and then you can use the Zonal Statistics tool.
... View more
01-06-2014
02:28 AM
|
0
|
0
|
1122
|
|
POST
|
I don't have Engine but I know you have to initialize ArcObjects, have you done this? Look here and here.
... View more
01-06-2014
02:15 AM
|
0
|
0
|
1929
|
|
POST
|
Greg, Here is one approach, written in VBA. You create your symbology in ArcMap and then save that to a LayerFile. You can then open that LayerFile and get the renderer and overwrite the renderer of the same layer in the map document. This works for file and personal geodatabases but I have not tested it on a SQL database. Public Sub LoadALayerFile()
' Path to Layer file
Dim sPath As String
Let sPath = "C:\Scratch\CITIES_pop.lyr"
' Open layerFile
Dim pLayerFile As ILayerFile
Set pLayerFile = New LayerFile
pLayerFile.Open sPath
' Get a handle on the layer in the LayerFile and its symbology
Dim pLayer As ILayer
Set pLayer = pLayerFile.Layer
Dim pGeoFeatureLayer As IGeoFeatureLayer
Set pGeoFeatureLayer = pLayer
Dim pFeatureRenderer As IFeatureRenderer
Set pFeatureRenderer = pGeoFeatureLayer.Renderer
' Get a handle on the layer in map that is the same as what LayerFile is using
' Assumed to be first in TOC
Dim pMXD As IMxDocument
Set pMXD = ThisDocument
Dim pMap As IMap
Set pMap = pMXD.FocusMap
Set pLayer = pMap.Layer(0)
' Overwrite renderer
Set pGeoFeatureLayer = pLayer
Set pGeoFeatureLayer.Renderer = pFeatureRenderer
'Update and refresh map
pMXD.UpdateContents
pMXD.ActiveView.Refresh
End Sub
... View more
01-04-2014
08:23 AM
|
1
|
0
|
1145
|
|
POST
|
An alternate approach is to extract the nodes (you could use Feature Vertices To Points if you have Advanced license (ArcInfo)) then use the resulting point layer to sample the DEM using Extract Values to Points. If you want to extract the elevation where the river is you may want to consider building a flow accumulation grid and then run your points through the snap pour point tool. It would be these cells that are used to query the DEM. This would guarantee your elevation is extracted from the DEM pixel where the river is, rather than an adjacent hill slope. Duncan
... View more
12-20-2013
05:04 AM
|
0
|
0
|
1741
|
|
POST
|
The gradient fill effect can produce some good effects, have a look at this blog page. Duncan
... View more
12-20-2013
04:44 AM
|
0
|
0
|
2069
|
|
POST
|
How are you creating the file gdb and data set? Are you using the geo-processor and calling geo-processor tools or using ArcObjects? If you are using the geo-processor I wonder if this is locking it? May be use IGPUtilities.ReleaseInternals?
... View more
12-17-2013
12:42 PM
|
0
|
0
|
1165
|
|
POST
|
If you intend to send your geometry over the internet I thought it was some recognized format like JSON? I've never done this but have a look at the interface IJSONConverterGeometry�???
... View more
12-17-2013
12:37 PM
|
0
|
0
|
938
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-03-2026 07:31 AM | |
| 3 | 06-29-2026 05:17 AM | |
| 1 | 02-15-2023 05:45 AM | |
| 1 | 06-16-2026 02:37 AM | |
| 1 | 06-15-2026 08:29 AM |
| Online Status |
Offline
|
| Date Last Visited |
a month ago
|