English

How To: Share projects on the same network

Summary

ArcView project files store absolute pathnames, as seen in the 'Add Theme' and 'Add Table' dialogs. If you share these projects over a network and the mapped drive saved in the project file is inaccessible, project repair will be invoked. To avoid this, you can have ArcView store Universal Naming Conventions (UNC) pathnames in the project file. See the Related Information section for additional information on Universal Naming Conventions.

This document describes how to modify ArcView default system scripts that add themes ("View.Add") and tables ("Project.AddTable") to a project. Once these scripts are modified, ArcView will save UNC pathnames.

NOTE: UNIX does not recognize UNC pathnames unless you are using emulation software such as SAMBA.

Procedure

  1. Open a new script window.
  2. Select Load System Script from the Script menu.
  3. Select “View.Add” and click OK.

  4. Add the following code to the script after the line that reads "for each n in srcnames":

    Code:
    unc = system.getuncfilename(n.getdatasource.asfilename)
    if(unc <> "") then
    srcn = srcname.make(unc)
    if(srcn = nil) then
    srcn = srcname.make(unc++n.getsubname)
    end
    n = srcn
    end

  5. Rename the script "View.Add".

    A. Select Properties from the Script menu.
    B. Type in a new name in the Name field.
    C. Click OK.

  6. Select Compile from the Script menu.
  7. Open a new script window.
  8. Select Load System Script from the Script menu.
  9. Select “Project.AddTable” and click Select.
  10. Add the following lines to the script after the line that reads "for each f in files":

    Code:
    unc = system.getuncfilename(f)
    if(unc <> "") then
    f = unc.asfilename
    end

  11. Rename the script “Project.AddTable”.

    A. Select Properties from the Script menu.
    B. Type in a new name in the Name field.
    C. Click OK.

  12. Select Compile from the Script menu.

    Note:
    If you save this project the changes will only affect the current project. Optionally, you can create a default.apr file that will affect new projects.

Related Information