
! script name: pkgroups.d/pkholegrpdata
! solids: list data in a solid hole feature group

!A
!A NAME:
!A
!A 	Solid Hole feature Data
!A
!A DESCRIPTION:
!A
!A	This script will list the data in a parasolid group which
!A	has been identified as a hole feature. In addition if a
!A	cylindrical or conical face is selected which is not in
!A	a parasolid group, its data will also be listed.
!A
!B INSTRUCTIONS:
!B
!B	PICK ENTITY IN HOLE: Pick an entity in the hole.
!B
!C NOTES:
!C
!C      To use this script the Hole must have been identified as a
!C      hole feature in the solid model. A hole feature in the solid
!C      model is a parasolid group of faces making up the hole
!C      along with a parasolids attribute which identifies the
!C      group as a hole feature.
!C
!# see also - htdocs/help.d/pkholes.htm
!# see also - htdocs/help.d/pkgroups.htm
!# see also - htdocs/help.d/parasolids.htm

Stat=ChangeLabelStr("ScriptNameStatus","Function: solid hole feature data")

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

ActivateUndo

Stat= GLPlotOn
Start:!
E1=WPKPickEntity("PICK ENTITY IN HOLE")
IF (ExitScript(Destination$)) THEN Leave
IF NOT WPKIsEntity(E1) THEN Start

Pkgroup= WPKContainingGroup(E1,1,WsTrue)
IF NOT WPKIsEntity(Pkgroup) THEN Pkgroup=E1
Stat= WPKHighlightEntity(Pkgroup)

Stat= WPKHoleGroupData(Pkgroup,"HOLE FEATURE DATA")
GOTO Start

Leave:!
Stat=SetInputFormat("n4","")
IF NOT LEN(Destination$) THEN
	LOAD "typecontrol"
ELSE
	LOAD Destination$
END IF
END
