
! script name: interrogate.d/colorlist
! topic: list colors and entity count

!A
!A NAME:
!A
!A 	Color List
!A
!A DESCRIPTION:
!A
!A 	This script will list all colors used
!A 	and give the entity count for each color.
!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= ListColors(File$)

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

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