
! script name: delete.d/deltoolimages
! topic: delete tool images

!A
!A NAME:
!A
!A 	Delete Tool Images
!A
!A DESCRIPTION:
!A
!A 	This script will delete tool images.
!A

stat=ChangeLabelStr("ScriptNameStatus","Function: delete tool images ")

DIM Answer$[256],Destination$[256]

DeActivateUndo
Hold_layer= 9001
Group_layer=GrpByLayer(Hold_layer)
IF NOT ValidGeometry(Group_layer) THEN Leave

Stat=UnLink(Group_layer)
Stat=DeleteGroup(Group_layer,1)
TransformCleanUp

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