! script name: contrib/ascript/tsm.d/highlight
! topic: highlight contour or group
! Version_270423.a

!A
!A NAME:
!A
!A      Highlight
!A
!A DESCRIPTION:
!A
!A      This script allows a contour or group to be highlighted.
!A      The highlighting of a contour includes direction arrows.
!A
!B INSTRUCTIONS:
!B
!B      PICK ELEMENT TO BE HIGHLIGHTED: Pick an element of the
!B              contour or group to be highlighted.
!B

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

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


Ploop:!
E1=PickEntity("PICK ELEMENT TO BE HIGHLIGHTED")
IF (ExitScript(Destination$)) THEN Leave

Stat=Highlight(E1,WsHighlightPen,WsDirArrowOn)

GOTO Ploop

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