
! script name: vdelete.d/unlinkallobj
! var_topic: unlink all variational objects

!A
!A NAME:
!A
!A 	UNLINK ALL VARIATIONAL OBJECTS
!A
!A DESCRIPTION:
!A	
!A 	Unlinks all variational objects. Leaving behind the geometry created.
!A
!B INSTRUCTIONS:
!B
!B 	UNLINK ALL OBJECTS ? Yes or No:
!B
!B 		Y - This will unlink all the objects.
!B 		N - This will cancel the unlink process. 
!B

Stat=ChangeLabelStr("ScriptNameStatus","Function: unlink all variational objects")

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


DeActivateUndo
Start:!

Stat=SetInputFormat("a1",",Y,N,")
Stat=GetValue("UNLINK ALL OBJECTS ? Yes or No",Answer$)
IF ExitScript(Destination$) THEN Leave
IF Answer$="N" THEN Leave

Stat=UnlinkAllObjects
Stat= RemoveDupUserProps
Stat= DelAllStrategyVars(WsFalse)


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