caoqin 发表于 2020-11-9 09:07 700 是 n_undef_line_width 設7mil (brd unit設mil 且小數點後有2位 所以7*100=700) 2000 是 n_shape_bound 設20mil (brd unit設mil 且小數點後有2位 所以20*100=2000) 去看skill 的pdf (axlfcreate t_name l_params l_vis) The axlfcreate call includes these arguments and passes all parameters needed as arguments to axlDBCreateFilmRec: t_name Name of the record to be created, of the form "NAME" l_params List consisting of 13 numbers, of the form '(0 0 0 ...), which correspond to the Film Options fields in the film control form. l_vis The list of visible layers, each layer enclosed in quotes, space delimited, of the form '("ETCH/TOP" "VIA/TOP" ...) l_params : 內有13個參數 Arguments t_filmname The name of the film record to create. n_rotate_code 0, 2, 4, or 6, corresponding to 0, 90, 180, or 270 degree rotation. n_x_offset Film record block origin x offset. n_y_offset Film record block origin y offset. n_undef_line_width Film record undefined line width. n_shape_bound Shape bounding box size. n_plot_mode Film record plot mode -- 0 = NEGATIVE, 1 = POSITIVE. n_mirrored Flag denoting mirroring. n_supp_unconnect Indicator to not flash unconnected pads n_draw_pad Indicator to draw pads. n_aper_rot Boolean indicator for aperture rotation. n_fill_out_shapes Boolean indicator to fill outside shapes. This is the opposite of the “suppress shape fill” switch in the film control form, for example, if suppress shape fill is selected, fill_out_shapes should be 0. This is named this way because art_film_block_type structures have fill_out_shapes fields instead of suppress_shape_fill fields. n_vector_based Boolean indicator for vector-based pad behavior. Example 1 (axlfcreate "TRACE_2" '(0 0 0 0 0 1 0 0 0 0 0 0 1) '("ETCH/TRACE_2" "PIN/TRACE_2" "VIA CLASS/TRACE_2" )) |
|
你去搞懂一下 xxx.art gerber file 的基本格式 ; inch 25時 12345是? mil 25時12345 又是多少? mm 25時12345 又是多少? 何謂前省0? 何謂後省0? |
caoqin 发表于 2020-11-9 19:09 改成MM就好了,为什么不能写milimeters呢。那英制为什么要写inches呢,怎么不写mils呢? 像这样的参数规则定义,我们去哪里查看呢,allegro官方有文件说明吗? |
caoqin 发表于 2020-11-9 19:09 1. art_param=outfile("gerber\\art_param.txt") ; ALLEGRO 標準是讀 XXX.BRD 目錄下的art_param.txt , 所以我是改 art_param=outfile("art_param.txt") 2. fprintf(art_param "OUTPUT-UNITS MM\n") ; 最右邊需改MM (你自己用手工設mm 再去看art_param.txt 就可確定) |
caoqin 发表于 2020-11-9 15:48 ALLEGRO 系統自己產生 nc_tools_auto.txt 你不要就 KILL 它 |
本帖最后由 jet2001 于 2020-11-9 10:55 编辑 caoqin 发表于 2020-11-9 10:16 這個NC DRILL 的SKILL CODE我不會寫 , 所以我會在SKILL 內跑 SCRIPT 來設定它 記得1定要加 如下的 ?cmdType "general 不然script 會無法跑 以下的script是for allegro 15.7 (16.6 自行修正) axlCmdRegister( "test1" `test1 ?cmdType "general") procedure(test1() op33=outfile("set_nca.scr") fprintf(op33 "setwindow pcb\n") fprintf(op33 "nctape_full\n") fprintf(op33 "setwindow form.nc_drill\n") fprintf(op33 "FORM nc_drill auto_tool_select YES\n") fprintf(op33 "FORM nc_drill close\n") fprintf(op33 "setwindow pcb\n") close(op33) axlShell(sprintf(nil "scriptmode +invisible +noinfo;replay set_nca.scr;")) sh("del set_nca.scr") ) ; skill load("test1.il") |
jet2001 发表于 2020-11-6 11:57 700 2000是什么意思呢 |
| 5555555555555 |
| 帮你顶一下 |
/1
关于我们|手机版|EDA365电子论坛网 ( 粤ICP备18020198号-1 )
GMT+8, 2025-11-22 11:22 , Processed in 0.203125 second(s), 31 queries , Gzip On.
地址:深圳市南山区科技生态园2栋A座805 电话:19926409050