
! script name: plot.d/plotpart
! topic: Sample - 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 	NO HELP AVAILABLE AT THIS TIME
!B
!C NOTE:
!C
!C 	This is an unsupported sample script.
!C

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

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

Start:!

Stat=UserSelectBox("PARTS","selected part",WsPart,WsUserSelect)
IF Stat=1 THEN Leave

Stat=SetInputFormat("a99","")
Stat=GetValue("INPUT PART NAME",Name$)
IF (ExitScript(Destination$)) THEN Leave

Part=FindUserData(Name$,WsPart)

Stat=SetPlotLayers("")
Stat=SetPlotColors("")

Stat=PlotAssocEnt(Part,10001)

Leave:!

LowerSelectBox


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