Hi all,
Sorry for cross posting this!.
I am working in ArcGIS product of ArcView very recently... I am trying to do some customization on that using VBA and VB. I had encountered the following problem, which I want to brought into the list and get the help from the group..
Problem: I have few dataframes ( named as View1, view2... by me), i want to toggle between activation of dataframes through running a VB/VBA code...
For the above problem, i had tried the following way, but which won't fetch me the required result..
Code : In UIcontrolButton ( the code is added to the button)
' given here only the content not the header and end...
dim pdoc as imxdocument set pdoc = thisdocument
dim counter as long counter = thisdocument.focusmap.maps.count
pdoc.focusmap.maps.item(0).activate pdoc.updatecontent
' To have the idea for the above line, i have few views, consider that i had two views... and view2 is activate before running this code/script...
My observation: 1. once running the code.., the Table of Content is not reflecting my Activation... 2. The layers which are in the view1 are not coming in the same geographic area where view2 layers are coming ( FYI: in both view1, view2, i had added only the same Layers with same projection), there is a shift 3.and the scale also changing to a large extent, ie zoomed out to larger extent...
Thanks for the help.. and suggestion.. I will sum up the responses from our list .... at a later stage...
Cheers.. Chandrasekar.V
To unsubscribe, write to gislist-unsubscribe@geocomm.com ________________________________________________________________________ Setup a GeoCommunity Account and have access to FAST DataDownloads and Premium Career Posting at a discounted rate! https://www.geocomm.com/cgi-bin/accounts/login
On-line Archives available at http://spatialnews.geocomm.com/community/lists/
|