shrug-l: Relative Path Names

Mark.Welsh@dot.state.fl.us Mark.Welsh@dot.state.fl.us
Mon, 18 Jul 2005 09:50:47 -0400


Jim,

You need to fire up a blank arcmap document, get to the VBA editor (Alt
F11) and then paste the following code in the "ThisDocument" object under
the "Normal.mxt" (this makes it available to every arcmap document, all the
time).

Here is the code:

Dim myDoc As IMxDocument
Set myDoc = ThisDocument
 myDoc.RelativePaths = True

You need to paste this code into the
"Private Function MxDocument_NewDocument() As Boolean" and
"Private Function MxDocument_OpenDocument() As Boolean" functions that are
available to the MXDocument
object.

Mark Welsh
GIS Applications Coordinator
Transportation Statistics Office
Florida Department of Transportation
(850) 414-4722
mark.welsh@dot.state.fl.us



                                                                           
             "Thomas, Jim"                                                 
             <jthomas@golder.c                                             
             om>                                                        To 
             Sent by:                  <shrug-l@lists.dep.state.fl.us>     
             shrug-l-admin@lis                                          cc 
             ts.dep.state.fl.u                                             
             s                                                     Subject 
                                       shrug-l: Relative Path Names        
                                                                           
             07/18/2005 09:34                                              
             AM                                                            
                                                                           
                                                                           
                                                                           




All,

Is there a way to change the Map Properties for multiple map documents at
the same time? I have many .mxd's that I need to change from Full Path
Names to Relative Path Names.

Thanks,
Jim Thomas