Reputation
Top tag
Next privilege 125 Rep.
Vote down
Badges
9
Newest
 Informed
Impact
~4k people reached

  • 0 posts edited
  • 0 helpful flags
  • 7 votes cast
1d
comment Arcobjects Assign projection transformation to layer file in VB.net
Thanks for the reply. Would this work with layers that point to WMS server? The data is a raster layer.
1d
comment Arcobjects Assign projection transformation to layer file in VB.net
Good point, did not think of it that way. The layer actually points to a WMS server. Saving the layer file into OSGB did not work, every time I reload it goes back to the original state. However by amending the data frame transformation in the data frame properties I was able to set it so that any WGS1984 layer converts to OSGB 1936 automatically. So now I have 2 choices. 1. change the data frame properties for all the mxd's they use or 2. create a geotransformation sub.
Jan
27
comment ESRI forms using hooks
It works now. Please see my answer below. Though you were right that I had to use GetDockableWindow
Jan
26
comment ESRI forms using hooks
It returns nothing. When I click on it in ArcMap the button just greys out. No error messages or anything. I even have a Try and catch statement in the Onclick method. I am sure your code works in C# but when I try the code I wrote above doesn't even though its based on getDockableWindow() The code above is also in the click event
Jan
26
comment Adding hover pop-up notes to map Arcmap desktop 10.3
Is there a way to enable map tips when we export the map to pdf? shame there isn't an option to make the pdf interactive using Arcmap (other than turning layers on and off).
Jan
26
comment ESRI forms using hooks
I am trying it from your answer using vb.net. If you see the new code I have written in the update above it does not work. Unless I am missing something.
Jan
26
comment ESRI forms using hooks
I tried the GetDockableWindow() method above and the button still does not work.
Jan
19
comment exporting 10.2 .esriaddin to 10.0
i used the following code: Try Me.Close() Catch ex As Exception Windows.Forms.MessageBox.Show(ex.Message) End Try
Jan
19
comment exporting 10.2 .esriaddin to 10.0
you are right, but I am only able to get hold of 10.2 on the VM. Thought it would be ok if I compiled the addin in 3.5 framework and change the Target in the xml file to 10.0. [link]gis.stackexchange.com/questions/46724/…
Jan
18
comment Arcobjects vb.net forms in Arcmap 10.0
I think my accounts are merged now.
Jan
18
comment Arcobjects vb.net forms in Arcmap 10.0
Hi .not sure how that happened. I fixed the issue by using VB standard form template rather than the ESRI Arcobjects one.
Jul
16
comment Checking for overlaps using python
I have indented it correctly in the code its just how it got posted. The code now does find overlaps but only in the first layer in the table of contents. It will say "id 2 overlaps 4" then under it "4 overlaps 2". Even though i have 3 layers in the TOC and it only looks at the top layer in TOC. How can i make it go through the layers in TOC? Also if i change the name of the first layer it gives back error msg that "layer does not exist" . Not sure what is going on, but things were much easier when arcmap used VBA.
May
28
comment Checking for overlaps using python
As long as i can run it as a tool within the current mxd open then thats fine. Thats why i use the mapping module, to call "current" mxd. Not sure of what other way.
May
28
comment Checking for overlaps using python
Thanks for the replies. I am using 10.0. Seems no matter how i change the code it always gives back error 99999. Maybe it doesnt like how i pass the feature class list through the search cursor.
Dec
2
comment Geodatabase add current date and time to attribute
I tried using the .bat file but i get operation failed. Maybe its to do with privileges on win XP.
Feb
21
comment VBA Convert decimal degree to Meters button
I think it could also be how i define WGS. i used Set pProjCoordSystem = pSREnv.CreateProjectedCoordinateSystem(esriSRProjCS_WGS1984UTM_14N) What should i be using if i just want the standard WGS1984?
Nov
22
comment get layer names from a group within a group
Ok solved it by removing the if statement and changing the line For l = 0 To pCompLayer.Count - 1 To For l = 0 To 100 - 1
Nov
21
comment get layer names from a group within a group
Thanks for the reply. I found the code works but will not list the layers at the bottom of the list. I had to modify the code for VBA. I had to add the for loops so it will show all the layers. Without the for loop it just shows the first nested group and thats it. But not sure why it misses off the last 8 layers in the TOC. Please see code below