
! script name: ShapeCorp.d/plotpart
! topic: ShapeCorp - plot geometry associated with a part

!A
!A NAME:
!A
!A 	plotpart
!A
!A DESCRIPTION:
!A
!A 	script for plotting geometry associated with a part
!A
!B INSTRUCTIONS:
!B
!B
!C NOTE:
!C
!C

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

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

Start:!


Stat=SetInputFormat("n0","")
Part_num=GetValue("PART 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
