[Next] [Up] [Previous] [Contents]
Next: Text Based Search Engine Up: Results Previous: Creating Family of Parts

Searching for Parts

These scripts allow searching of first the list of families of parts, and then searching within a selected family. The first search matches the user's search string against the master part name and the family description. This description should be something that would allow the user to identify the part, such as the name of the family from a MIL SPEC or a parts catalog. The second search allows searching for strings in each of the variables in that family's table. Only the requested fields are searched, to cut down on the number of searches necessary to determine a match. Both of the searches are case-insensitive.

The information on all existing master parts are stored in a text file. Only these families can be selected in a search. Because the program uses this list of families, the parts do not have to be stored in any particular area. Each entry has four colon separated fields. The first is the full path of the master part directory. This is used to find the _tbl file for the family. The second field is the CADDS5 part name of the master part. It is used to build the part name and is given to the generate server if necessary. The third field in the record is a description of the family. This is searched in the first step of the program, and listed with the matched master parts. The optional fourth field is the filename of a graphic image of the part. This is passed to xv, an image viewer after the master part is selected, if the user wants to see the image. Records can be split across multiple lines by including a backslash as the last character of each line, except for the last line of the record. Blank lines in the file are ignored and thus can be inserted to improve readability.

/usr2/std/fpts/handle-round:fpts.handle-round:Amatom Handles \
Round-Internal Thread:/usr2/std/fpts/handle-round/handle.gif

/usr2/std/fpts/d38999-24:fpts.d38999-24:Connectors, \
Electrical, Circular, Receptacle, Jam-Nut Mounting, \
Removable;Crimp Contacts, Series III\
:/usr2/std/ftps/d38999-24/d38999-24.gif


[Next] [Up] [Previous] [Contents]
Next: Text Based Search Engine Up: Results Previous: Creating Family of Parts

Last Modified: Wed Aug 28 14:41:29 EDT 1996

Gregory Marr <gregm@alum.wpi.edu>