Protel到Allegro/CCT格式转换

EDA/PCB 时间:2012-05-08来源:网络

FILE fp1, fp2;

AfxMessageBox(hello);

fp1=fopen(pick.txt, rt);

if (fp1==NULL) AfxMessageBox(Can not open the file!!!);

fp2=fopen(place.txt,wt);

if (fp2==NULL) AfxMessageBox(Can not create the file!!!);

char refdes[5], Pattern[5];

float midx,midy,refx,refy,padx,pady,rotation;

char tb[1];

char tmp=';

fprintf(fp2,%sn, # Allegro script);

fprintf(fp2,%sn, version 13.6);

fprintf(fp2,%sn, place refdes);

while (!feof(fp1)) ;

char yy=tb[0];

if (yy!=‘T‘) fprintf(fp2, pop mirrorn);

fprintf(fp2, pick %f %f n, padx,pady);

fprintf(fp2, next n);

};

fprintf(fp2, done);

fclose(fp1);

fclose(fp2);

以上简单介绍了Protel到Allegro转化的方法,希望能对读者的设计工作有所帮助。

1 2

关键词: Allegro Protel CCT 格式转换

加入微信
获取电子行业最新资讯
搜索微信公众号:EEPW

或用微信扫描左侧二维码

相关文章

查看电脑版