#!/bin/csh -x
# this script is used to run sync note with the messenger
#
if ( -f $argv[1] ) then
	source $argv[1]
else
	PAUSE "file doesn't exist $argv[1]"
	exit 0
endif

COM open_job,job=$job
COM open_entity,job=$job,type=step,name=$step,iconic=no
AUX set_group,group=$COMANS

COM get_units
set cur_units = $COMANS

COM units,type=inch
COM zoom_area,x1=$x1,y1=$y1,x2=$x2,y2=$y2
COM units,type=$cur_units

if ($negative == true) then
	COM negative_data,mode=dim
else
	COM negative_data,mode=clear
endif

if ($width == true) then
	COM display_width,mode=on
else
	COM display_width,mode=outline
endif

if ($sr == true) then
	COM display_sr,display=yes
else
	COM display_sr,display=no
endif

if ($profile == true) then
	COM display_profile,display=yes
else
	COM display_profile,display=no
endif



if ( $#layers > 4 ) then
	COM multi_layer_disp,mode=many,show_board=no	
endif

@ loop = 1
foreach layer ($layers)
	COM display_layer,name=$layer,display=yes,number=$loop
	@ loop++
end
