
! script name: boundarys.d/boundarynames

!A
!A NAME:
!A
!A 	LIST BOUNDARY NAMES
!A
!A DESCRIPTION:
!A
!A 	This script lists boundary names.
!A
!B INSTRUCTIONS:
!B
!B 	INPUT LIST NAME: The selection box with the available list of BOUNDARY
!B 		NAMES will automatically appear for a selection to be made.
!B

stat=ChangeLabelStr("ScriptNameStatus","Function: list boundary names ")

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

DeActivateUndo
Start:!

Stat=ListNames(WsBoundaryEnt,"BOUNDARY NAMES","selected boundary","")
IF Stat=1 THEN Leave

Stat=SetInputFormat("a99","")
Stat=GetValue("INPUT LIST NAME",Answer$)
IF (ExitScript(Destination$)) THEN Leave
IF Answer$="CANCEL" THEN Leave
Name$=Answer$

Bound1=FindNamedBdy(Name$)

IF (NOT ValidGeometry(Bound1)) THEN Start

GOTO Start


Leave:!

LowerSelectBox

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