
! script name: gears.d/gearstartup
! topic: startup script for gears

!A
!A NAME:
!A
!A      GEAR CURVE STARTUP SCRIPT
!A
!A DESCRIPTION:
!A
!A	This script is the startup script for describing gear curves.  
!A	See the extended help file below for more information.
!A     
!A    
!A
!A~ image location - images/gearcurve.jpg
!# see also - htdocs/help.d/gearinfo.htm

Stat=ChangeLabelStr("ScriptNameStatus","gear startup")

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

WsGearVars=97531

Vradtop=FindNamedVar("radial tooth top",WsGearVars)
IF ValidGeometry(Vradtop) THEN
    LOAD "gears.d/gearcontrol"
END IF

Gear1=CreateVariable("gear contour number",WsGearVars,1.0)
Gear2=CreateVariable("x center of gear",WsGearVars,0.0)
Gear3=CreateVariable("y center of gear",WsGearVars,0.0)
! radial tooth top: 1 - radial    0 - flat
Gear4=CreateVariable("radial tooth top",WsGearVars,1.0)
Gear5=CreateVariable("tooth top blend radius",WsGearVars,0.05)
! radial tooth bottom: 1 - radial    0 - flat
Gear6=CreateVariable("radial tooth bottom",WsGearVars,1.0)
Gear7=CreateVariable("tooth bottom blend radius",WsGearVars,0.05)
Gear8=CreateVariable("involute tolerance",WsGearVars,0.0001)
Gear9=CreateVariable("shrinkage per inch",WsGearVars,0.0)
! full gear: 1 - full    0 - one tooth
Gear10=CreateVariable("full gear",WsGearVars,1.0)

Leave: !
IF NOT LEN(Destination$) THEN
	LOAD "gears.d/gearcontrol"
ELSE
	 LOAD Destination$
END IF
END
