
! script name: vzplanes.d/stdworkplane
! var_topic: standard workplane

!A
!A NAME:
!A
!A 	Standard Workplane	VARIATIONAL
!A
!A DESCRIPTION:
!A
!A 	This script allows the workplane to be defined as the standard
!A 	workplane, which is the XY workplane with Z=0.
!A

stat=ChangeLabelStr("ScriptNameStatus","Function: standard workplane ")

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

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

DeActivateUndo
RecordFunctionOn
Stat= RecordDescr("WORKPLANE: Standard")
Stat= SetWorkplane
RecordFunctionOff
CloseVarRecord
IF IsRulerOn THEN PlotAll

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

