Synergy Archival Project System


DESCRIPTION

The synergy archival project system is a method of organizing the storage of synergy projects.    It uses the standard hierarchial file system that is present on both NT and UNIX operating systems.

Each project which is archived contains all the files which can be associated with that project.    In addition each time a given project is archived a new revision of that project is created.

The archival system provides utilities for managing the project archive, for retrieving archived projects, and for browsing the components of archived projects.

DIRECTORY STRUCTURE

The default start or the project archive is at:

/usr/weber/archive/

This location is specified in a system variable called "archive dir".    Changing this variable in userconstants will relocate the start of the project archive.

A user may have multiple Synergy archives.    Access to the different archives may be obtained by modifying the archive directory variable.

In the archive, either simple projects or directories of projects may reside.

SIMPLE PROJECTS

A simple project is a directory having a valid file name which contains all the revisions of that project.    Each revision contains a text file called info.txt which contains information about that project, revision notes and a list of the component files of that project.    The information contained in info.txt is patterned after the template file located in /usr/weber/database/properties/Projects.

The component files can be the following:

synfile: The synergy file stored in synergy format.
command_file.txt:   The synergy turbo-post command file.
tapefile.txt: The synergy turbo-post CNC file.
notepad.*.txt: The turbo-post notepad files in .txt format.
notepad.*.html: The turbo-post notepad files in .html format.
*.hpgl: The .hpgl plotter files.
*.jpg: Any .jpg images associated.
*.html: Any .html files associated.
*.htm: Any .htm files associated.
*.doc: Any Microsoft word .doc files associated.
*.xls: Any Microsoft Excel .xls files associated.


The choice of components to be archived is specified by the system variable

"archive file types"

which is set by default in setconstants and may be set in userconstants or changed on the fly.

Valid project names should consist of alpha-numeric sequences with dots or underbars.    Other characters should not be used especially spaces, colons, commas, astericks, slashes, backslashes, # etc.    These characters create problems when we are using regular expressions to scan directories.

A more descriptive name can be used in the info.txt file associated with each project.


DIRECTORIES OF PROJECTS

A directory of projects is a directory which contains one or more synegy projects.    A directory of projects contains information about the types of projects contained in the directory in the file dinfo.txt.    The information contained in dinfo.txt is patterned after the dirtemplate file loacted in

/usr/weber/database/properties/Projects.

We recommend naming the directories with a name which has .d as a suffix.    This is not a requirement.


SAMPLE ARCHIVE STRUCTURE

In this sample Milling.d and Turning.d are directories of projects.    Housing is a project contained in Milling.d.    Widget.d is a subdirectory in Milling.d which contains the projects LeftHand and RightHand.    Shaft, Ring, and Valve are projects contained in Turning.d.

There is no limit to the depth of the directories.    The directory structure should be chosen so that each directory contains a reasonable number of entries.    If there are to be thousands of archived projects then some care should be taken in the directory structure to properly classify the projects into different directories and sub directories.    If this is not done then every time a project is to be selected the user will have long waits followed by having to select from very large lists of projects.