
! script name: vnormals.d/surfedgesoff
! var_topic: turn off surface auto edge extension in 3d gouge

!A
!A NAME:
!A
!A 	Surface Edges Off
!A
!A DESCRIPTION:
!A	
!A 	This script turns off the auto extension of edges on a surface
!A 	in 3d gouge.
!A
!B INSTRUCTIONS:
!B
!B 	PICK SURFACE : Pick the edge curve on surface.
!B

stat=ChangeLabelStr("ScriptNameStatus","Function: surface auto edge extension off")

DIM Destination$[256]
DIM Answer$[256]
DIM Surface$[256]
DIM Name$[256]

Var_object= CheckVarObject
IF (ExitScript(Destination$)) THEN Leave


DeActivateUndo
Pick_surf:!
Stat= SetPickMask(WsPickSurfOnly)
stat= SetInputFormat("n0","")
Surface=PickEntity("PICK SURFACE ",Answer$)
IF (ExitScript(Destination$)) THEN Leave
IF NOT ValidDependency(Surface) THEN Pick_surf
Stat= EntityNameCheck(Surface,Surface$)
Stat= SetPickMask(WsPickAll)

RecordFunctionOn
Stat= RecordDescr("EDGE EXT: Off")
stat= UnSetEdgeExt(Surface$,0)
RecordFunctionOff
CloseVarRecord


GOTO Pick_surf

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