文档库 最新最全的文档下载
当前位置:文档库 › slot_hits 取得钻孔撞击次数的数量给table中槽孔

slot_hits 取得钻孔撞击次数的数量给table中槽孔

slot_hits 取得钻孔撞击次数的数量给table中槽孔
slot_hits 取得钻孔撞击次数的数量给table中槽孔

Genesis2000 Hooks Training $GENESIS_DIR/sys/hooks Richard Yu GENESIS2000 System Hooks 1 1. acquire Description This hook is activated when the File > Acquire command is activated at the Engineering Toolkit window. It is used to import jobs from the STAR 1000 system. See Also The Engineering Toolkit (Doc.0102) Acquire : 从Star1000的资料库系统中将料号取回的资料库系统中将料号取回, 的资料库系统中将料号取回并回存到genesis2000的资料库上的资料库上并回存到GENESIS2000 System Hooks 2 2. area_pixmaps Description This hook is a directory which contains bitmap files. When a user attaches the attribute .area_name= to a surface feature, the surface will be displayed stippled according to the bitmap file by that name. See Also Area_pixmaps : 这是一个目录, $GENESIS_DIR/sys/hooks/area_pixmaps, 内含bitmap 档, ====================================================================== == #define yux_width 100 #define yux_height 40 static unsigned char yux_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x03, 0x04, 0x00, 0x00, …………… GENESIS2000 System Hooks 3 Bitmap 档的格式, 可由三种方式来制作1. 在Windows Nt 或2000. /bin/xpaint.exe 只要在存档时, 将档案存成.xbm 或.xpm 的格式即可. 2. 在Solaris unix 系统上. 执行/usr/dt/bin/sdtimage 中的snapshot 将萤幕存成.xpm ( 只适用GUI 显示) 3. 在Hp unix 系统上, 执行/opt/screencapture/bin/capture 存成.xbm ( 只适用GUI 显示) ( 2,3 必须使用转换程式代转) 若要使bitmap 生效, 并取代surface 的图形显示, 必须在surface 上, 加入一个, , , attribute .area_name = < name >.xbm , 或.xpm, < name > 表示/genesis/sys/hooks/area_pixmaps/< name >. xbm 或

c:/tmp/aaa1 source c:/tmp/aaa1 GENESIS2000 System Hooks 9 set line_1 = " $result_value[1] set line_2 = " $result_value[4] set line_3 = " $result_value[7] # Put window on screen. echo "WIN 200 200" >> $GUI_DA TA echo "FONT tbr14" >> $GUI_DATA echo "BG 222299" >> $GUI_DATA echo "FG 999999" >> $GUI_DATA $result_value[2] $result_value[5] $result_value[8] $result_value[3] " $result_value[6] " $result_value[9] " echo "LABEL Exposed Area Spreadsheet " >> $GUI_DATA echo "LABEL file_name : /genesis/sys/hooks/cprsheet " >> $GUI_DATA echo "LABEL 1 2 3" >> $GUI_DA TA " >> $GUI_DATA echo "TEXT name BOX1: echo "DTEXT name $line_1 " >> $GUI_DA TA " >> $GUI_DATA echo "TEXT name1 BOX2: echo "DTEXT name1 $line_2 " >> $GUI_DA TA " >> $GUI_DATA echo "TEXT name2 BOX3: echo "DTEXT name2 $line_3 " >> $GUI_DATA GENESIS2000 System Hooks 10 echo "END " >> $GUI_DATA /genesis/e72/all/gui $GUI_DATA \rm $GUI_DATA abort: exit ############################ END OF PROGRAM ##################### GENESIS2000 System Hooks 11 6. drill_size Description This hook is activated when entering finished drill sizes in the Drill Tools Manager. It is also activated for each tool when clicking 'Calc Drills' in this window. It is used to convert a finished hole size into a drilled hole size. See Also The Drill Tools manager (Doc.0404) Drill_size ( 若要若要$8, $9 有效请将configuration 的edt_hs_script 有效, set Panel_TH = "$1" ## 板厚set FHS = "$2" ## 标准径set TYPE_P = "$3" ## 孔型别set MIN_TOL = "$4" ## 公差(-) set MAX_TOL = "$5" ## 公差(+) set USER_PARAMS = "$6" ## User Parameter 字串set OUT_FILE = "$7" ## 输出档set TOOL_NUM = "$8" ## 孔号set DES = "$9" ## 钻孔指定字串GENESIS2000 System Hooks 设定为genesis ) 12 #!/bin/csh # Drill size determination script # Parameters: # # $1 - Panel thickness (mils) # $2 - Finished hole size (mils) # $3 - Drill type (PLATE,NPLATE,VIA) # $4 --tol # $5 -+tol # $6 - User parameters string # $7 - Output results pathname # $8 -Tool number # $9 - Drill designator string set echo set PTH set FHS set TYPE_P set MIN_TOL set MAX_TOL = "$1" = "$2" = "$3" = "$4" = "$5" /genesis/sys/hooks/drill_size /genesis/sys/hooks/drill_size.tab /genesis/sys/hooks/drill_size.awk /genesis/sys/hooks/drill_size.prm set USER_PARAMS = "$6" set OUT_FILE = "$7" GENESIS2000 System Hooks 13 echo $1 $2 $3 $4 $5 $6 >> c:/tmp_dir/ncd/drill_verbose if ($USER_PARAMS == "imm_au") then set ENLARGE = 4 else if ( $USER_PARAMS == "hasl") then if ( $TYPE_P == "VIA" ) then set ENLARGE = 4 else set ENLARGE = 6 endif else if ($USER_PARAMS == "reflow" ) then set ENLARGE = 8 else if ($USER_PARAMS == "entek" ) then set ENLARGE = 3 else if ($USER_PARAMS == "normal" ) then set ENLARGE = 1 endif # if drill type is NPLATE , enlarge 2 mil if( $TYPE_P == "PLATE" ) then set ENLARGE = 0 endif GENESIS2000 System Hooks 14 # if drill type is NPLATE , enlarge 2 mil if( $TYPE_P == "PLATE" ) then set ENLARGE = 0 endif if( $TYPE_P == "NPLATE" ) then set RESP = `echo "$FHS + 2" | bc -l ` else set RESP = `echo "scale = 1 ; $FHS + $ENLARGE + ($MAX_TOL - $MIN_TOL)/2" | bc -l` endif set RESP = ` cat $GENESIS_DIR/sys/hooks/drill_table | awk95 -v DRILL=$RESP -f \ $GENESIS_DIR/sys/hooks/drill_size.awk` echo $RESP exit 0 GENESIS2000 System Hooks 15 /genesis/sys/hooks/drill_size.prm ----------------------------------------------------------imm_au hasl reflow entek Normal 我们可以利用Design Rule check, 依照不同的需求在drill_size 的script 中加入其预涨值, 以利Drill Tool Manager选择不同的user_param的作业. 此时finish_size 不得为问号, 必须填入相近的数值, 再选择user_param即可依须求而变. 在drill_size.tab 中可以设定min hole size and max hole size. 若是属於Non_PTH, 可在NPLATE 处加入enlarge值. GENESIS2000 System Hooks 16 /genesis/sys/hooks/drill_size.tab

--------------------------------------------------------------# File Name: # File Purpose: # # Written by: Ian Ticehurst (Autom8 Ltd.) # Version 1A.: Date: 15.08.00 - Initial design and development. ############################# Start of notes ############################### 000.0 small 108000 13 1000 009.8 0.25 107000 14 1200 010.8 0.27 106000 14 1300 011.8 0.30 105000 15 1500 013.8 0.35 103000 15 1500 015.7 0.40 102000 16 2000 017.7 0.45 97000 16 2000 019.7 0.50 88000 18 2000 021.7 0.55 80000 18 2000 . GENESIS2000 System Hooks 17 drill_size.tab /genesis/sys/hooks/drill_table

---------------------------------------------------------------------------------# File Name: # File Purpose: # # Size in mils. for actual drill bit. Designator drill_table ################ End of notes ############## 000.0 small 009.8 0.25 010.8 0.27 011.8 0.30 013.8 0.35 015.7 0.40 017.7 0.45 019.7 0.50 021.7 0.55 023.6 0.60 025.6 0.65 027.6 0.70 029.5 0.75 . . GENESIS2000 System Hooks 18 7. ffilters Description This hook is actually a directory which contains a script and an ASCII file which define the User Filter in the Graphic Editor. This allows the user to define useful filters for quick selection. A full description is provided in the appropriate manual. See Also The Graphic Editor (Doc.0601) 选择features 的过虑器/genesis/sys/hooks/ffilters/names and script, GENESIS2000 System Hooks 19 pads All Pads Lines Surfaces Negative Features Smd Pads Gold Connectors Tear Drop N_electric Nomenclature Test Points Non Plated Holes Plated Holes Via holes G. Fiducials L. Fiducials Via Pads Toeprints Center Fiducial Req. Radial Fiducial Req. 20 /genesis/sys/hooks/ffilters/names Lines surfaces negative smds gold tear_drop nele nomenclature testpoints npth pth via_holes fiducials_g fiducials_l via_pads toeprints cen_fiducial rad_fiducial high_pitch High Pitch component/pads GENESIS2000 System Hooks /genesis/sys/hooks/ffilters/script # # The script recieves one parameter - filter name # COM filter_reset,filter_name=popup COM clear_highlight switch ($1) case 'pads' : COM filter_set,filter_name=popup,update_popup=yes,feat_types=pad breaksw case 'lines' : COM filter_set,filter_name=popup,update_popup=yes,feat_types=line breaksw case 'surfaces' : COM filter_set,filter_name=popup,update_popup=yes,feat_types=surface breaksw case 'negative' : COM filter_set,filter_name=popup,update_popup=yes,polarity=negative breaksw ………. . GENESIS2000 System Hooks 21 1 2 3 GENESIS2000 System Hooks 22 8.Hook Name: film_sizes File / Dir: File. Manual Ref: On-line manuals 0203 (chapter 9) and 0703 (chapter 3). Run Method: Read by the film optimisation package (creates film size menu). Hook Notes: This file is a simple parameter file which holds the film sizes available for plotting. The file is a fixed column format with the film name and the X and Y sizes. Note that in order to make changes to this file, Genesis must be restarted. /genesis/sys/hooks/film_sizes film-1, 18, 24 film-2, 21, 24 film-3, 21, 32 ( 这个档案是为film optimization 所用) GENESIS2000 System Hooks 23 Film Optimization: 1 2 GENESIS2000 System Hooks 24 4 1 2 5 3 GENESIS2000 System Hooks 25 9. imp Description May contain a hook written in C for calculating characteristic impedance imp/imp_lib.sl (HP) & imp/imp_lib.so (Sun) See Also The Impedance Simulator (Doc.0605) Impedance : 计算阻抗GENESIS2000 System Hooks 26 10.inc_274x (在input料号时,此档的巨集会被加到料号层别内) input料号时此档的巨集会被加到料号层别内) 料号时, Description This hook contains predefined aperture definitions for the RS-274X input translator. See Also Input Formats (Doc.0403) ( 放在/genesis/sys/hooks/inc_274x 目录) * %LPD* %%FSLAX24Y24* %%AMULN* 4,1,4,-0.070000,-0.045000,-0.050000,-0.045000,-0.050000,0.045000,-0.070000,0.045000,-0.0700 00,-0.045000,270.00000*

