
! script name: pkgroups.d/pkshowallSEprop
! solids: show all solid edge properties

!A
!A NAME:
!A
!A	Show All Solid Edge Properties
!A
!A DESCRIPTION:
!A
!A	This script establishes a viewing mode where all faces having
!A	solid edge user properties attached are shaded while the rest
!A	of the body is displayed in wireframe mode.
!A
!B NOTE:
!B
!B      Solid edge user properties are attached by Solid Edge. The
!B      solid model must have been imported from Solid Edge.
!B
!# see also - htdocs/help.d/parasolids.htm

stat=ChangeLabelStr("ScriptNameStatus","Function: show all solid edge property ")

DIM Destination$[256]
DIM Answer$[256]
DIM Name$[256]
DIM Namelist$[32000]
DIM Namelist1$[32000]
DIM D_label$[512]
DIM Choice$[512]
DIM Mask$[32]

ActivateUndo


Start:!
Pkbody= WPKCurrentBody
IF NOT WPKIsEntity(Pkbody) THEN
        Stat=SetInputFormat("n4","")
        E1=WPKPickEntity("PICK BODY")
        IF (ExitScript(Destination$)) THEN Leave
        IF NOT WPKIsEntity(E1) THEN Start
        Pkbody= WPKParentBody(E1)
END IF

Select_prop:!
Namelist1$= WPKSEPropNamesStr(",")
Stat= AlphabeticalOrder(Namelist1$,",",WsAscending,Namelist$)

WPKClearErrorFlag
Stat= GLPlotOn(0)
Stat= WPKShowBySEList(Pkbody,Namelist1$)

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