
! script name: 3dcpaths.d/surfgougeon
! 3dtopic: enables full gouge check on surface.

!A
!A NAME:
!A
!A 	Enables Full Gouge on Surface
!A
!A DESCRIPTION:
!A	
!A 	This script enables full gouge on this surface in 
!A		relevant machining routines
!A
!B INSTRUCTIONS:
!B
!B 	PICK  SURFACE: Pick the surface.
!B
!C NOTES:
!C	
!C	Only those surfaces which require full gouge should be turned on.
!C

Stat=ChangeLabelStr("ScriptNameStatus","Function: full gouge on")

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


DeActivateUndo
Pick_surface:!
Stat=SetPickMask(WsPickSurfOnly)
Stat=SetInputFormat("n0","")
Surface=PickEntity("PICK SURFACE ",Answer$)
IF ExitScript(Destination$) THEN Leave
IF NOT ValidGeometry(Surface) THEN Pick_surface

Stat=SetPickMask(WsPickGeometry)

Stat=SetFullGouge(Surface,WsTrue)

GOTO Pick_surface

Leave:!
Stat=SetPickMask(WsPickGeometry)
Stat=SetInputFormat("n4","")
IF NOT LEN(Destination$) THEN
	LOAD "typecontrol"
ELSE
	LOAD Destination$
END IF
END
