
! script name: delete.d/delsurfaces
! topic: delete all surface entities

!A
!A NAME:
!A
!A 	Delete All Surface Entities
!A
!A DESCRIPTION:
!A
!A 	This script will all surface entities.
!A
!B INSTRUCTIONS:
!B
!B 	DO YOU WANT TO DELETE ALL SURFACES? Yes or No:
!B
!B 		Y - Enter Y to delete all surfaces.
!B 		N - Enter N to leave this script.
!B

stat=ChangeLabelStr("ScriptNameStatus","Function: delete all surfaces ")

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

DeActivateUndo
Stat=SetInputFormat("a1=",",Y,N,")
Stat=SetEqualsValue(0,"Y")
Stat=GetValue("DO YOU WANT TO DELETE ALL SURFACES?  Yes or No",Answer$)
IF (ExitScript(Destination$)) THEN Leave

IF Answer$="Y" THEN
	DeleteAllSurfaces
	PlotAll
END IF

Leave:!
IF (NOT LEN(Destination$)) THEN
	 LOAD "typecontrol"
ELSE
	 LOAD Destination$
END IF
END
