
! script name: nurbs.d/explodenurbpts
! topic: Sample - convert all nurbs to cubic splines

!A
!A NAME:
!A
!A 	Explode Nurb Points
!A
!A DESCRIPTION:
!A
!A 	This script explodes nurb curve and surface control points.
!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: explode nurb points ")

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


ActivateUndo
Pick_loop:!

E1=PickEntity("PICK ELEMENT TO BE EXPLODED")
IF (ExitScript(Destination$)) THEN Leave

G1= ExplodeNurbPoints(E1)
ActivateUndo
Stat= AdvanceUndoNumber("points")
Stat= AddGroupToUndo(WsUBCreateMode,G1,1,WsFalse)

GOTO Pick_loop


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