
! script name: v3dcpaths.d/surfgougeon
! var_topic: enables full gouge check on surface.

!A
!A NAME:
!A
!A 	Enables Full Gouge on Surface VARIATIONAL
!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]
DIM Surface$[256]

Var_object= CheckVarObject
IF (ExitScript(Destination$)) THEN Leave


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

RecordFunctionOn
Stat= RecordDescr("PROPERTY: Set Surface Full Gouge Check Switch")
Stat= NullReference(Surface$)
Stat=SetFullGouge(Surface$,WsTrue)
RecordFunctionOff
CloseVarRecord

GOTO Pick_surface

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