
! script name: v3dcpaths.d/partgougeon
! var_topic: enables full gouge check on a part

!A
!A NAME:
!A
!A 	Enables Full Gouge on a Part VARIATIONAL
!A
!A DESCRIPTION:
!A	
!A 	This script enables 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 on")

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


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

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

GOTO Pick_part

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