FAQ_FILENAME: tool_library.d/faq_customize

TOPIC:
TOOL LIBRARY

SUBJECT:
Customizing Tool Library

QUESTION:
How do I set Synergy's default tools and materials to my tools and materials?


ANSWER:
Here is how to have Synergy default to your tool and material libriaries:

1. Copy /usr/weber/ascrpt/setconstants to:
	/usr/weber/contrib/ascrpt/
2. Modify the section in setconstants that calls for the tool and operation libraries so that it calls for your tool and material libraries. The section in set constants looks like this:

IF Use_tools THEN
DIM Op_dir$[128],Lop_dir$[128]
DIM Tool_dir$[128],Ltool_dir$[128]
V14=CreateVariable("tool association",WsToolVars,1.0)
IF Units= WsMetric THEN
Op_dir$= "/usr/weber/util/tooldata/operations2_mm/" 
Tool_dir$= "/usr/weber/util/tooldata/tools_mm/"
Lop_dir$= "/usr/weber/util/tooldata/loperations_mm/"
Ltool_dir$= "/usr/weber/util/tooldata/ltools_mm/"
ELSE
Op_dir$= "/usr/weber/util/tooldata/operations2_in/" 
Tool_dir$= "/usr/weber/util/tooldata/tools_in/"
Lop_dir$= "/usr/weber/util/tooldata/loperations_in/"
Ltool_dir$= "/usr/weber/util/tooldata/ltools_in/"


Modify "operations2_in" to use inch measurements.
Modify "operations2_mm" to use metric measurements.

3. To modify the library for materials change this line so that the directory path points to your materials directory:

V1=CreateVariable("material dir",WsSystemVars,"/usr/weber/util/tooldata/materials/")

Any scripts that are placed in the /usr/weber/contrib/ directory will over-write the scripts under /usr/weber/ascrpt.



