
! script name: plot.d/iges402form7
! topic: Sample - plot geometry associated with a iges 402 form 7 data property

!A
!A NAME:
!A
!A 	Plot Iges Planar Data
!A
!A DESCRIPTION:
!A
!A 	plot geometry associated with a iges 402 form 7 data property
!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: plot iges 402 form 7 data ")

DIM Destination$[256]
DIM Answer$[256]
DIM Namelist$[32000]


ASSOC_DATA= 36 ! WsIgesAssocForm7


Start:!
Stat= UserDataNames(ASSOC_DATA,Namelist$)
IF NOT LEN(Namelist$) THEN Leave
Stat= GeneralListBox("ASSOCIATIVITY ","selected ",Namelist$)

Stat=SetInputFormat("a99","")
E1=PickEntity("INPUT ASSOCIATIVITY NAME",Answer$)
IF ExitScript(Destination$) OR Answer$= "CANCEL" THEN Leave

IF ValidGeometry(E1) THEN
        data1=GetAssocEnt(E1,ASSOC_DATA)
ELSE
	data1=FindUserData(Answer$,ASSOC_DATA)
END IF
IF NOT ValidGeometry(data1) THEN Start
ClearAll
Stat=PlotAssocEnt(data1,ASSOC_DATA)

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