
! script name: userconstants

!A
!A NAME: USER CONSTANTS
!A
!A DESCRIPTION:
!A
!A 	This script sets default values for variables and constants in the
!A 	system.  It can be used to set tool directories drafting constants.
!A 	It is different than the CadSettings.  CadSettings overrides any values
!A 	in this file.  However, if you put a value in this file it will not be
!A 	overwritten unless you put the same value in your CadSettings file.
!A
!A 	This script resides in /usr/weber/ascrpt.  For use by a user it should
!A 	be copied to /usr/weber/contrib/ascrpt.  The function
!A 	Settings->Constants will help create this file.  DO NOT manually edit
!A 	the /usr/weber/ascrpt/userconstants file.  If you want to manually edit
!A 	userconstants make sure it has been copied to the contrib directory
!A 	first.
!A
!A 	Some sample lines of code have been provided for easy manual editing.
!A 	If you are editing this file manually please copy the lines that you
!A 	need into the executable area below.  Be sure to remove the !B from
!A 	the start of the line.  Otherwise, it will not execute.
!A
!B NOTES:
!B
!B 	These are sample lines of code that you may use. Copy the line
!B 	you need to the executable area.  Also remove the !B from the
!B 	front of the line.  Otherwise, the line will not execute.
!B
!B 		V1=CreateVariable("post dir",WsSystemVars,"/usr/weber/post_formats/")
!B 		V1=CreateVariable("tools dir",WsSystemVars,"/usr/weber/util/tooldata/tools_in/")
!B 		V1=CreateVariable("ltools dir",WsSystemVars,"/usr/weber/util/tooldata/ltools_in/")
!B 		V1=CreateVariable("material dir",WsSystemVars,"/usr/weber/util/tooldata/materials/")
!B 		V1=CreateVariable("database dir",WsSystemVars,"/usr/weber/database/")
!B 		V1=CreateVariable("properties dir",WsSystemVars,"/usr/weber/database/properties/")
!B 		V1=CreateVariable("hole features sub dir",WsSystemVars,"HoleFeatures.d")
!B 		V1=CreateVariable("archive dir",WsSystemVars,"/usr/weber/archive/")
!B 		V1=CreateVariable("iges in parameters",WsSystemVars,"-p3")
!B 		V1=CreateVariable("iges out parameters",WsSystemVars,"-p3")
!B 		V1=CreateVariable("DNC tape storage dir",WsSystemVars,"/usr/weber/ST/tape")
!B		V1=CreateVariable("file editor",WsSystemVars,"\Program Files\Windows NT\Accessories\wordpad.exe")
!B

Stat=ChangeLabelStr("ScriptNameStatus","Function: user constants ")

DIM Answer$[256]
DIM Destination$[256]

! NOTE PARAMETER 1 CONTAINS THE DESTINATION FILE.
IF ARGC<2 THEN
        Destination$= "typecontrol"
ELSE
        Destination$= ARGV(1)
	PRINT Destination$
        IF LEN(Destination$)=0 THEN
                Destination$= "typecontrol"
        END IF
END IF

Units= CurrentUnits
Conversion=1
IF Units= WsMetric THEN Conversion= 25.4

! Place lines to execute below here.



! Do not type below this line.

Stat= ReadSettings("CadSettings",WsCadSettings)
LOAD Destination$
END
