#get board information
DO_INFO -t step -e $JOB/$STEP -d SR_LIMITS
DO_INFO -t step -e $JOB/$STEP -d PROF_LIMITS
DO_INFO -t step -e $JOB/$STEP -d SR
#Check if script not run in a step with SR
set board_x = `echo "scale=6;$gPROF_LIMITSxmax - $gSR_LIMITSxmax"|bc`
set board_y = `echo "scale=6;$gPROF_LIMITSymax - $gSR_LIMITSymax"|bc`
if ( $board_x == 0 || $board_y == 0 ) then
PAUSE The script should be run in STEP:panel...Exit now.
exit
endif
COM open_entity,job=$JOB,type=step,name=panel,iconic=no
AUX set_group,group=$COMANS
####Count inner layer and outer layer
set matrix_counter = 0
set layer_counter = 0
set signal_tol = 0
set silk_tol = 0
while ( $matrix_counter <= $#gROWcontext )
switch ($gROWcontext[$matrix_counter])
case empty:
case misc:
@ matrix_counter++
continue
case board:
if ( $gROWlayer_type[$matrix_counter] == "signal" || $gROWlayer_type[$matrix_counter] == "power_ground" ) then
@ signal_tol++
endif
if ( $gROWlayer_type[$matrix_counter] == "silkscreen" ) then
@ silk_tol++
endif
endsw
@ matrix_counter++
end
请教各位大虾:上面这写的是什么?怎样得到Borad的尺寸,SR指的是什么?
[此贴子已经被作者于2005-5-20 12:35:49编辑过] |