
! script name: pksoliddraft.d/pkremovehatch
! solids: remove parametric hatch attributes

!A
!A NAME:
!A
!A 	Remove Face Hatch
!A
!A DESCRIPTION:
!A
!A 	This script will remove parametric hatch attributes.
!A
!# see also - htdocs/help.d/parasolids.htm

stat=ChangeLabelStr("ScriptNameStatus","Function: remove param hatch ")

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

ActivateUndo

Face_loop:!
Stat=SetInputFormat("n4","")
E1=WPKPickEntity("PICK FACE ",WsPKPickFace,Answer$)
IF (ExitScript(Destination$)) THEN Leave
IF NOT WPKIsEntity(E1) THEN Face_loop


Stat= WPKSetParamHatch(E1)
Stat= WPKSetPlanarHatch(E1)

ActivateUndo
Stat= AdvanceUndoNumber("remove parameter hatch")
Stat= AddItemToUndo(WsUBPKSessionMark)
RefineAll

GOTO Face_loop

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