|
POST
|
The easiest solution to this is use the Table to Table tool and convert your CSV file into a DBF file and explicitly set the field type to SHORT in the Field Map parameter. The DBF will then be read in correctly when you run the TableToDomain.
... View more
10-27-2014
09:44 AM
|
1
|
3
|
2354
|
|
POST
|
To mark code as code you need to click on the use advance editor then >> and choose the language under syntax highlighting.
... View more
10-27-2014
09:27 AM
|
0
|
0
|
2354
|
|
POST
|
There is a whole section within the ArcMap desktop help that discusses geo-referencing and the available tools, this would be your starting point.
... View more
10-27-2014
09:23 AM
|
0
|
3
|
1400
|
|
POST
|
Added a solution to your question on GIS Stack Exchange.
... View more
10-24-2014
08:55 AM
|
0
|
0
|
1506
|
|
POST
|
Li, You say you have used the snippet to get the selected layer but then you say you want to select it? The VBA code below shows how to set a layer to be the selected layer in the TOC
Public Sub SetLayerToBeSelected()
Dim pMXD As IMxDocument
Set pMXD = ThisDocument
Dim pLayer As ILayer
Set pLayer = pMXD.FocusMap.Layer(2) ' tree is zero-based so this is 3rd layer
Dim pContentsView As IContentsView
Set pContentsView = pMXD.ContentsView(0)
pContentsView.SelectedItem = pLayer
pMXD.UpdateContents
End Sub
... View more
10-24-2014
08:00 AM
|
0
|
1
|
1749
|
|
POST
|
I do not know if that is possible, may be it is but I would argue strongly to not remove them, the whole idea about dockable windows is that that can be docked (pinned) and you need to give the use a way of closing them. May be a modal form with the controls turned off would be a better choice?
... View more
10-24-2014
07:35 AM
|
0
|
0
|
955
|
|
POST
|
OK the only thing I can think of is export the data to a file geodatabase, adjust the code accordingly and see if it executes with error. If that happens then it would suggest your code is OK and it is some sort of problem with the other database (I guess it is ArcServer)? At that point I'm out of ideas as I don't use enterprise databases.
... View more
10-23-2014
02:08 AM
|
0
|
1
|
2203
|
|
POST
|
If you want to manipulate tool bars then this can be achieved by using the Interface ICommandbars, ICommandBar and ICommandItem interfaces.
... View more
10-22-2014
02:11 AM
|
0
|
0
|
789
|
|
POST
|
Is nameFieldIndex definitely getting set to the correct index position? If you have joins on the table then I believe you will need to prefix it with the table name.
... View more
10-21-2014
03:43 AM
|
0
|
3
|
2203
|
|
POST
|
I don't know if this is the problem but I would not have used DbNull.value. I would use Nothing. So my line would be: If featureClass is Nothing Then : Same when you test feature.
... View more
10-20-2014
06:43 AM
|
0
|
5
|
2203
|
|
POST
|
When you say "popup the attribute dialog" are you referring to the dockable Attributes panel (available only in edit mode) where you can edit attributes of a feature? Or are you talking about the Attribute Table? The following VBA calls the button that opens the Attribute Panel as if you had clicked on it.
Public Sub openPanel()
Dim pUID As IUID
Set pUID = New UID
pUID.Value = "{44276914-98C1-11D1-8464-0000F875B9C6}"
Dim pCommandBars As ICommandBars
Set pCommandBars = Application.Document.CommandBars
Dim pCommandItem As ICommandItem
Set pCommandItem = pCommandBars.Find(pUID, True)
pCommandItem.Execute
End Sub
... View more
10-09-2014
08:38 AM
|
1
|
0
|
965
|