
! script name: ShapeCorp.d/plotpass
! topic: ShapeCorp - plot contour geometry associated with a pass

!A
!A NAME:
!A
!A 	plotpass
!A
!A DESCRIPTION:
!A
!A 	script for plotting geometry associated with a pass
!A
!B INSTRUCTIONS:
!B
!B
!C NOTE:
!C
!C
!# see also - htdocs/help.d/shape_help.htm

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

DIM Destination$[256]
DIM Answer$[256]
DIM Layerstr$[2560]

Start:!


Stat=SetInputFormat("n0","")
Part_num=GetValue("PASS NUMBER",Name$)
IF (ExitScript(Destination$)) THEN Leave

Layerstr$=""
For I=1 TO 10
	Layerstr$= Layerstr$&","&VAL$(Part_num*1000+100+I)&","
	Layerstr$= Layerstr$&","&VAL$(Part_num*1000+200+I)&","
NEXT I

Stat=SetPlotLayers(Layerstr$)
UpdatePlot
ResizeAll

Leave:!
Stat=SetInputFormat("n4","")

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