|
POST
|
When you say add a TextSymbol to the Map and then the user can click on it, this to me is suggesting you have added a TextElement, is that what you meant? Being Devils advocate here, how do you intend to distinguish between text elements you have added to the Map via your code and those added by the user?
... View more
07-02-2015
09:13 AM
|
0
|
1
|
1304
|
|
POST
|
Berend, I think the problem comes from IMapDocument and its method ReplaceContents. It seems to be a method implemented by MapDocument class but not the MXDocument class. Below is some VBA that transfers layers from one MapDocument into the currently running MXDocument. Public Sub TransferLayers()
''' Get a handle on existing Map Document
Dim pMapDocument As IMapDocument
Set pMapDocument = New MapDocument
pMapDocument.Open "C:\Scratch\Untitled.mxd"
''' Get a handle on the contents of this Map Document (assumed to be only 1 DataFrame)
Dim pMXDContents As IMxdContents
Set pMXDContents = pMapDocument.Map(0)
Debug.Print pMXDContents.Map.LayerCount
''' Transfer layers into current MXD
Dim pMXD As IMxDocument
Set pMXD = ThisDocument
Dim pLayer As ILayer
Dim i As Integer
For i = 0 To pMXDContents.Map.LayerCount - 1
Set pLayer = pMXDContents.Map.Layer(i)
Debug.Print pLayer.Name
pMXD.FocusMap.AddLayer pLayer
Next i
''' Refresh
pMXD.UpdateContents
End Sub
... View more
07-02-2015
06:57 AM
|
0
|
2
|
1263
|
|
POST
|
Melita, Just want to be sure I am crystal clear with understanding this. This change affects 10.3 onwards. All transformations are now referred to as "Composite Transformation" in the Geographic Coordinate System Transformation dialog then a count? So the OSGB_1936_to_WGS_1984_Petroleum is a single transformation and gets a count of 1. I was trying to follow the instructions here to use the OSTN02 transformation from Ordnance Survey. They show the text: NTv2 - dataset=uk/OSTN02_NTv2 in the transformations dialog. I was unsure if I had messed up but from reading this thread it is a "cosmetic" issue? Duncan
... View more
07-02-2015
04:17 AM
|
0
|
0
|
1908
|
|
POST
|
Mark, I too have 10.3, just knocked some VBA together to create a progress dialog with a spinning globe and can confirm that when I set it to Globe all I get is a spinning set of dots. Looks like a bug, hope someone from ESRI can confirm this? Duncan
... View more
06-29-2015
09:41 AM
|
0
|
0
|
787
|
|
POST
|
I think if you are just making an addin then you need only install the ArcObjects sdk for Microsolft .NET Framwork which comes on the install DVD. I have 10.3, that's what I installed and I am using Visual Studio 2012 not 2013.
... View more
06-29-2015
09:01 AM
|
3
|
4
|
2376
|
|
POST
|
Had to ask! Would this work for you? Run ESRIRegAddIn.exe from a DOS prompt which could be put into a batch file, something like C:\Program Files (x86)\Common Files\ArcGIS\bin\ESRIRegAddIn.exe c:\temp\myaddin.esriAddIn /s The /s is for a silent install Duncan
... View more
06-18-2015
05:15 AM
|
0
|
0
|
4687
|
|
POST
|
Just being devils advocate here, why are you fiddling around with the registry? AddIn's can be installed as Nicola says by double clicking on them or as I prefer I add the folder where the AddIn is via the Add-in Manager dialog. Very simple no pain?
... View more
06-18-2015
04:13 AM
|
0
|
1
|
4687
|