
! script name: delete.d/deletefill
! topic: delete area fill and associated boundary

!A
!A NAME:
!A
!A 	Delete Area Fill 
!A
!A DESCRIPTION:
!A
!A 	This script deletes an area fill and associated boundary.
!A
!B INSTRUCTIONS:
!B
!B 	PICK POINT INSIDE AREA: Pick a point inside the filled area to be
!B 		deleted.
!B
!B

stat=ChangeLabelStr("ScriptNameStatus","Function: delete area fill ")

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

DeActivateUndo

Start:!
Stat=SetInputFormat("n4=","")
Pt= InputFreePoint("PICK POINT INSIDE AREA")
IF (ExitScript(Destination$)) THEN Leave

Bound1= FindBoundary(Pt)
Stat= DeleteEntity(Pt)
IF (NOT ValidGeometry(Bound1)) THEN Start

stat= DeleteEntity(Bound1)
PlotAll
GOTO Start


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

