
! script name: zplanes.d/stdworkplane
! topic: standard workplane

!A
!A NAME:
!A
!A 	Standard Workplane
!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]

StdWorkplane

IF IsRulerOn THEN PlotAll

WplaneEnt= FindNamedVar("current work area",123456)
IF ValidGeometry(WplaneEnt) THEN Stat= DeleteEntity(WplaneEnt)

Leave:!
LOAD "typecontrol"
END
