
! script name: 3dcpaths.d/partgougeon
! 3dtopic: disables full gouge check on a part

!A
!A NAME:
!A
!A 	disables Full Gouge on a Part
!A
!A DESCRIPTION:
!A	
!A 	This script disables full gouge on a part in 
!A		relevant machining routines
!A
!B INSTRUCTIONS:
!B
!B 	PICK  SURFACE GROUP: Pick the surface group.
!B
!C NOTES:
!C	
!C	Only those surfaces which require full gouge should be turned on.
!C

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

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


DeActivateUndo
Pick_part:!
Stat=SetPickMask(WsPickSurfOnly)
Stat=SetInputFormat("n4","")
Part_group=PickGroupEnt("PICK SURFACE GROUP",WsSurfaceGroup)
IF ExitScript(Destination$) THEN Leave
IF NOT ValidGeometry(Part_group) THEN Pick_part
Stat=SetPickMask(WsPickGeometry)
Stat=Highlight(Part_group,WsPickPen,WsDirArrowOff)

Stat=SetFullGouge(Part_group,WsFalse)

GOTO Pick_part

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