
! script name: interrogate.d/componentlist
! topic: list components and entity count

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

stat=ChangeLabelStr("ScriptNameStatus","Function: component list ")

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

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

stat= ListComponents(File$)

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


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