Tisk v Eaglu

Snail Instruments snail@iol.cz
Pondělí Únor 7 14:43:39 CET 2005


A taky se da cely proces zautomatizovat, treba pres takovehle ULP
nx - pocet kopii ve smeru osy x
ny - pocet kopii ve smeru osy y
dx - rozmer desky v ose x
dy - rozmer desky v ose y

-------Zde zacina MULTIPLY.ULP---------
int nx=5;
int ny=4;
real dx=38.1;
real dy=30.48;
real mgb=6.0;
real mgs=0.1;

int i;

output("multiply.scr","t")
{
   printf("grid mm;\n");
   printf("set undo_log off;\n");
   printf("set display_mode fast;\n");
   printf("group (%f %f) (%f %f) (%f %f) (%f %f) (%f %f);\n",
           mgs,-mgb, dx+mgb,-mgb, dx+mgb,dy+mgb, mgs,dy+mgb, mgs,-mgb);
   printf("cut (0 0)\n");
   for (i=1; i<nx; i++)
   {
     printf("paste (%f 0);\n",i*dx);
     printf("win fit;\n");
   }
   printf("group (%f %f) (%f %f) (%f %f) (%f %f) (%f %f);\n",
           -mgb,mgs, nx*dx+mgb,mgs, nx*dx+mgb,dy+mgb, -mgb,dy+mgb, -mgb,mgs);
   printf("cut (0 0)\n");
   for (i=1; i<ny; i++)
   {
     printf("paste (0 %f);\n",i*dy);
     printf("win fit;\n");
   }
   printf("set display_mode real;\n");
   printf("set undo_log on;\n");
   printf("grid last;\n");
}




Další informace o konferenci Hw-list