PCB抄板专家世纪芯官方网站——PCB抄板网!   
  首页  公司介绍  资讯中心  案例展示  服务推荐  常见问题  联系我们  
24小时客服热线: +86-0755-83035861
PCB抄板资料站
世纪芯寻找疑难项目隆重启幕
世纪芯芯片解密取得重大突破
世纪芯PCB抄板服务流程
世纪芯保证PCB抄板100%准确
资讯中心
PCB抄板之PROTEL到ALLEGRO的转换技巧

PCB抄板之PROTEL到ALLEGRO的转换技巧

http://www.pcbcb.com    2009年09月21日09:57  PCB抄板网    我要咨询
xt", "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,"%s\n", "# Allegro script");
  fprintf(fp2,"%s\n", "version 13.6");
  fprintf(fp2,"%s\n", "place refdes");
  while (!feof(fp1)) {
  fscanf(fp1,"%s", refdes);
  fscanf(fp1,"%s", Pattern);
  fscanf(fp1,"%f", &midx);
  fscanf(fp1,"%f", &midy);
  fscanf(fp1,"%f", &refx);
  fscanf(fp1,"%f", &refy);
  fscanf(fp1,"%f", &padx);
  fscanf(fp1,"%f", &pady);
  fscanf(fp1,"%s", tb);
  fscanf(fp1,"%f", &rotation);
  fprintf(fp2, "fillin %c%s%c \n",tmp,refdes,tmp);
  if (rotation!=0) {
  fprintf(fp2, "rotate\n");
  fprintf(fp2, "iangle %f\n", rotation);
  };
  char yy=tb[0];
  if (yy!='T') fprintf(fp2, "pop mirror\n");
  fprintf(fp2, "pick %f %f \n", padx,pady);
  fprintf(fp2, "next \n");
  };
  fprintf(fp2, "done");
  fclose(fp1);
  fclose(fp2);

关于我们 ┊ about shijixin ┊ 服务项目 ┊ 成功案例 ┊ 常见问题 ┊ 合作伙伴 ┊ 联系我们 ┊ 加入我们 
Copyright © 1998 - 2009 www.pcbcb.com. All Rights Reserved
PCB抄板资料站--国内最专业的PCB抄板信息综合门户!
联系地址:深圳市福田区国际科技大厦2603单元 联系电话:0755-83035861/62/63 Design By :www.pcbcb.com