
! script name: interrogate.d/layerlist
! topic: list layers and entity count

!A
!A NAME:
!A
!A 	Layer List
!A
!A DESCRIPTION:
!A
!A 	This script will list all layers used
!A 	and give the entity count for each layer.
!A
!B INSTRUCTIONS:
!B
!B	No user input required. 	
!B

stat=ChangeLabelStr("ScriptNameStatus","Function: layerlist ")

DIM Destination$[256]
DIM File$[256]
DIM Title$[256]

File$= "tempdata"
Stat= RemoveFile(File$)

stat= ListLayers(File$)

Title$= "LAYERS USED"
Stat=MessageFileBox(File$,Title$)

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