
! script name: plot.d/viewresolution
! topic: set resolution for viewing geometry

!A
!A NAME:
!A
!A 	View Resolution
!A
!A DESCRIPTION:
!A
!A 	This script will set the resolution for viewing geometry.
!A	This is an internal factor that is defaulted to be 100000
!A	for English units and 4000 for metric. This is the fine setting
!A	and is the HIGHEST these resolutions should be set. Each
!A	setting below that; high, medium, and low are set to the default
!A	divided by 10, 100, and 1000 respectively.
!A
!B INSTRUCTIONS:
!B
!B 	RESOLUTION Fine, High, Medium, Low: Select the desired resolution.
!B

stat=ChangeLabelStr("ScriptNameStatus","Function: view resolution ")

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

Units= CurrentUnits
View_factor= 1+24*(Units=WsMetric)

Stat=SetInputFormat("a1=",",Z,X,F,H,M,L,")
Stat=SetEqualsValue(0,"F")
Stat=GetValue("RESOLUTION Fine, High, Medium, Low ",Answer$)
IF ExitScript(Destination$) THEN Leave

SELECT Answer$
CASE "Z"
	Stat= ViewResolution(10000000/View_factor)
CASE "X"
	Stat= ViewResolution(1000000/View_factor)
CASE "F"
	Stat= ViewResolution(100000/View_factor)
CASE "H"
	Stat= ViewResolution(10000/View_factor)
CASE "M"
	Stat= ViewResolution(1000/View_factor)
CASE "L"
	Stat= ViewResolution(100/View_factor)
CASE ELSE
	Stat= ViewResolution(100000/View_factor)
END SELECT

UpdatePlot

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