
! script name: draft.d/moveruler
! topic: move ruler

!A
!A NAME:
!A
!A 	Move Ruler
!A
!A DESCRIPTION:
!A
!A 	This script allows the ruler to be moved.
!A
!B INSTRUCTIONS:
!B
!B 	RULER CENTER ABS X,Y,Z: Enter the X,Y,Z coordinates of
!B 		the location for the new center point of the ruler.
!B
!# see also - points.d/xyzinput.hlp

stat=ChangeLabelStr("ScriptNameStatus","Function: move ruler ")

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


Ruler_loop:!


Stat=SetInputFormat("n4=","")
Pc=XyzInput("RULER CENTER",WsXyzInput)
IF (ExitScript(Destination$)) THEN Leave

stat=RulerCenter(Pc)
Stat=DeleteEntity(Pc)
stat= RulerToggle(1)

GOTO Ruler_loop


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