Category : BBS Programs+Doors
Archive   : PCB2DXF.ZIP
Filename : DXFPLINE.C

 
Output of file : DXFPLINE.C contained in archive : PCB2DXF.ZIP
#include
#include "dxf.h"

/* layer, color, beginning thickness, ending thickness */

static char template1[] = "0\nPOLYLINE\n8\n%d\n62\n%d\n70\n0\n"
"66\n1\n40\n%f\n41\n%f\n";

/* layer, x, y */

static char template2[] = "0\nVERTEX\n8\n%d\n%d\n%f\n%d\n%f\n";

/* layer */

static char template3[] = "0\nSEQEND\n8\n%d\n";

int DxfPline(FILE *file, int layer, int color, double width, int no_points,
double x[], double y[])
{
int i;

fprintf( file, template1, layer, color, width, width );
for( i = 0; i < no_points; i++ )
fprintf( file, template2, layer, 10, x[i], 20, y[i] );
fprintf( file, template3, layer );
}


  3 Responses to “Category : BBS Programs+Doors
Archive   : PCB2DXF.ZIP
Filename : DXFPLINE.C

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/