4,1,4,-0.145000,-0.045000,-0.125000,-0.045000,-0.125000,0.045000,-0.145000,0.045000,-0.1450 00,-0.045000,270.00000*

4,1,4,0.055000,-0.040000,0.070000,-0.040000,0.070000,0.040000,0.055000,0.040000,0.055000,-0.040000,270.00000*

4,1,4,0.070000,-0.010000,0.090000,-0.040000,0.105000,-0.040000,0.085000,-0.010000,0.070000 ,-0.010000,270.00000*

4,1,4,0.070000,-0.010000,0.105000,-0.010000,0.105000,0.005000,0.070000,0.005000,0.070000,-0.010000,270.00000*

4,1,4,0.105000,-0.010000,0.105000,0.040000,0.090000,0.040000,0.090000,-0.010000,0.105000,-0.010000,270.00000*

4,1,4,0.055000,0.040000,0.105000,0.040000,0.105000,0.025000,0.055000,0.025000,0.055000,0.0 40000,270.00000*

4,1,4,0.010000,-0.070000,0.150000,-0.070000,0.150000,-0.060000,0.010000,-0.060000,0.010000 ,-0.070000,270.00000*

4,1,4,0.150000,-0.070000,0.150000,0.070000,0.140000,0.070000,0.140000,-0.070000,0.150000,-0.070000,270.00000*

4,1,4,0.150000,0.070000,0.010000,0.070000,0.010000,0.060000,0.150000,0.060000,0.150000,0.0 70000,270.00000*

4,1,4,0.010000,-0.070000,0.010000,0.070000,0.000000,0.070000,0.000000,-0.070000,0.010000,-0.070000,270.00000* %%ADD10ULN* %%LNUNKNOWNA* %D10* X0Y0D3* M02* GENESIS2000 System Hooks 27 11.inp_user Description This hook is activated in the Input Package. It is activated when selecting the 'User action...' option in the M3 popup menu on one of the file. It can be used to preprocess a file before running the standard input. The hook is activated with 3 parameters: Job name, file name and format. See Also The Input Process (Doc.0401) /genesis/sys/hooks/inp_user #$1 -- job name #$2 -- file path name #$3 -- file format $1 $2 $3 GENESIS2000 System Hooks 28 GENESIS2000 System Hooks 29 /genesis/sys/hooks/inp_user ---------------------------------------------------------------------------#!c:/bin/csh #$1 -- job name $2 -- file path name $3 -- file format set GUI_DATA = $TMP/gui_data.$$ set GUI_RESP = $TMP/gui_resp.$$ echo "WIN 200 200" >> $GUI_DA TA echo "FONT tbr14" >> $GUI_DATA echo "BG 222299" >> $GUI_DA TA echo "FG 999999" >> $GUI_DATA echo "LABEL Genesis2000 Output " >> $GUI_DA TA echo "TEXT name File Format: echo "TEXT name1 File Path: echo "TEXT name2 Job name: echo "END " >> $GUI_DA TA " >> $GUI_DATA " >> $GUI_DATA " >> $GUI_DATA echo "DTEXT name $3" >> $GUI_DATA echo "DTEXT name1 $2" >> $GUI_DA TA echo "DTEXT name2 $1" >> $GUI_DATA gui $GUI_DATA \rm $GUI_DATA GENESIS2000 System Hooks 30 12.Hook Name: job.du File / Dir: File. Manual Ref: To be completed. Run Method: 在engineer toolkit 上, 选定一个料号,按滑鼠右键>Disk Usage. Hook Notes: To be completed. # job.du # ( 程式在/genesis/sys/hooks/job.du ) # Reports disk usage of a job # # Supported from Genesis v7.1 # Written by Ben Michelson # 21 Dec 1999 # set job_path = $1 set out_path = $2 echo Job name: $job_path:t > $out_path du -k $job_path | egrep $job_path'$|steps/[^/]*$' >> $out_path GENESIS2000 System Hooks 31 Reports disk usage of a job: 1.选料号后, 按滑鼠右键, 执行Disk Usage 1 3 2 4.显示kilo bytes. GENESIS2000 System Hooks 32 13.line_hooks ( 所有的所有的line mode command 可参考/genesis/e72/all/helps/line/….. 1. 写程式时常会用到与c-shell结合写程式时, 结合. 结合( 对判断语法.. else , 回圈while, foreach 等的判断语法if 基本了解) 基本了解 2.对

genesis2000的2.对genesis2000的line mode command 有所了解. 有所了解. 3.了解GUI 的使用了解的使用. ( 如何开启视窗画面与文字颜色的配置资料内容的显示) 如何开启视窗, 画面与文字颜色的配置,资料内容的显示 4. 了解档案引数的应用主副程式的呼叫了解档案引数的应用, 主副程式的呼叫. ) 必须先具备一些基本慨念如下: 写line_hooks的script, 必须先具备一些基本慨念如下的GENESIS2000 System Hooks 33 引数的处理: 引数的处理1. 2. 3. 4. $# 计算引数个数以检查所需的引数$1, $2 .. 引数的位置参数$* 引数串列抓最后一个引数( Windows Nt,2000 不支援) %lastarg a b c c 18. awk95 19. awk 20. nawk ( windows 2000 , nt ) ( Hp unix ) ( Solaris unix ) bc -l bc -l bc GENESIS2000 System Hooks 34 5. 6. 7. 8. 9. set k = ` echo " if ( 3.4 < 2 ) 1 " | bc ` # ( 判断( 3.4 < 2 ) , 非) echo $k Null echo $k ( 有回应) ( bc 运算不回应浮点运算) ( 没有回应) set k = ` echo " if ( 3.4 > 2 ) 1 " | bc ` # ( 判断( 3.4 > 2 ) , 是) 10. 1 12. echo $k 13. 1 11. set k = `echo " 3.4/2 " | bc ` 14. set k = `echo " 3.4/2 " | bc –l ` ( bc 运算回应浮点运算) 15. 1.700000000000000000000 16. set k = `echo "scale=6; 3.4/2 " | bc –l ` ( bc 运算回应浮点运算6位数) 17. 1.700000 GENESIS2000 System Hooks 35 13.line_hooks Description This is a directory that contains hooks to be used by any line mode command to other hooks. Each line mode command ('com'), can contain two hooks: 'com'.pre - to be performed before the command is executed. 'com'.post - to be performed after the command is executed. Each hook is activated with one parameter which is a path to a temporary file which should be sourced. After sourcing it, two variables are set: lnPARAM contains a list (array) of all the parameters of the command. lnV AL contains a list (array) of all the values of the parameters. By referencing lnPARAM[n] and lnV AL[n], the hook can act according to the parameters supplied for the command. See Also Line Mode Commands (Doc.0206) GENESIS2000 System Hooks 36 Note If the pre line_hooks fail, the system will not run the actual command. You must return a non-zero value from the script so that the delete_entity command fails: Example: delete_entity.pre: # GENESIS2000 System Hooks 37 Line mode command: 执行单行命令列的功能Line_hooks : ( 主要用途是在补Line mode command 的不足可以定义的不足, 执行前, 系统,在多做在line mode command执行前后时引导执行前后时, 引导genesis2000系统在多做系统一些符合我们需求的命令. 一些符合我们需求的命令[open_job].pre : 在执行开启料号的动作前时就执行此在执行开启料号的动作前时就执行此script. [open_job].post : 在执行开启料号的动作后才执行此在执行开启料号的动作后, 才执行此script. ps: 它必须是script record 可以记录下的可以记录下的line mode command. Script 1: ( 所有的所有的line mode command 说明在说明在/genesis/e72/all/helps/line 中档案/genesis/sys/hooks/line_hooks/check_inout.pre ---------------------------------------------------#!/bin/csh source $1 @ i = 1 while ( $i <= $#lnPARAM ) if ( $lnPARAM[$i] == "mode" ) then set MODE = $lnV AL[$i] else set MODE = "open" endif if ( $lnPARAM[$i] =="job" ) then set JOB = $lnV AL[$i] endif @ i++ end echo " get the job name from line_hooks check_inout.pre " /genesis/sys/script/check_file_status $MODE $JOB ( 呼叫副程式) GENESIS2000 System Hooks 38 所产生的暂时档案) 产生在/tmp/genesis186a6.334 ( genesis所产生的暂时档案所产生的暂时档案----------------------------------------------------------set lnPARAM = ('mode' set lnVAL = ('in' 'job' 'type' 'job' 'step' '' 'layer' 'symbol' 'stackup' 'matrix' 'wheel' 'form' '' '' '' '' '' '' '' '' 'flow' 'flow' '' 'template' 'font' ) 'path' ) '40805' '' ---------------------------------------------------------------------------------------- Script 2: 档案/genesis/sys/scripts/check_file_status ---------------------------------------------------#!/bin/csh if ( $1 == "in" ) then echo $2 is in check-in mode else if ( $1 == "out" ) then echo $2 is in check-out

