2014-06-15から1日間の記事一覧

EAGLEでPadのドリル穴の表示/非表示を切り替える

http://web.mit.edu/xavid/arch/i386_rhel4/help/67.htm SET DISPLAY_MODE REAL | NODRILL;

fab modulesを自動化するシェルスクリプト

cutoutrml #!/bin/sh if [ $# -ne 1 ]; then echo "usage: cutoutrml <file.png>" exit 1 fi png_path $1 "fab_mod.path" 1.1 0.79 1 0.5 0.5 0.5 -0.6 -1.7 0.6 path_rml "fab_mod.path" "cutout.rml" 4 1 1.0 0 0 rm fab_mod.path millrml #!/bin/sh if [ $# -ne 1 ]</file.png>…

EAGLEで自動的にポリゴンを貼るスクリプト 

poly.ulp string buf; string Result; real xmax; real ymax; string xmax_str; string ymax_str; board(B){ int xarr[]; int yarr[]; int n=0; B.wires(W) { if (W.layer == 20){ xarr[n] = W.x1; xarr[n++] = W.x2; yarr[n] = W.y1; yarr[n++] = W.y2; n++…

EAGLEで自動でdimensionをリサイズするスクリプト

resize.ulp string buf; string Result; real xmax; real ymax; string xmax_str; string ymax_str; board(B){ int xarr[]; int yarr[]; int n=0; B.elements(E){ xarr[n] = E.x; yarr[n] = E.y; n++; } sprintf(buf,"%d",B.grid.unit); Result += "Grid uni…

EAGLEで部品情報を得るスクリプト

getelem.ulp string Results; string buf=""; string xstring; string ystring; board(B){ int xarr[]; int yarr[]; int n=0; B.elements(E){ Results += "----------\n"; Results += "E name: "+E.name + "\n"; Results += "E value: "+E.value + "\n"; spr…

EAGLEでschematicをインポートするulp

template.ulp string currentdir; string fname; string template; string cmd=""; string fileName=""; template = "~/Documents/eagle/AVR_template/template.sch"; if (schematic) schematic(S) { currentdir = filedir(S.name); fname = filename(S.name…