|
POST
|
I think you need to give more information about these rasters, what are their: Size Type Projection cell size are they overlapping
... View more
05-15-2014
02:24 PM
|
0
|
0
|
1777
|
|
POST
|
You need to state which version of Arcmap you are using and any service packs.
... View more
05-15-2014
03:24 AM
|
0
|
0
|
1660
|
|
POST
|
Interesting to hear that the intersect tool ends up flipping the polyline direction. Well if your network contains no loops or bifurcations then you could use RivEX to re-orienate the vector network to a snapped mouth point. Have a look at the online help and search for the reorientation tool, make sure you understand the input requirements.
... View more
05-15-2014
03:15 AM
|
1
|
0
|
1562
|
|
POST
|
Have a look at RivEX, if you convert your raster network to a vector network you can attribute your network in multiple ways, main stem being one of them. But this would be the main stem from the mouth of the network to the most upstream limit. Have a look at the online help for more information.
... View more
05-15-2014
03:10 AM
|
0
|
0
|
2413
|
|
POST
|
Have a look at this page and follow the links on it.
... View more
05-15-2014
02:04 AM
|
0
|
0
|
882
|
|
POST
|
In the help file is says: ...These options are used for all ArcGIS programs. This allows you to save time and display your raster data consistently... You are changing properties that are at the application level and not at the dataset level. I'm not personally aware of anyway of accessing those unless its some sort of registry access?
... View more
05-14-2014
07:10 AM
|
0
|
0
|
653
|
|
POST
|
The following VBA code shows how to hook into the Catalog Window and any selection. In this example it simply displays the full path name. You have to get a handle on the DockableWindow then it's Userdata property which returns an object of type IGXBrowser Public WithEvents sel As GxSelection
Public Sub test()
Dim pDockableWindowManager As IDockableWindowManager
Set pDockableWindowManager = Application
Dim sUID As UID
Set sUID = New UID
sUID.Value = "{7F09BEFF-4F85-48A2-A3DC-39430262799E}" 'GxBrowserDockWindow
Dim pDockableWindow As IDockableWindow
Set pDockableWindow = pDockableWindowManager.GetDockableWindow(sUID)
Dim pGXBrowser As IGxBrowser
Set pGXBrowser = pDockableWindow.UserData
Dim pGXCatalog As IGxCatalog
Set pGXCatalog = pGXBrowser.InternalCatalog
Set sel = pGXCatalog.Selection
End Sub
Private Sub sel_OnSelectionChanged(ByVal Selection As esriCatalog.IGxSelection, initiator As Variant)
MsgBox Selection.Location.FullName
End Sub
... View more
05-12-2014
03:41 PM
|
0
|
0
|
417
|
|
POST
|
It's not obvious in the Help which class uses the IRasterShader interface. If you are just tweaking brightness as your snippet suggests you can point ILayerEffects to an IRasterLayer object and set the brightness. This VBA code shows how to adjust brightness: Public Sub test()
Dim pMXdoc As IMxDocument
Set pMXdoc = ThisDocument
Dim pMap As IMap
Set pMap = pMXdoc.FocusMap
Dim pRasterLayer As IRasterLayer
Set pRasterLayer = pMap.Layer(0)
Dim pLayerEffects As ILayerEffects
Set pLayerEffects = pRasterLayer
pLayerEffects.Brightness = 99
End Sub
... View more
05-12-2014
08:59 AM
|
0
|
0
|
508
|
|
POST
|
Bob, When you say you'll be upgraded to 10 do you mean 10.0, 10.1, 10.2 or 10.2.1? I think the python addin tools came in in version 10.1. Have a look at this to see how to develop a tool. So to get it crystal clear in my mind you have a csv file you import which has for example 10 points with various information, then you want to add mission data, this would be exactly the same for every point? So in effect you are adding a new field lets say its called "mission notes" which is of type string and you populate that with some mission related information? You would need to export the XY event layer to a separate FeatureClass so you could add extra fields. Well you could create a very simple model that adds a field and inserts the text. If you expose the inputs as parameters then this will look and behave just like any other geoprocessing tool. Creating model tools is discussed here. This would require zero programming. Duncan
... View more
05-12-2014
08:39 AM
|
0
|
0
|
1466
|
|
POST
|
Bob There is one other thing you need to consider, how your user interacts with the data on the screen. So you've got a bunch of points on a map, how would they select them? It would be the selected point that they would want to attach the extra information to. Unless it's some sort of bulk update and information you want applied to ALL bomb sites. If you need to add information to individual sites then the most sensible way is for the user to say draw a rectangle over the point and that selects it then the form opens up and then can fill in the details. I think a less efficient way would to select the point by attribute but that would require the user to know some pre-existing ID. As you mentioned VBA, you are wanting to use UIToolControl for that. But ESRI are phasing out support for VBA so in the long term you'll be shooting yourself in the foot. You could use the new python addin tools or develop it as a VB .net AddIn Duncan
... View more
05-12-2014
06:41 AM
|
0
|
0
|
1466
|
|
POST
|
Evan, This is too vague I think you need to upload the code for anyone to have a chance to answer this question.
... View more
05-12-2014
06:31 AM
|
0
|
0
|
722
|
|
POST
|
There are lots of ways to approach this topic. I believe Jeff's answer is the best way to store a value actually inside the MXD but I've often created code that reads and writes from a simple XML file. This would allow people to edit values outside the ArcMap environment but then you would need to either have a well known location to read/write or have it associated with the MXD in some way. Alternatively write it into Excel and use automation to connect and read from the worksheet? You could even try writing to the registry?
... View more
05-12-2014
06:28 AM
|
0
|
0
|
1376
|
|
POST
|
If you wanted to run summary statistics tool then that should be OK as that will work with the current selection, so no need to export to a separate layer. But if you want to keep the selection as a separate sub-set of data then the Select or Copy Features tool would allow you to export the selection.
... View more
05-12-2014
02:14 AM
|
0
|
0
|
4350
|
|
POST
|
Just to add my experience to this thread I tried to set the current tool to the default constructor but every time I tried to set the UID.Value property to "{8F79967B-66A0-4A1C-B884-F44BC7E26921}" it kept saying it was a value out of range. I am using ArcGIS 10.2.1. I do not know if this is a bug but I got around it by using the following code:
Dim pUID As New UID
pUID.Value = "esriEditor.PolygonFeatureTool"
m_App.CurrentTool = m_App.Document.CommandBars.Find(pUID, True)
... View more
04-23-2014
08:05 AM
|
0
|
0
|
2471
|
|
POST
|
I'm using VB .Net 2010, ArcGIS 10.2.1 I managed to capture if the AddIn dockable window had changed by hooking into the move event of the form. So went through the AddIN wizard to create a Dockable Window (in my case I called it dkwHotLink), exposed a property called UI so I could gain access to the controls on the form (there are several threads on this forum about that subject), added all the code I needed to for each control on the form and then added the Move event as shown below. If the form is moved it checks if it is floating, if so it resizes it. Private Sub dkwHotLink_Move(sender As Object, e As System.EventArgs) Handles Me.Move
Dim pdockWindowManager As IDockableWindowManager
pdockWindowManager = DirectCast(My.ArcMap.Application, IDockableWindowManager)
If Not pdockWindowManager Is Nothing Then
Dim pUID As UID = New UIDClass
pUID.Value = "GeoData_Institute_University_HER_AddIn_dkwHotLink"
Dim pDockableWindow As IDockableWindow
pDockableWindow = pdockWindowManager.GetDockableWindow(pUID)
If pDockableWindow.IsVisible Then
Dim pWindowPosition As IWindowPosition
pWindowPosition = pDockableWindow
If pWindowPosition.State = esriWindowState.esriWSFloating Then
pWindowPosition.Height = 560
pWindowPosition.Width = 349
Me.Refresh()
End If
End If
End If
End Sub
This code seems to fire when you dock/undock the dockable window but not when you are dragging it around.
... View more
04-15-2014
07:13 AM
|
0
|
0
|
579
|
| 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
|