mode else echo $2 is in open mode endif endif GENESIS2000 System Hooks 39 14.Hook Name: lp_prog File / Dir: File. Manual Ref: On-line manual 0203 (chapter 9). Run Method: Called whenever the Genesis system is requested to print something (either from a "print" menu option, or by "P". Hook Notes: 这个档案有两种运作模式, 当第一次执行时, 会检查lp_prog.config 是否存这个档案有两种运作模式当第一次执行时会检查若存在, 系统并不会搜寻网路并尝试找寻可用的列表机. 在, 若存在系统并不会搜寻网路并尝试找寻可用的列表机为了看列表机是否可用, 允许使用者测试列表机然后增加到列表机清单. 假如lp_prog.config 否可用允许使用者测试列表机然后增加到列表机清单假如档案存在, 此档会自动传递敢lp_prog当作参数当作参数. 档案存在此档会自动传递敢当作参数GENESIS2000 System Hooks 40 15.Hook Name: lp_prog.config File / Dir: File. Manual Ref: None. Run Method: Called by the lp_prog hook. Hook Notes: This file stores printer information which has been set-up the first time the lp_prog hook is run. This file is created when the lp_prog file is run for the first time and provides the lp_prog file with a list of all printers andthe default printer name. GENESIS2000 System Hooks 41 16.lyr_rule Description This hook is used by the application for assigning the layer is a header section that contains the following names during the input identification process. At the beginning of the file there parameters: tr name - job attribute names that are used as additional filters to the format and customer name Each entry in the file contains the following fields: format - format name or '*' for all formats up to 5 attribute values (according to the .atr declarations) regexp - regular expression for matching the input file names name - layer name that is based on the regular expression matching context - layer context (board, misc) type - layer type (signal, drill, rout,,,,,etc) polarity - layer polarity (positive, negative) side - top, bottom or none serial - layer's serial number (0 - don't care) See Also The Input Process (0401) GENESIS2000 System Hooks 42 Defining Layer Names with the lyr_rule File In some cases, the file names that represent the layers have a naming convention that can be used in the Job Matrix. The lyr_rule file is used to define the mapping between the original naming convention and the CAM naming convention. The file contains a set of regular expressions that are used for setting the following layer properties: Name Type Context Polarity Position in matrix The lyr_rule file is located in the following directory: $GENESIS_DIR/sys/hooks GENESIS2000 System Hooks 43 Defining Layer Names with the lyr_rule 在某些案例中,表示layers的名称有一个命名习惯(协定), 并可以在matrix中被直接使用. matrix中被直接使用在某些案例中,表示layers的名称有一个命名习惯(协定), 并可以在matrix中被直接使用. layers的名称有一个命名习惯通常定义规画介於原始命名习惯和Cam的命名习惯, Cam的命名习惯Lyr_rule 通常定义规画介於原始命名习惯和Cam的命名习惯,这个档案包含了一些一般性的习惯性的依照下列layer 特性设定的集合. 习惯性的依照下列layer特性设定的集合. layer特性设定的集合.Name .Type .Context ( layer 名称) ( layer 型态( signal, drill, rout … etc ) ( layer 前后关系) ( board, misc ) .Polarity ( layer 正, 负) .Position in matrix ( layer 在matrix 的位置) 这档案的主要部份包含几个登录(entries), 它是定义对映图介於客户的档名到它是定义对映图介於客户的档名到genesis系统的系统的layer参数这参数, 这档案的主要部份包含几个登录系统的参数是一个entry 对映的范例是一个gerber sony * * * *(.*[0-9]*l)dg ->smb board solder_mask positive bottom 0 gerber - is the format of the file. The system goes into this entry only if the input file is a Gerber file. ( sony , 表示gerber file 的来源自sony 公司) 可以依照已设定的规则, 自动设定layer的主要目的在让料号在input 到step 号, 可以依照已设定的规则自动设定的名称, 正负片, 等等. 名称Type , , 正负片等等GENESIS2000 System Hooks 44 # File Name: .atr .customer lyr_rule # Attribute Setting Section.

# Default Genesis Standard Names (Genesis Format). genesis * * * * * bd(0-9*)_(0-9*) ->bd\1-\2 board drill positive none 0 genesis * * * * * drill ->drill board drill positive none 0 genesis * * * * * pst_t ->pst_t board solder_paste positive top 0 genesis * * * * * pst_b ->pst_b board solder_paste positive bottom 0 GENESIS2000 System Hooks 45 genesis * * * * * silk_t ->silk_t board silk_screen positive top 0 genesis * * * * * silk_b ->silk_b board silk_screen positive bottom 0 genesis * * * * * mask_t ->mask_t board solder_mask positive top 0 genesis * * * * * mask_b ->mask_b board solder_mask positive bottom 0 genesis * * * * * top ->top board signal positive top 0 genesis * * * * * bot ->bot board signal positive bottom 0 GENESIS2000 System Hooks 46 genesis * * * * * pgp_([0-9]*) ->pgp-\1 board power_ground positive none \1 genesis * * * * * pgn_([0-9]*) ->pgn-\1 board power_ground negative none \1 genesis * * * * * sgp_([0-9]*) ->sig-\1 board signal positive none \1 genesis * * * * * sgn_([0-9]*) ->sig-\1 board signal negative none \1 genesis * * * * * mxp_([0-9]*) ->sig-\1 board mixed positive none \1 genesis * * * * * mxn_([0-9]*) ->sig-\1 board mixed negative none \1 GENESIS2000 System Hooks 47 #### Gerber files example. gerber * * * * * pst_b.ger ->pst_t board solder_paste positive top 0 gerber * * * * * pst_a.ger ->pst_b board solder_paste positive bottom 0 gerber * * * * * res_b.ger ->mask_t board solder_mask positive top 0 gerber * * * * * res_a.ger ->mask_b board solder_mask positive bottom 0 . . . GENESIS2000 System Hooks 48 Auto Drill Manager 相关档案/genesis/sys/hooks/ncd/ ../create_slot ../slot_hits ../create_nibble ../nibble_hits ../set_table ../out_fil e ( 此script自行判断drill属於slot,或nibble,或是在或是在nibble hole 自行判断属於或或是在上的孔很大时,必须加导引孔) 上的孔很大时必须加pilot hole(导引孔) 导引孔( 输出档案时, 透过一些条件的设定, 使输出档变成我们所要的) 输出档案时, 透过一些条件的设定, ../config/machines/hitachi 记住: 记住parameter 的format 最好必须为 3.5. slot { custom = yes overlap = 16 total_overlap = 2 } } } nibble { custom = yes val { min_size = 252 max_size = 999 num_holes = 32 ( 由使用者自行定义由使用者自行定义slot的script, 当costom =yes才有用) 的才有用( 由使用者自行定义扩孔的由使用者自行定义扩孔的script) GENESIS2000 System Hooks 49 18. Hook Name: ncd File / Dir: Directory. Manual Ref: On-line manual 0703 (chapters 4/5) and 0703 (appendix D). Run Method: See individual file comments later in this section. Hook Notes: This is a directory which contains the Auto Drill Manager files and directory. These items are used by the A.D.M. function to customize and configure the drill output files. 自动化钻孔制作程式的目录所在GENESIS2000 System Hooks 50 set_table set_table 是使用者编辑的script是被用在AutoDrill Manager自动更改NC table 的值. NC table 是被系统从钻孔层和资料被传送到set_table, 并透过c-shell script 中所包含的set 命令所产生, 给变数显示在table中的栏位. 这hook也接收当成input的路径GENESIS2000 System Hooks 51 ncLAYER ncSET ncMACHINE ncTHICKNESS ncSHAPE ncTYPE ncSIZE ncFLAG ncCOUNT ncPLUS_TOL ncMINUS_TOL ncDESIGNA TOR = (drill ) # = (11) # = (excellon2 ) # = (0 ) # = (slot hole hole hole hole ) # = (Plate Plate Plate Plate Plate) # = (10 16 20 30 32 ) # = (0 0 3 0 5 ) # = (10 39735 15 5 40 ) # = (0 0 0 0 0 ) # = (0 0 0 0 0 ) # = ("" "" "" "" "" ) # ncTOUCH_COPPER = (no no no no no ) # GENESIS2000 System Hooks 52 在程式里会看到如下的程式描述echo $COUNT $TOOL_SIZE n $MODE $SPIN $FEED $TYPE $D_STAGE sep $HITS $COUNT >> $out_file echo $COUNT $PILOT_SZE $PILOT $MODE $SPIN $FEED $TYPE $D_STAGE sep $HITS $COUNT >> $out_file 1. Original index in array (starting with 1) 2. Tool_size (mils) 3. Pilot indicator (y/n) 4. Mode - (regular, nibble, rout) 5. Speed - spindle speed 6. Feed_rate 7. Nibble_type (machine, sw) 8. Stage - drill stage (1,2,3) 9. Rout Mode (sep, same) 10.Maximum number of hits per bit 11.Designator - (if empty - .none)

12.Pilot Nibble Size 在阵列里的索引值钻孔大小有无导引孔模式转速深度扩孔的型态钻孔成型模式每个钻头最大碰撞次数指示导引孔, 导引孔扩孔大小GENESIS2000 System Hooks 53 20. Hook Name: out_file File / Dir: File. Run Method: Called by the A.D.M. function after the first phase (drill tools and machine settings) is completed. Activated by the action button in the middle of the A.D.M. flow. Hook Notes: This file is called during the ADM process. It is a c-shell script which can be configured to provide user and site specific modifications to the drill output files dependant on the different parameters allocated to each tool (type, size, hole/slot etc.) and also the machine file being used. This file can control the following parts of the output files, although it should be noted that this is controlled by the machine file selected (see section below):1. The header. 2. The end of file. 3. The tool changes. 4. The tool finish. 5. The step and repeat start. 6. The step and repeat finish. GENESIS2000 System Hooks 54 ncLAYER = (drill) # which layer ncSET = (1) ncMACHINE = (excellon2 ) # drill machine name ncNUM_STAGES (2) ncNUM_SPLITS (1) ncSTAGE = (2) # stage number ncSPLIT = (1) # split number ncFORMAT = (Excellon2) # drill file output format ncINCREMENTAL = (no) # incremental output (yes/no) ncREPETITIONS = (sr) # repetitions type (sr/subroutine) ncZEROES = (trailing) # zeroes setting ncUNITS = (inch) # layer units ncTOOL_UNITS = (inch) # drill units ncNF = (2.4) # numbering format GENESIS2000 System Hooks 55 ncHEADER_PATH = ("") # ncEOF_PATH = (/genesis/tmp/gen.1471 ) # file path ncTOOL_NUM = (1 2 3 ) # number of tools ncTOOL_SIZE = (35.354 74 94 ) # tool sizes (mil/microns) ncTOOL_SIZE2 = (.035 .074 .094 ) # tool sizes (inch/mm) ncTOOL_MAX_HITS = (5000 500 500 ) # maximum number of drills per tool ncTOOL_HITS = (134 14 12 ) # actual number of drills ncTOOL_SPEED = (300 300 300 ) # tool speed (rpm) ncTOOL_FEED = (85 85 85 ) # ncTOOL_NIBBLE = (no yes no ) # nibble setting ncTOOL_SLOT = (yes no no ) # slot setting ncTOOL_CHANGE = ("" "" "" ) # ncTOOL_FINISH = ("" "" "" ) # ncSR_NAME # step name GENESIS2000 System Hooks 56 ncSERIAL # order of output ncSR_DX, ncSR_DY # offset ncSR_ANGLE # rotation (0, 90, 180 or 270) ncSR_MIRROR # mirror (0 = no mirror, 1 = mirror) ncFULL # full sequence drill (0=No, 1=Yes) ncFULL_STEP=(c1 c2 ) #c1, c2 each refer to the name of # step, where the strings in the next # two variables below will be inserted # at beginning & end of steps in # output file (once only). For # example, in step c1, the strings # c1_string1 at the beginning and # c1_string2 at the end of step. # Similarly with step c2. ncFULL_SR_START = (c1_string1 c2_string1) ncFULL_SR_END = (c1_string2 c2_string2) GENESIS2000 System Hooks 57 21. Create_slot 建立依据钻孔table来定做的槽孔, 和执行输出, 这hook取得下列参数: $1 : 输出档案的路径名称. $2 : machine 名称$3 : 槽孔的直径mil / micron $4 : 槽孔的长度mil / mm $5 : stack 厚度$6 : 钻孔层别输出档案应包含孔的座标, 假设槽孔的起点是从(0,0) 开始, 并以水平正的方向. 每行应包含单一的x,y轴座标. 例如: 1.234 0 2.500 0 系统也要求在某个方向的裂口, 依照槽孔的位置及角度来执行变化. mil / micron GENESIS2000 System Hooks 58 # Script # # # # # # # # # # # set out_file = $1 set diam set len = $3 = $4 : create_slot It receives as input the following parameters : $1 - output filename $2 - machine name $3 - slot diameter (mils/microns) $4 - length (in inches/mm) $5 - thickness (mils/microns) $6 - layer name The script should place the x,y coordinates of the slot hits in the output file. The system assumes that the slot starts at (0,0) and goes to the right (horizontal). # Description : The script is used for creating customized slots. GENESIS2000 System Hooks 59 set mid_pt = `echo "scale=6; $len / 2" | bc -l` set full_point = `echo "scale=6; $len / 0.01" | bc -l ` set x_point = ` echo "$full_point / 1"| bc ` set compensate = `echo "scale=6; ($len*2) / $diam " | bc -l ` echo $compensate >

c:/tmp_dir/ncd/compensate echo $diam > c:/tmp_dir/ncd/diam echo $len > c:/tmp_dir/ncd/len echo 0 0 set i = 1 > $out_file ## here is the location of the first point ## here is the rest location you have to add it your self GENESIS2000 System Hooks 60 while ( 1 ) set cal_point = `echo "scale=6; $i * 0.01" | bc -l ` echo $cal_point 0 >> $out_file set i = `echo "$i + 1" | bc ` if ( $x_point == "0" ) then exit 0 endif if ( $i == $x_point ) then echo $len $compensate >> $out_file exit 0 endif end ## here is the location of the end point GENESIS2000 System Hooks 61 22. Create_nibble 建立依据钻孔table来定做的扩孔, 和执行输出, 这hook取得下列参数: $1 : 输出档案的路径名称. $2 : machine 名称$3 : 孔的直径mil / micron $4 : 钻头的大小mil / mm $5 : 厚度mil / micron $6 : 钻孔层别输出档案应包含每行一对用inches/mm座标, 给建构出nibble的孔, 这扩孔的中心点是在(0,0), 在输出档中的所有的其它座标与中心点有关. 例如: 2.3 1.2 0 5.6 GENESIS2000 System Hooks 62 # File Name: # # create_nibble be nibble drilled. It is a c-shell script which is used to calculate a sequence of X/Y co-ordinates which will drill out the hole. # File Purpose: This file is called during the ADM process when a hole needs to ############################### # 1. $1 - output filename # 2. $2 - machine name # 3. $3 - hole diameter (mils/microns) # 4. $4 - tool size used (in inches/mm) # 5. $5 - thickness (mils/microns) # 6. $6 - layer name ################### End of notes ################ # Set sensible names to parameters. set OUT_FILE = $1 set MACHINE = $2 set HOLE_DIAM = $3 set TOOL_SZE = $4 set THICK = $5 set DRL_LAY = $6 # Output single drill point at hole centre. #echo "0 0" > $OUT_FILE GENESIS2000 System Hooks 63 23.slot_hits 取得钻孔撞击次数的数量给table中槽孔(以G85 来表示), 当nibble 模式被设定成"MACH" ( 使用G85命令)依序计算正确地碰撞次数的数量. Script 得到下列参数: . 输出路径, 用来放置碰撞次数的数量. . Machine 名称. 钻孔大小mil / micron . 槽孔的长度mil / micron . 板厚mil / mm . 层别名称下面的环境变数会被传递: $JOB : 料号名称$STEP: 排版名称GENESIS2000 System Hooks 64 24.nibble_hits 取得钻孔撞击次数的数量给table中扩孔(以G84 来表示), 当nibble 模式被设定成"MACH" ( 使用G84命令)依序计算正确地碰撞次数的数量. Script 得到下列参数: . 输出路径, 用来放置碰撞次数的数量. . Machine 名称. 钻孔大小mil / micron . 钻头大小mil / micron . 板厚mil / mm . 层别名称下面的环境变数会被传递: $JOB : 料号名称$STEP: 排版名称GENESIS2000 System Hooks 65 25.Hook Name: config/machines File / Dir: Dirs. Run Method: See individual file comments later in this section. Hook Notes: This is a directory which holds all the specific machine files used by the A.D.M. function. 26.Hook Name: User Defined (name of drill machine) File / Dir: File. Run Method: Selected by the user and used to set-up the A.D.M. flow (first part). The process of selecting this also calls the set_table file. Hook Notes: There may be many of these files, each one with an individual name. This is a configuration file which is used to define the machine specific parameters which are used by the A.D.M. function. These include panel to drill table registration, file format, tool assignment, and out_file parameter control. GENESIS2000 System Hooks 66 Auto Rout Manager 相关档案/genesis/sys/hooks/ncr/ ../set_machine ../set_table ../out_file ( 此script自行产生参数给在自行产生参数给在chain table突显视窗的每一行突显视窗的每一行. 自行产生参数给在突显视窗的每一行( 输出档案时透过一些条件的设定使输出档变成我们所要的) 输出档案时, 透过一些条件的设定, ../config/machines/excellon2 记住: 记住parameter 的format 最好必须为3.5. GENESIS2000 System Hooks 67 27.Hook Name: ncr File / Dir: Directory. Manual Ref: On-line manual 0704 (chapters 4/5) and 0703 (appendix D). Run Method: See individual file comments later in this section. Hook Notes: This is a directory which contains the Auto Rout Manager files and directory. These items are used by the A.R.M.

function to customise and configure the rout output files. 28.Hook Name: set_machine File / Dir: File. Run Method: Called by the A.R.M. function after the machine file is selected. Hook Notes: 此script 可以被设定来提供角度和位移参数给ARM 使用machine file 名称和板框大小等等. GENESIS2000 System Hooks 68 # # # # # # # 1. angle (0, 90, 180, 270) 2. mirror (0, 1) 3. xoff (x offset inch/mm) 4. yoff (y off inch/mm) 5. xorigin 6. yorigin set source_script = $1 set out_file = $2 source $source_script #set ncLAYER = (01-drl ) #set ncSET = (aa ) #set ncMACHINE = (excellon2) #set ncTHICKNESS = (0 ) #set ncPNLWIDTH = (20 ) 板框的宽#set ncPNLHEIGHT = (32 ) 板框的高#set ncANGLE = (0 ) 旋转的角度#set ncMIRROR = (0 ) X轴镜面处理#set ncXOFF = (2.5 ) 板框的位移#set ncYOFF = (0.75 ) #set ncXORIGIN = (10 ) 机器的原点(G93X0Y0) #set ncYORIGIN = (12 ) set xoff = `echo "scale=6; $ncXOFF + 0" | bc` set yoff = `echo "scale=6; $ncYOFF + 0" | bc` echo $ncANGLE $ncMIRROR $xoff $yoff $ncXORIGIN $ncYORIGIN >> $out_file GENESIS2000 System Hooks 69 29.Hook Name: set_table File / Dir: File. Run Method: Called by the A.R.M. function after the machine file is selected. Also called during the final output file creation and can be run by the user from the tools table pop-up. Hook Notes: 此档是在Auto Rout Manager 处理时被呼叫, 他是一个C-shell 程式,可以被设定去执行变更ARM 的tools table, 视不同的tool 参数分配给每一个tool ( size, hole/chain 等等. ) 这范例程式已经被写来提供透过变数的使用来控制大部份的功能.在程式的开始处. 大部份的特殊设定应该可以借由设定这些变数来达成. GENESIS2000 System Hooks 70 # FILE: /Genesis/sys/hooks/ncr/set_table # Input 'csh' script example : # ============================ #set ncLAYER = (01-drl ) #set ncSET = (1 ) #set ncMACHINE = (m1 ) #set ncTHICKNESS = (0 ) #set ncTYPE = (chain chain hole hole hole ) #set ncSTEP = (pcb pcb panel panel pcb ) #set ncCHAIN = (1 2 -1 -1 -1 ) #set ncSIZE = (2.4 2.4 0.6 1.6 1.8 ) #set ncCOMP = (right left none none none ) #set ncPATH = (2000 3000 0 0 0 ) #set ncCOUNT = (0 0 20 5 15 ) #set ncFLAG = (1 2 0 0 0 ) #set ncCW = (1 0 0 0 0 ) #set ncFEED = (30 60 0 0 0 ) #set ncSPEED = (300 300 0 0 0 ) GENESIS2000 System Hooks 71 alias COMPARE 'echo "if(\!*) 1;" | bc' set source_script = $1 set out_file = $2 source $source_script set i = 1 set ord = 1 # output holes first while ($i <= $#ncSIZE) if ($ncTYPE[$i] != hole) then @ i++ continue endif echo $i $ncSIZE[$i] none rout y n 0 0 20 new $ord >> $out_file @ i ++ @ ord ++ end GENESIS2000 System Hooks 72 set i = 1 set count = 1 while ($i <= $#ncSIZE) if ($ncTYPE[$i] != chain) then @ i++ continue endif # check if we want to group these together # set grp = new if ($count > 1) then if ($ncSIZE[$i] == $prev_size && $ncSTEP[$i] == $prev_step) then set grp = same endif endif GENESIS2000 System Hooks 73 echo $i $ncSIZE[$i] none rout n n $ncSIZE[$i] \ $ncSPEED[$i] $ncFEED[$i] $grp $ord >> $out_file @ ord ++ # find out if we need to duplicate # if ( `COMPARE "$ncSIZE[$i] \<= 0.05"`) then echo $i $ncSIZE[$i] none rout n y $ncSIZE[$i] \ $ncSPEED[$i] $ncFEED[$i] same $ord >> $out_file @ ord ++ endif set prev_size = $ncSIZE[$i] set prev_step = $ncSTEP[$i] @ i ++ @ count++ end GENESIS2000 System Hooks 74 30.Hook Name: out_file File / Dir: File. Run Method: Called by the A.R.M. function after the first phase (tools table and machine settings) is completed. Activated by the action button in the middle of the A.R.M. flow. Hook Notes: This file is called during the ARM process. It is a c-shell script which can be configured to provide user and site specific modifications to the rout output files dependant on the different parameters allocated to each tool (size, hole/chain etc.) and also the machine file being used. This file can control the following parts of the output files, although it should be noted that this is controlled by the machine file selected (see section below):1. The header. 2. The end of file. 3. The tool changes. 4. The step and

repeat start. 5. The step and repeat finish. GENESIS2000 System Hooks 75 31.Hook Name: config/machines File / Dir: Dirs. Run Method: See individual file comments later in this section. Hook Notes: This is a directory which holds all the specific machine files used by the A.R.M. function. 32.Hook Name: User Defined (name of drill machine) File / Dir: File. Run Method: Selected by the user and used to set-up the A.R.M. flo (first part). The process of selecting this also calls the set_machine and the set_table files. Hook Notes: There may be many of these files, each one with an individual name. This is a configuration file which is used to define the machine specific parameters which are used by the A.R.M. function. These include panel to machine table registration, file format, multi-quadrant arc definition, and out_file parameter control. GENESIS2000 System Hooks 76 33.Hook Name: note_options File / Dir: File. Manual Ref: On-line manuals 0203 (chapter 9) and 0601 (appendix D). Run Method: Read by the electronic notes function, this file is used to create the user note menu in the electronic notes pop-up. Hook Notes: This file is a basic parameter file which defines the user note menu in the electronic notes window, when the user selects the add new note option. The file consists of a series of lines (one line for each menu option) where the first section of each line is the menu option, and the second section of each line is the title that will be used when adding the note. /genesis/sys/hooks/note_options

------------------------------------------------------------------------------------------'Host request ' 'This change was requested by the customer' 'Customer request ' 'This change was requested by the customer' 'Engineering change' 'Internal engineering change' GENESIS2000 System Hooks 77 GENESIS2000 System Hooks 78 34.Hook Name: out_const File / Dir: File. Manual Ref: To be completed. Run Method: To be completed. Hook Notes: To be completed. # Example: # Gerber274x AutoPlot Gerber Par RPD gerber274x polarity level 20 25 10 polarity_level 31 10000 31 polarity_level 31 10000 31 polarity_level 10 10000 10 polarity_level 26 10000 26 polarity_level 31 10000 29 GENESIS2000 System Hooks 79 35.Hook Name: opfx.params File / Dir: File. Manual Ref: On-line manuals 0203 (chapter 9) and 0702 (chapter 4). Run Method: Read by the output package when working on OPF, OPFX, LP7008, and DP100 formats. Hook Notes: This file is a parameter file which provides predefined settings for units and film sizes. It is used to create a selection menu in the output parameters pop-up. There are two types of entry that can be added to this file, units and film size. If the selected format is OPF or OPFX then only the unit definitions are used. If the format is LP7008 or DP100, then both definitions can be used. GENESIS2000 System Hooks 80 /genesis/sys/hooks/opfx.params ------------------------------------------------------units default 0.0625 mil units options 0.25 mil units options 0.125 mil units options 0.1 micron film_size default 24x30 film_size options 30x24 film_size options 20x22 film_size options 22x20 film_size options 20x24 film_size options 24x20 film_size options 20x26 GENESIS2000 System Hooks 81 36.Hook Name: orbotech_plot_spool.config File / Dir: File. Manual Ref: On-line manuals 0203 (chapter 9) and 0702 (chapter 10). Run Method: Read by the output package when working on LP5008, Xpress, LP7008, and DP100 formats. Hook Notes: This file is a parameter file which provides predefined settings for virtual plotter groups, output paths and locations of set-up files (for DP100X output). It is used to create a selection menu in the output parameters pop-up. It is important to note that some of these parameters need to set the same as those set in the plot spooler (the Xpert script), and that the output paths in this file will override those defined in the main output screen. GENESIS2000 System Hooks 82 /genesis/sys/hooks/orbotech_plot_spool.config

--------------------------------------------------------------------GROUP_5008 = 2 GROUP_XPRESS = 3 GROUP_7008 = 5;6;7;8 LP5008_SPOOL_PA TH = /id/workfile LP7008_SPOOL_PA TH = /id/dbtmp KEEP_LOCAL_COPY = NO GENESIS2000 System Hooks 83 /genesis/sys/hooks/orbotech_plot_spool.config /genesis/sys/hooks/opfx.params /id/system/plot_spool_config 档案和/genesis/sys/hooks/orbotech_plot_spool.config 必须一样. 必须一样可以顺利画出opfx, 必须配合要让LP7008 可以顺利画出 1. 2. 3. 4. 5. 6. 7. plot_spooler 的启动( 此程式在xpert1700 ) 启动oplt " Output LP7008 " 在oplq –G 在dsrt –G ( 加入–G ) ( 加入–G ) 必须是真实的目录, 目录的link ) 建立/id/genesis_opfx 目录( 必须是真实的目录不得是目录的必须是真实的目录, 目录的link ) 建立/id/genesis_jobs 目录( 必须是真实的目录不得是目录的在系统configuration parameter 的设定必须是在系统的设定必须是orbotech_plot_spooler = 2 ( 1 表image manager, 2 表Xpert opfx ) GENESIS2000 System Hooks 84 37.Hook Name: outhdr File / Dir: File. Manual Ref: On-line manual 0203 (chapter 9). Run Method: Read by the output package just prior to the creation of the output file(s). Hook Notes: This file is a look-up file which the system uses to add pre-defined headers to files of certain formats. If the output format matches one of the lines in this file, and the second part of that line contains a full directory path to a file, that file is added to the top of every output file. It is not possible to add headers to every output file format, and the example hook provided lists all formats stating which can and which cannot be used. Note that in order note to create flase errors at output stage, all the lines have been commented out. GENESIS2000 System Hooks 85 /genesis/sys/hooks/outhdr -----------------------------------------------------# This file is used to assign file path name # which its content will be appended at the # beginning of each output file. # Any character after the '#' is treated as comment. # In order to assign header file, add the absolute # file path name after the format name with at list # one blank character as separator. # Example: gerber /tmp/gerber_hdr_file # gerber /tmp_dir/output/gerber/gerber_hdr_file pentax gerber274x auto-plot hpgl1 hpgl2 dpf excellon1 excellon2 pda wheel GENESIS2000 System Hooks 86 /tmp_dir/output/gerber/gerber_hdr_file

------------------------------------------------------------------------------# Add the gerber header to the title in the gerber file # /tmp/adrill.1p ----------------------------------------------------------------------------------------# Add the gerber header to the title in the gerber file # G70* G90* G54D12* X000214Y000172D03* X000364D03* X000514D03* X000664D03* X000814D03* X000214Y000322D03* GENESIS2000 System Hooks 87 38.Hook Name: panel File / Dir: Directory. Manual Ref: On-line manual 0971 (appendix A) (Release notes for Ver. 7.1). Run Method: See individual file comments later in this section. Hook Notes: This is a directory which contains three files and one directory (as well as a back up of each of these objects). These items are read by the panelisation wizard, and are created on-line using the panelisation set-up function. 39.Hook Name: job_macros File / Dir: File. Run Method: Defines job name selection macros within the panel wizard. Hook Notes: This is a configuration file which is created by the panelisation set-up function. This file is used to create the job macros menu and also to store the job macros. A job macro is a statement or regular expression which defines an enhanced job selection which can be used when running the panelisation wizard. It is not advisable to manually edit this file. GENESIS2000 System Hooks 88 40.Hook Name: loc_macros File / Dir: File. Run Method: Defines object location macros within the panel wizard. Hook Notes: This is a configuration file which is created by the panelisation

set-up function. This file is used to create the object location macros menu and also to store the location macros. A location macro is a statement or regular expression which defines an enhanced object location routine which can be used when running the panelisation wizard. It is not advisable to manually edit this file. 41.Hook Name: lyr_macros File / Dir: File. Run Method: Defines layer selection macros within the panel wizard. Hook Notes: This is a configuration file which is created by the panelisation set-up function. This file is used to create the layer selection macros menu and also to store the layer macros. A layer macro is a statement or regular expression which defines an enhanced layer selection routine which can be used when running the panelisation wizard. It is not advisable to manually edit this file. GENESIS2000 System Hooks 89 42.Hook Name: scheme File / Dir: Dir. Run Method: See individual file comments later in this section. Hook Notes: This is a directory which holds all the panelisation scheme files. There is one file for each panelisation scheme (routine) and the file will have the scheme name. 43.Hook Name: User Defined (name of panel scheme) File / Dir: File. Run Method: Used by the panelisation wizard to define panelisation. Hook Notes: There may be many of these files, each one with an individual name. This is a configuration file which is created by the panelisation set-up function. This file is used to hold all of the placement and thieving rules, as well as the spacing requirements and all of the possible panel classes that can be used. It is not advisable to manually edit this file. GENESIS2000 System Hooks 90 44.Hook Name: post_cdr14 File / Dir: File. Manual Ref: On-line manuals 0203 (chapter 9) and 0709 (appendix D). Run Method: Called by the system after every output using the Orbotech AOI iterface is finished. Hook Notes: This file is a c-shell script and is designed to be used to work on any data that has been created by the CDR (AOI) interface output. It is very similar to the post_output hook except that it deals specifically with CDR output files. It get passed an external (system created) file name as a parameter, and this can be sourced to provide a list of all the affected layers (which will dictate the output layers). Note that in the example script provided, all example sections have been marked with comment lines. This is to avoid pop-up windows appearing on screen after every output is made. To see the effect of these examples, just remove the comment marker (#) from the required section. GENESIS2000 System Hooks 91 45.Hook Name: post_output File / Dir: File. Manual Ref: On-line manuals 0203 (chapter 9) and 0702 (appendix D). Run Method: Called by the system after every output using the output page is finished. Hook Notes: This file is a c-shell script and is designed to be used to post-process, or move/copy file after output. As it is a c-shell script it can perform any functions required. It get passed an external (system created) file name as a parameter, and this can be sourced to provide the file output path and the output format used. With this information it becomes a simple task to define a series of actions based on format, path etc. Note that in the example script provided, all example sections have been marked with comment lines. This is to avoid pop-up windows appearing on screen after every output is made. To see the effect of these examples, just remove the comment marker (#) from the required section. GENESIS2000 System Hooks 92 执行output 时会去run post_output 的script 1 3. 执行post_output 后所显示的结果 2 GENESIS2000 System Hooks 93 Script name : post_output -----------------------------------------------------------------------# # The 'post_output' script is called at the end of the # output translation. It recieves on parameter - pathname # of a csh script that should be sourced. The source csh # script contains the following information : # # set outDIR # # In addition there are 2 environment variables : # # JOB - job name # STEP - step name # GENESIS2000 System Hooks 94 = (/tmp/xxx) # set outFORMAT = (gerber) set outDIR = /tmp

source $1 cp $1 /tmp_dir/post_output echo $1 >> /tmp_dir/post_output set GUI_DA TA = $TMP/gui_data.$$ set GUI_RESP = $TMP/gui_resp.$$ echo "WIN 200 200" >> $GUI_DATA echo "FONT tbr14" >> $GUI_DA TA echo "BG 222299" >> $GUI_DA TA echo "FG 999999" >> $GUI_DATA echo "LABEL Genesis2000 Output " >> $GUI_DA TA echo "TEXT name FORMA T: " >> $GUI_DATA GENESIS2000 System Hooks 95 @ i = 1 while ( $i <= $#outFORMAT ) if ( $outFORMAT[$i] == "Excellon2" ) then set FORMA T_NAME = "Excellon2" else if ( $outFORMA T[$i] == "Gerber274x" ) then set FORMA T_NAME = "Gerber274x" else if ( $outFORMAT[$i] == "AutoPlot" ) then set FORMA T_NAME = "AutoPlot" else if ( $outFORMAT[$i] == "Image" ) then set FORMAT_NAME = "Image" endif endif endif endif @ i ++ end echo "DTEXT name $FORMAT_NAME " >> $GUI_DATA echo "END " >> $GUI_DATA GENESIS2000 System Hooks 96 $GENESIS_DIR/e${GENESIS_VER}/all/gui $GUI_DATA \rm $GUI_DATA about: exit ############ END OF PROGRAM ################## GENESIS2000 System Hooks 97 46.Hook Name: rpd.params File / Dir: File. Manual Ref: To be completed. Run Method: To be completed. Hook Notes: To be completed. Hook Name: script_start.csh File / Dir: File. Manual Ref: On-line manual 0203 (chapter 9). Run Method: Called automatically whenever any c-shell script is run. Hook Notes: This file is a c-shell script which is sourced by the system every time a c-shell script is run. Thus, all of the variables, aliases, and parameters that are set within this file are passed on to the script being run. It is possible to setup different values dependant on things like the local hardware being used, the day or date, the user running the script etc. GENESIS2000 System Hooks 98 /genesis/sys/hooks/rpd.params ----------------------------------------intensity default 1 intensity option 1 intensity option 2 intensity option 3 film_type default x film_type option x film_type option y film_type option z resolution default 2000 resolution option 1000 resolution option 2000 resolution option 4000 resolution option 8000 GENESIS2000 System Hooks 99 film_size default 18x24 film_size option 18x14 film_size option 21x32 film_size option 22x26 47.Hook Name: secure File / Dir: File. Manual Ref: On-line manual 0203 (chapter 9). Run Method: Called from main Genesis screen File --> Archive --> Secure. Hook Notes: This file is a c-shell script which is used to archive data to an archive point on the network. This archive point can a directory structure (raid disk, pre-mounted optical disk etc.) or a seperate archive management program (such as Star). It should be noted that the default script will need modification before it can be used to communicate with existing archive systems (for example - path names for archive points may need changing, methods of data packing may be different). Genesis2000 利用此利用此script 将料号备份到将料号, 备份到Star1000的资料库内的资料库内GENESIS2000 System Hooks 100 48.Hook Name: stagger File / Dir: File. Manual Ref: On-line manuals 0603 (chapter 3) and 0702 (appendix D). Run Method: Read by the netlist optimiser stagger function, this file is used to create the stagger model selection menu in the stagger mode pop-up. Hook Notes: This file is called by the stagger pop-up within the netlist optimiser. It provides a series of models (in a similar way to the ERF files) which can be used to define different staggering rules. The user selects the required staggering model which is then applied to the data. The file includes the definition of default values which are used if the model selected does not cover the SMD situation found. Each model can define multiple ranges based on the pad pitch and pad length and the staggering method which should be used in each case. In addition to this the range can be fine-tuned to include a minimum number of pads in the row (for the row to match the range), and also the test point radius to use in this case. The staggering method is defined as either a numeric

pattern or a system code. Examples of all these are described in the stagger hook header. Additional information can also be found in KIT item 3360. GENESIS2000 System Hooks 101 Stagger : 将SMD上的测试点错开, 以避免测试针头相碰, 而无法点到测试点. 在pad上我们可有三个test-point的选择, 0,1,2分别代表bottom, middle, top. Z1 Z2 L1 L2 L3 --GENESIS2000 System Hooks 0121 210 0 1 2 10 102 参数档的设定在此档中/genesis/sys/hooks/stagger pitch GENESIS2000 System Hooks 103 GENESIS2000 System Hooks 104 ##################################################################### # # # # # # # * Description : In tight pitch and size situations place pads in the middle in less tight stagger in simple pattern * * * * in all other stagger in 0121 pattern * * * * * * ###################################################################### # model name .model standard { # .radius stagger mode offset alignment 5 1 right pitch Z1 Z2 L1 L2 L3 --0121 210 0 1 2 10 .default : 0121 # pitch range size range stagger mode offset alignment 1-5 1-5 1-5 1-5 5 - 10 10 - 20 L1 L1 Z1 0 2 5 right right right 5 - 10 5 - 10 5 - 10 } 1-5 5 - 10 10 - 20 L1 010 Z1 0 2 5 right right right GENESIS2000 System Hooks 105 49.Hook Name: userdef_stamp_formats 此档无法在genesis2000中建立必须透过中建立, 使用者自行定义plotter stamps, 此档无法在中建立必须透过xpert /ie/offline/define_plot_stamps 程式来建立此档, 在copy到/genesis/sys/hooks目录程式来建立此档到目录这两个系统中的档案必须是相同的.xpert会放在/id/system/bppp/userdef_stamp_formats 会放在这两个系统中的档案必须是相同的# # # # # # REPLACE # ID=0 $(TIME:%d-%b-%y) DD-MMM-YY 24-Jan-94 DISP_IND=0 # ID=1 $(TIME:%b-%d-%y) MMM-DD-YY Jan-24-94 DISP_IND=1 User Definable Plot Stamp File WARNING: DO NOT EDIT THIS FILE MANUALL Y !! MANUAL EDITTING IS LIKEL Y TO CAUSE IRRECOVERABLE DATA LOSS !! Use the utility /ie/offline/define_plot_stamps to modify the contents of this file. #V1.63 GENESIS2000 System Hooks 106 PS.1.Auto Drill manager 显示features的图形的图形显示为於/genesis/sys/hooks/ncd/config/machine/excellon2 GENESIS2000 System Hooks 107 machine file 的位置/genesis/sys/hooks/ncd/config/machine/excellon2 的位置: 显示machine file 的设定显示GENESIS2000 System Hooks 108 特殊的钻孔须要被routed, 将被重导到将被重导到rout层特殊的钻孔须要被层钻孔路径最佳化执行钻孔在最佳化时的最大反覆次数rout_layer = rout optimize { 钻孔起始位置optimize = yes break_sr = no xspeed = 100 yspeed = 100 iterations = 5 reduction_percent = 1 diag_mode = 45ort start_pos = lowlwft } 从上一次的反覆与此次的改善率若小於此值, 将停止钻孔最佳化. 从上一次的反覆与此次的改善率若小於此值将停止钻孔最佳化打散排版钻孔行进方向GENESIS2000 System Hooks 109 rout_layer = rout hook_units = inch no_touch_cpr = no tent_ar = 0 钻孔单位设定成Yes时, 表Non-pth接触到时接触到copper被关闭设定成接触到被关闭介於Non-pth的孔与的孔与copper上的洞之间的最小距离上的洞之间的最小距离, 介於的孔与上的洞之间的最小距离会被考虑并当作no_touch_cpr slot { # Excellon G85 custom = no # Yes –启动../hooks/ncd/create_slot overlap = 8.0 # 介於临近碰撞重叠率total_overlap = 10.0 # 在执行G85命令时,介於slot的起始点到终点的重叠率需求在执行G85命令时介於slot的起始点到终点的重叠率需求命令时,介於} GENESIS2000 System Hooks 110 GENESIS2000 System Hooks 111 nibble { custom = no # 使用系统预设的val { min_size = 257 # 最小扩孔的大小max_size = 1000# 最大扩孔的大小num_holes = 128# 在扩孔的孔数量} } nibble { custom = yes # 启用../hooks/ncd/create_nibble val { min_size = 0 # The value here has no effect max_size = 0 # The value here has no effect num_holes = 0 # The value here has no effect } } GENESIS2000 System Hooks 112 tools_assign { mode =

increasing_size/decreasing_size, increasing_number/decreasing_number use_hole_tol = yes (使用从使用从NCD table 中指定一个固定的钻头的孔的误差率) 使用从no ( 使用预设的误差值加减加减0.5mil ) choice_method = 假如部份孔的大小适用於某些固定的钻头.指定钻头给适用在误差值default_fit ( 假如部份孔的大小适用於某些固定的钻头指定钻头给适用在误差值内的最小孔的大小) 内的最小孔的大小closest_too_fit ( 假如部份的钻头适用固定的钻孔大小指定的钻头是接近误差值假如部份的钻头适用固定的钻孔大小, 内的孔) tool_entry { tool = 1 size = 125} tool_entry { tool = 2 size = 145} } GENESIS2000 System Hooks 113 设定钻头的顺序给第一把预先设定的钻头. 设定钻头的顺序给第一把预先设定的钻头format { format = excellon2 zeroes = trailing units = inch tool_units = inch nf1 = 2 nf2 = 4 decimal = no modal_coords = no incremental = no repetitions = sr single_sr = yes sr_start_code = 25 sr_zero_set = no } GENESIS2000 System Hooks 114 start_end { split { start = yes # starting hole coupon end = yes # ending hole coupon min_dist = 20 # distance between hole x1 = 3.5 # lower x for bounding corner y1 = 1.2 # lower y for bounding corner x2 = 4.5 # upper x for bounding corner y2 = 2.0 # upper y for bounding corner x1_end=0.5 # lower x for a separate coupon y1_end=3.2 # lower y for a separate coupon x2_end=1.5 # upper x for a separate coupon y2_end=6.0 # upper y for a separate coupon min_hits=. } GENESIS2000 System Hooks 115 out_hook { # out_file running rules exists = yes # existence (Yes/No) header = yes # use header created by out_hook eof = yes # use end of file created by out_hook tool_change = yes # use tool changes create by out_hook tool_finish = yes # use tool finish create by out_hook full_sr_start = yes # used to allow the user to define extra commands before the s&r block (only when 'full' s&r is chosen) full_sr_end = yes # used to allow the user to define extra commands after the s&r block (only when 'full' s&r is chosen) } GENESIS2000 System Hooks 116 档案: 档案set_table, 位於: 位於/genesis/sys/hooks/ncd/set_table GENESIS2000 System Hooks 117 钻孔大小钻孔型态: 钻孔型态Plt 镀通孔Npt 非镀通孔Via 导通孔在machine file 内: no_touch_cpr : 允许孔接触到铜面. no_touch_cpr = no # Yes - to allow touching of copper by holes. Tent_ar :The circular strip of conductive material surrounding a hole is as follows: tent_ar = 0 # Tenting annular ring 假如从铜面到孔的距离少於tent_ar的话, 将考虑touching copper Hl : hole ( 孔) Sl : slot ( 槽孔) 数量Flag : 是属性是属性.drill_flag的值分辨钻孔带有不一样的功能的值,分辨钻孔带有不一样的功能的值Touch copper : 只会显示在Non-plat hole GENESIS2000 System Hooks 118 钻孔大小的误差值假如恰巧Mode = Nibble Mach: 使用机台预设的命令G84 and G85 来钻孔或槽孔SW: 孔和槽孔的产生将依据在machine file中的nibble/slot参数定义以软体演算来计算并透过create_nibble, create_slot 来处理. Mode: 钻孔指示Reg: 一般钻孔. Nibb: 扩孔. Rout: 钻孔会被转到Rout 层GENESIS2000 System Hooks 119 Num pilot: 导引孔其值表示导引孔的数量导引孔, Feed rate: 进刀数Drill 阶段阶段: 1: 先钻2: 二钻二钻. 3: 一般性阶段一般性阶段. Spindle speed: 转速Max hits: 同一支钻头最大连续钻孔次数GENESIS2000 System Hooks 120 Turn Off –取消在图形区域高亮度选择Path –显示所选择钻孔显示所选择钻孔size的钻孔路径假如没有选择任何的钻孔路径, 假如没有选择任何size 的钻孔路径所有的钻孔路径都会显示Highlight –以高亮度显示所选择钻孔以高亮度显示所选择钻孔size 在set_table 上显示颜色的区分GENESIS2000 System Hooks 121 Register : Angel ( 0,90,180,270) : Mirror in X ( 对X轴做轴做Mirror) 轴做Offset : ( 位移) Virsion : 方向Origin : 原点Scale : 依照依照Scale anchor位位置做version 方位的钻孔程式输出Scale anchor : 涨缩时所参考的座标点. GENESIS2000 System Hooks 122 改变钻孔程式输出的顺序: Step : 点选step后, 到图形区域选择所要选取的后到图形区域选择所要选取的step 点选-1. Drilled last -2. One before last Serial no. : 1.

Drilled first 2. Second 3 Third Full Sequence : Yes - S&R image 将钻完所有更改的孔径才会继续到下一个step. 孔径才会继续到下一个Optional (/) : 钻孔程式输出时会多出/ 字元GENESIS2000 System Hooks 123 查看钻孔有( 最佳化的路径, 查看钻孔有无)最佳化的路径透过Tool table 最佳化的路径GENESIS2000 System Hooks 124 查看钻孔程式输出钻孔程式GENESIS2000 System Hooks 125 ADM ( 更改set_table 的依据) 1. 2. 3. 4. 5. 6. 7. 8.

9. 10. 11. 12. Pilot drill all holes 190-290 mil ( use 150 mil pilot hole ) No pth hole smaller than 5 mils No NPTH hole smaller than 30 mils pth holes 5-250 mils drill stage1 pth holes 250-290 mils nibble stage1 pth holes >290 mils drill stage 2 NO-PTH holes 30-250 mil drill stage 1 Non-PTH holes > 250 mils drill at route stage PTH slot 5-250 mil pads drill stage 1 ( G84/5 ) pth slots > 250 mils cannot management Non PTH slot 30-250 mil drill stage 1 Non PTH slots > 250 mil create st routing Chang G84/5 slots to be custom type GENESIS2000 System Hooks 126

Bootstrap教程第一课:简单的Bootstrap主页

Bootstrap教程第一课:简单的Bootstrap主页(1) 写在前面: Bootstrap是目前最流行的前端框架,我从简单的实例开始,写一份文字版的Bootstrap教程,希望能对大家有所帮助。 准备工作: 1、下载Bootstrap框架核心文件。 2、下载jQuery文件。 3、下载HTML5兼容IE的JS插件。 (各位可以从网上找到Bootstrap和jQuery以及HTML5 JS的官方下载地址,也可以直接点击下面的下载链接下载,我已经将jQuery文件放在了js目录里了。)点击下载Bootstrap核心文件 HTML结构: 1、Bootstrap框架的文档必须声明为HTML5文件类型,所以你的每一个页面都必须按照下面的格式进行设置: ...... 2、添加HTML文档meta标记,需要两条标记: 3、引入所需要的核心文件,包括Bootstrap的CSS文件,jQuery插件,Bootstrap的JS核心文件,以及HTML5.JS文件。

那么现在,你的HTML文档,应该是这个样子的: Bootstrap 第一课:简单的Bootstrap主页 正式开始: 现在就可以在body之间写上你的网页结构代码了,添加上Bootstrap相应的CSS 类样式,就可以完成一个最简单的Bootstrap主页了。 首先,写好HTML结构代码:

这是一个简单的Bootstrap主页

这是一个简单的Bootstrap主页,制作这个主页,可 以分为三个步骤:

基于Bootstrap的网页开发

J I A N G S U U N I V E R S I T Y 本科毕业论文 基于bootstrap的网页设计 Bootstrap-based web design 学院名称:计算机科学与通信工程学院 专业班级:软件(嵌入式)1102班 学生姓名:缪江超 指导教师姓名:马汉达 指导教师职称:高级工程师 2015年6月

基于bootstrap的网页设计 计算机科学与通信工程学院软件工程(嵌入式)缪江超 摘要::当今社会,网络是人们生活中不可或缺的一部分,网页则是传递信息的重要媒介。随着时代的进步,网页设计也随着网络技术的发展而不断发展。计算机学院实验中心信息管理系统,是2004年开发的,因设计开发时间较早,其界面已不适应当前的技术发展,不能满足师生对于网站美观要求。 Bootstrap是当下最受人们欢迎的前端框架,是基于HTML、CSS、JAVASCRIPT 的,它简洁灵活的特性使得 Web 开发更加快捷,Bootstrap提供了优雅的HTML和CSS规范,它由动态CSS语言Less写成。本文针对实验中心网站得主要问题,介绍了网页设计的相关理论,使用Bootstrap框架,对实验中心网站进行了重新布局设计,使得网站界面更为美观,用户体验更好。 关键字:前端开发 Bootstrap 布局架构实验室网站

Bootstrap-based web design Miao Jiangchao, Computer Science and Communication Engineering, Software Engineering (embedded) Professional Abstract: Nowadays, networks are an indispensable part of people's lives, the page is an important medium to transmit information. With the progress of the times,with the development of network technology,web design continue to develop. School of Computer Science Experiment Center Information Management System, developed in 2004, due to the design and development time earlier, the interface has not adapted to current technological developments, and can not meet the aesthetic requirements for teachers or students. Now Bootstrap is the most popular front frame,which is based on HTML, CSS, JAVASCRIPT, which is a clean and flexible features that make Web development faster. Bootstrap offers elegantly HTML and CSS specification, which is written by the dynamic CSS language Less. In this paper, the main problem is the Experimental Center site, introduces the theory of web design, use Bootstrap framework, the experimental center site re-layout design, making the site more attractive interface, better user experience. Key Words:Front-end development Bootstrap Layout Architecture Laboratory site

Bootstrap简易使用指南

Bootstrap简易使用指南 看完使用手册后所作的笔记,可以当做简易使用指南使用。 1.框架 1.1全局样式 使用HTML5的doctype,scaffolding.less中定义全局样式,从2开始使用normalize.css,并使用reset.less进行简化 1.2默认栅格系统 940px宽12列栅格,使用row与span[NUM]的class来控制,使用offset[NUM]来控制偏移,于non-fluid可以直接嵌套,提供了四种响应式方案 1.3流动栅格系统 基于百分比,将row改为row-fluid即可使用,内嵌注意宽度是按照父列的百分比进行计算的 1.4自定义栅格 于variables.css中改变变量,默认列12,宽60px,间隔20px,要保证响应性还得修改responsive.less中内容 1.5布局 container为940px居中,container-fluid则为流体布局 1.6 响应式设计 responsive.less中提供了一组media query: 智能手机《=480px;流式列,非固定宽度 垂直平板《=767px;流式列,非固定宽度 水平平板》=768px;42px 20px

默认》=980px;? ? ?60px ?20px 大分辨率》=1200px;70px 30px 要求添加meta标签, 有诸如.visible-phone等支持类 2.基础CSS 2.1 排版 整个排版单位基于variables.less中@baseFontSize与@baseLineHeight两个变量; 强调:string加粗,em倾斜,abbr缩写【title属性存放显示信息,.initialism会减小缩略词字体】,address【使用br换行】 引用:blockquote【cite属性存放来源URL,.pull-left或right决定内容居左右】,small用于引言作者【会在内容前加入破折号】 列表:ul无序号有黑点,ul.unstyled无样式,ol有数字序号,dl描述,dl.dl-horizontal水平描述 2.2代码 code行级代码,pre块级【<>需要转义,.pre-scrollable可以设置350px最大高度】,应用.prettyprint和.linenums来美化代码【使用google prettify】 2.3表格 table thead【tr】tbody【tr】tr【td或th】th【必须在thead之内】caption; .table行之间有水平线分割【2.0开始为默认】 .table-borderd 【边角为圆角】.table-striped 奇偶分开【使用:nth-child ie7-8不支持】 .table-condensed 紧凑竖直方向padding减半几个可以组合使用 2.4表单 四种表单:.form-vertical【2.0后默认,控件标签文字左对齐】.form-inline【左对齐,控件inline-block】 .form-search【文本框圆化】 .form-horizontal【左浮动,标签与控件居于同

bootstrap中文手册指南

Bootstrap简易指南 看完使用手册后所作的笔记,可以当做简易使用指南使用。 1.框架 1.1全局样式 使用HTML5的doctype,scaffolding.less中定义全局样式,从2开始使用normalize.css,并使用reset.less进行简化 1.2默认栅格系统 940px宽12列栅格,使用row与span[NUM]的class来控制,使用offset[NUM]来控制偏移,于non-fluid可以直接嵌套,提供了四种响应式方案 1.3流动栅格系统 基于百分比,将row改为row-fluid即可使用,内嵌注意宽度是按照父列的百分比进行计算的 1.4自定义栅格 于variables.css中改变变量,默认列12,宽60px,间隔20px,要保证响应性还得修改responsive.less中内容 1.5布局 container为940px居中,container-fluid则为流体布局 1.6 响应式设计 responsive.less中提供了一组media query:

智能手机《=480px;流式列,非固定宽度 垂直平板《=767px;流式列,非固定宽度 水平平板》=768px;42px 20px 默认》=980px;? ? ?60px ?20px 大分辨率》=1200px;70px 30px 要求添加meta标签, 有诸如.visible-phone等支持类 2.基础CSS 2.1 排版 整个排版单位基于variables.less中@baseFontSize与@baseLineHeight两个变量; 强调:string加粗,em倾斜,abbr缩写【title属性存放显示信息,.initialism会减小缩略词字体】,address【使用br换行】 引用:blockquote【cite属性存放来源URL,.pull-left或right决定内容居左右】,small用于引言作者【会在内容前加入破折号】 列表:ul无序号有黑点,ul.unstyled无样式,ol有数字序号,dl描述,dl.dl-horizontal水平描述 2.2代码 code行级代码,pre块级【<>需要转义,.pre-scrollable可以设置350px最大高度】,应用.prettyprint和.linenums来美化代码【使用google prettify】

Bootstrap前端框架

Bootstrap 标题(一) Bootstrap和普通的HTML页面一样,定义标题都是使用标签

,只不过Bootstrap覆盖了其默认的样式,使用其在所有浏览器下显示的效果一样,具体定义的规则可以如下表所示: 通过比较可以发现,Bootstrap标题样式进行了以下显著的优化重置: 1、重新设置了margin-top和margin-bottom的值,h1~h3重置后的值都是20px;h4 ~h6重置后的值都是10px。 2、所有标题的行高都是1.1(也就是font-size的1.1倍),而且文本颜色和字体都继承父元素的颜色和字体。 3、固定不同级别标题字体大小,h1=36px,h2=30px,h3=24px,h4=18px,h5=14px 和h6=12px。 标题(二) 除此之外,我们在Web的制作中,常常会碰到在一个标题后面紧跟着一行小的副标题。在Bootstrap中他也考虑了这种排版效果,使用了标签来制作副标题。这个副标题具有其自己的一些独特样式: 1、行高都是1,而且font-weight设置了normal变成了常规效果(不加粗),同时颜色被设置为灰色(#999)。 2、由于内的文本字体在h1~h3内,其大小都设置为当前字号的65%;而在h4~h 6内的字号都设置为当前字号的75%; 详细代码请参阅bootstrap.css文件中第407行~第443行。

段落(正文文本)

段落是排版中另一个重要元素之一。在Bootstrap中为文本设置了一个全局的文本样式(这里所说的文本是指正文文本): 1、全局文本字号为14px(font-size)。 2、行高为1.42857143(line-height),大约是20px(大家看到一串的小数或许会有疑惑,其实他是通过LESS编译器计算出来的,当然Sass也有这样的功能)。 3、颜色为深灰色(#333); 4、字体为"Helvetica Neue", Helvetica, Arial, sans-serif;(font-family),或许这样的字体对我们中文并不太合适,但在实际项目中,大家可以根据自己的需求进行重置,在此我们不做过多阐述,我们回到这里。该设置都定义在元素上,由于这几个属性都是继承属性,所以Web页面中文本(包括段落p元素)如无重置都会具有这些样式效果。 /*源码请查看bootstrap.css文件中第274行~280行*/ 另外在Bootstrap中,为了让段落p元素之间具有一定的间距,便于用户阅读文本,特意设置了p元素的margin值(默认情况之下,p元素具有一个上下外边距,并且保持一个行高的高度): /*源码请查看bootstrap.css文件中第467行~469行*/ 如果你对CSS预处理器有所了解,那么你完全可以根据Bootstrap提供的预编译版本LES S(或者Sass)进行自定义排版设置。在Bootstrap中,排版设置的默认值都存在variables. less文件中(Sass版本存在_variables.scss中)的两个变量: LESS版本: Sass版本:

bootstrap实战笔记

Bootstrap框架实战笔记 使用bootstrap框架必须,先引入框架文件: bootstrap 布局方式是将页面分成一行12个列,同时布局要放到盒子类container 里面,类row 代码的是行,而类span代表的是列。 例如:

代表这行占用了12列的3列的宽度
响应式位移: offse数字,例如offset4 就标签距离左边4个列的宽度距离。 代码案例:
此代码表示占用两个列的宽度,距离左边是4个列的宽度 响应式布局的使用类: .visible-phone:在手机上显示这个元素 .visible-tablet:在平板电脑上显示这个元素 .visible-desktop:在普通电脑上显示这个元素 .hidden-phone :在手机上隐藏这个元素 .hidden-tablet:在平板电脑上隐藏这个元素 .hidden-desktop:在普通电脑上隐藏这个元素

:段落标签

:文章标题 :加粗标签 :标注提示标签 :斜体
:引用说明
文字内容
:左对齐显示文字内容
文字内容
:又对齐显示文字内容 :小字体 Bootstrap Well Well 是一种会引起内容凹陷显示或插图效果的容器
。为了创建Well,只需要简单地把内容放在带有class .well 的
中即可。下面的实例演示了一个默认的Well: 代码案例:
您好,我在Well 中!
您可以使用可选类 well-lg 或 well-sm 来改变Well 的尺寸大小。这两个类是与 .well 类结合使用的。这两个类会影响内边距(padding),根据使用的类,Well 会显示得更大或者更小。代码案例:
您好,我在Well 中!
您好,我在Well 中!
响应是布局常用列表: 无序列表:ul 有序列表:ol 分类列表:dl 注意:dl列表里bootstrap提供了一个类dl-horizontal 能改变dl原有的样式bootstrap里面的 code标签:加重注释,加重突出
:段落突出显示,能原样显示文本原有的排版格式 bootstrap里面的表格: 
表格头
表格内容

bootstrapWEB前端框架课程设计报告模板

武汉软件工程职业学院《Web前端框架应用》 课程设计报告 2019-2020学年度第一学期 题目:特效设计学习网站 姓名:李告 班级:软件1809 日期:2019 年12 月28 日

一、网站策划 本部分主要对网站各页面的布局进行规划,并进行简单的文字说明。 Index.html设计图 Cocos 产品子页面01.html

Host post.html-子页面02设计图 Shopping-子页面03设计图

二、效果图 本部分主要是对各页面进行截图,并对每页所用技术进行说明,必要时,可以添加简单的代码说明。 Index.html效果图 1.首页基于bootstrap响应式开发,登录(表单)与注册(表单)按钮运用了模态框。 2.Banne图运用了轮播并用JS代码设置轮播间隔时间为2s。 3.导航栏采用带有下拉菜单的响应式导航,搜索框运用了字体图标。 4.内容部分左侧采用轮播,右侧采用标签页插件。 5.在线课程部分也采用了栅格系统(大屏是4列,小屏2列,超小屏1列)缩略 图、标签页插件。 6.社区版块采用了徽章、折叠插件。 7.点击导航栏热榜跳转至host post-子页面02.html,点击导航栏Cocos2D跳转

至Cocos产品01.html子页面,点击在线课程里的推荐课程第一个(学点模型干动画)跳转至shopping子页面,各页面点击首页均可来回跳转。 Cocos 产品子页面01.html效果图 1.本子页面导航栏采用了响应式导航栏。 2.中间采用了面板布局组件。

3.主体内容部分采用了附加导航、滚动监听插 件。 4.Footer部分采用了分页布局组件。 Host post.html-子页面02效果图 1.本子页面采用了左侧导航采用了提示工具插件,注册,登录按钮采用模态框,内容运用了表单。

bootstrap讲义

排版样式 一.页面排版 Bootstrap 提供了一些常规设计好的页面排版的样式供开发者使用。 1.页面主体 Bootstrap 将全局font-size 设置为14px,line-height 行高设置为1.428(即 20px);段落元素被设置等于1/2 行高(即10px);颜色被设置为#333。 2.标题 //内联元素使用标题字体 Bootstrap 在h1 ~ h6 元素之间,还可以嵌入一个small 元素作为副标题, //在标题元素内插入small 元素

Bootstrap 框架Bootstrap 小标题

在h1 ~ h6 下的small 样式也进行了改变,颜色变成淡灰色:#777,行高为1,粗度为400。 3.内联文本元素 //添加标记,元素或.mark 类 Bootstrap框架 //各种加线条的文本 Bootstrap 框架 //删除的文本 Bootstrap 框架 //无用的文本 Bootstrap 框架 //插入的文本 Bootstrap 框架 //效果同上,下划线文本 //各种强调的文本 Bootstrap 框架 //标准字号的85% Bootstrap 框架 //加粗700 Bootstrap 框架 //倾斜 4.对齐 //设置文本对齐

Bootstrap 框架 //居左

Bootstrap 框架 //居中

Bootstrap 框架 //居右

Bootstrap 框架 //两端对齐,支持度不佳

Bootstrap 框架 //不换行 5.大小写 //设置英文文本大小写

Bootstrap 框架 //小写

Bootstrap 框架 //大写

Bootstrap 框架 //首字母大写 6.缩略语 //缩略语 Bootstrap框架 7.地址文本 //设置地址,去掉了倾斜,设置了行高,底部20px

Twitter, Inc.
795 Folsom Ave, Suite 600
San Francisco, CA 94107
P: (123) 456-7890

bootstrap知识结构体系

Bootstrap 1bootstrap教程 a)需要准备的知识html,css,javascritpt 2Bootstrap简介 a)Bootstrap前端框架,基于html,css,javaScript的 b)移动设备优先,所有主流的浏览前都支持bootstrap c)Bootstrap包的内容 i.基本结构 ii.Css iii.组件 iv.javaScript插件 3Bootstrap环境安装 Bootstrap CSS 4Bootstrap CSS概览 a)Html5文档类型(Doctype) i.Bootstrap使用了一下html5元素和css属性,为了能够正常显示,需要使用html5文档类型(Doctype)。 b)移动设备优先,在bootstrap3默认的css本身就对移动设备友好支持 c)响应式图像class=”img-responsive” d)全局显示、排版和链接 e)避免浏览器的不一致 f)容器(Container) 5Bootstrap网格系统 a)Bootstrap提供了一套响应式、移动设备优先的流式网格系统,随着屏幕或视口(viewport)尺寸的增加,系统会自动分为最多12 列。 b)什么是网格 c)什么是bootstrap网格系统 d)移动设备优先策略:内容,布局,渐进增强 e)Bootstrap网格系统的工作原理 i.行必须放置在.container class内,以便获得适当的对齐和内边距 ii.使用行来创建列的水平组。 iii.内容应该放置在列内,且唯有列可以是行的直接子元素。 iv.预定义的网格类,比如.row和.col-xs-4,可用于快速创建网格布局 v.列通过内边距(padding)来创建列内容之间的间隙。该内边距是通过.rows上的外边距(margin)取负,表示第一列和最后一列的偏移。 vi.网格系统是通过指定您想要横跨的十二个可用的列来创建的,例如,要创建三个相等的列,则使用三个.col-xs-4 6Bootstrap排版 a)标题 b)内联标题 c)强调 d)地址 e)引用 f)列表

相关文档 最新文档