1*-----------------------------------------------------------------------
2      SUBROUTINE SGPLXV(N,VPX,VPY,ITYPE,INDEX,ICOLOR)
3
4      REAL      VPX(*),VPY(*)
5      LOGICAL LFCATR
6
7      CALL SWQFCC(LFCATR)
8      IF(.NOT.LFCATR) THEN
9        CALL MSGDMP('M','SGPLXV','FULL COLOR MODE IS NOT SUPPORTED.')
10      END IF
11
12      IF (N.LT.2) THEN
13        CALL MSGDMP('E','SGPLXV','NUMBER OF POINTS IS LESS THAN 2.')
14      END IF
15      IF (ITYPE.EQ.0) THEN
16        CALL MSGDMP('M','SGPLXV','LINETYPE IS 0 / DO NOTHING.')
17        RETURN
18      END IF
19      IF (INDEX.EQ.0) THEN
20        CALL MSGDMP('M','SGPLXV','POLYLINE INDEX IS 0 / DO NOTHING.')
21        RETURN
22      END IF
23      IF (INDEX.LT.0) THEN
24        CALL MSGDMP('E','SGPLXV','POLYLINE INDEX IS LESS THAN 0.')
25      END IF
26
27      CALL SWSFCM(.TRUE.)
28      CALL SWSLCL(ICOLOR)
29
30      CALL SZPLOP(ITYPE,INDEX)
31      CALL SZPLZV(N,VPX,VPY)
32      CALL SZPLCL
33
34      CALL SWSFCM(.FALSE.)
35
36      END
37