maphew / arcmapbook

Automatically exported from code.google.com/p/arcmapbook
Other
3 stars 2 forks source link

Identifier data frame and selection #8

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hello All,

Hope this site takes off... I stumbled across it and will start telling my
cohorts about it.

I am in need of figuring out how to add a third identifier data frame.
More importantly I am trying to figure out how the tables are auto selected
across data frames in Arc Map (using the idnetifier layer). I have a nice
little code that will auto relate (based on available relates), but I can
NOT figure out how MBGenerator auto selects across data frames (from
original to Global Ident and Local Ident). This is the trick I am trying
to really figure out as this would be GOLD to many people I have talked to.

I also want to control the extent in the local identifier. I found a bit
of code to insert around line 720 and someone else suggested modifying the
selection routine... but I and my cohorts who use this great little add on
all agree that a bit more user friendly GUI would be a GREAT touch (auto
center on selected and you set the scale to 4800 or some such nonsense).

Any help would be greatly appreciated,
Brendan

Original issue reported on code.google.com by map...@gmail.com on 15 Dec 2007 at 1:02

GoogleCodeExporter commented 9 years ago
Hi Brendan, thanks for the well wishes for the project. I'm going to try
and clarify this request a bit. Please refine as appropriate.

wish #1 is to be able to have a 3rd identifier frame on the layout page.
The rest of the paragraph is discussion on how you've attempted to achieve
that so far.

Wish #2: Control extent of local identifier data frame.

For #2: Do you see this controlled by an attribute  of the index layer,
similar to the way the main map dataframe is controlled? E.g. add a field,
say, KeyMap_Margin? What would the units be for margin (map units, percent,
etc.)

Original comment by map...@gmail.com on 15 Dec 2007 at 1:02

GoogleCodeExporter commented 9 years ago
Matt,

#1 - Yep, just a third identifier frame... then some babbling.

#2 – Short answer = control base on map units and a simple text box
would be best.

Long answer = For control of the extent (please keep in mind I am NOT a
programmer), either a simple text box for the user to input desired units
(based on map units) or a simple zoom out percent entered in a text box.  I
know that you must have the data frames projected to work properly so I
presume that the map units are being referenced and used by MBGenerator. 
Map units would obviously be the preferred method.  If that is not a viable
option, then use an expansion based on percent.  Have a text box that
auto-updates the code i.e. the user enters 2.5 and the code is updated to

'....  insert around line 720 of code ....
Dim pNewEnv As IEnvelope
Dim pGeom As IGeometry
Set pGeom = m_pPageShape
Set pNewEnv = pGeom.Envelope
pNewEnv.Expand 2.5, 2.5, True
Set pActive = pmap
pActive.Extent = pNewEnv
'...Cont code ... NOTE: Code gleamed from ESRI Forum, I am not the
author.

The user could change this via the series properties page possibly.  Be
kind, as I said before I am NOT a programmer.

Thanks,

Brendan

Original comment by map...@gmail.com on 15 Dec 2007 at 1:02

GoogleCodeExporter commented 9 years ago
Don't worry about harshness, I'm not a programmer either.
(on second thought, maybe that should worry you!)

#2, a potential problem with a text box for entry is that then batch
printing/exporting might break. It's probably easiest to use the same
method, and possibly controls, as in the options tab of 'Map Series
Property' when defining the extent for the main map data frame.

It would be nice to have a general purpose interactive editor for setting
all of these options, not just data frame extent. For example, imagine
going to each map page in turn, setting the data frame extent, rotation,
scale, etc. and slapping a "save these settings" button. (This would be in
addition to the current method, not instead of. No one wants to be _forced_
to visit every single page). Such a button might be a fairly serious
project though.

Original comment by map...@gmail.com on 15 Dec 2007 at 1:02

GoogleCodeExporter commented 9 years ago
Sender: willitsb

In my case I would not need control over the frame for each map (though I
can see where some people would really enjoy that ability).  I was thinking
of setting it once in the initial setup (or available under properties tab
to change later and / or tweak it to suit different needs as they arise)
and have that set it globally for all maps.  I work for a county so I only
need specific scales and apply them over thousands of maps.

Original comment by map...@gmail.com on 15 Dec 2007 at 1:03