
! script name: solids.d/transrevcont
! 3dtopic: explodes the contour in a revolution or translation.

!A
!A NAME:
!A
!A 	Revolution contour
!A
!A DESCRIPTION:
!A
!A 	This script will explode the contour in a revolution or translation.
!A
!B INSTRUCTIONS:
!B
!B 	PICK REVOLUTION: Pick the revolution.
!B

Stat=ChangeLabelStr("ScriptNameStatus","Function: trans rev contour ")

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

ActivateUndo
Sloop:!
S1=PickEntity("PICK SURFACE")
IF ExitScript(Destination$) THEN Leave
IF NOT ValidGeometry(S1) THEN Sloop

Contour= TransRevContour(S1)

ActivateUndo
Stat= AdvanceUndoNumber("contour")
Stat= AddGroupToUndo(WsUBCreateMode,Contour,1,WsTrue)
GOTO Sloop

Leave:!

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