home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 373.lha / route_v1.0 / poster < prev    next >
Encoding:
Internet Message Format  |  1990-04-25  |  2.0 KB

  1. Path: xanth!cs.odu.edu!Amiga-Request
  2. From: Amiga-Request@cs.odu.edu (Amiga Sources/Binaries Moderator)
  3. Newsgroups: comp.sources.amiga
  4. Subject: v90i151: route 1.0 - printed circuit board router, Part01/06
  5. Message-ID: <12281@xanth.cs.odu.edu>
  6. Date: 23 Apr 90 00:08:39 GMT
  7. Sender: tadguy@cs.odu.edu
  8. Reply-To: finkel%TAURUS.BITNET@CUNYVM.CUNY.EDU
  9. Lines: 2343
  10. Approved: tadguy@cs.odu.edu (Tad Guy)
  11. X-Mail-Submissions-To: Amiga@cs.odu.edu
  12. X-Post-Discussions-To: comp.sys.amiga
  13.  
  14. Submitted-by: finkel%TAURUS.BITNET@CUNYVM.CUNY.EDU
  15. Posting-number: Volume 90, Issue 151
  16. Archive-name: applications/route-1.0/part01
  17.  
  18. Enclosed is a C based PCB autorouter I found on a BBS ( Ciarcia's
  19. circuit cellar BBS ). It seems the file was picked up from Usenet. I
  20. tried mailing the author but got no reply.
  21.  
  22. Anyhow, the program was for an AT with an EGA monitor. I ported the
  23. autorouter and the previewer, but not the PCB printer, since it was
  24. intended for an HP LaserJet II printer, which I don't have. ...
  25.  
  26. The original previewer stored the different PCB patterns ( which includes
  27. holes, horizontal,vertical and diagonal lines, line corners, etc. ) in
  28. an integer matrix , with 1 for 'on' and  0 for 'off'. There are about
  29. 30 different patterns in 4 different sizes. The program used a routine
  30. similar to WritePixel to draw the PCB on the screen. not only was this slow
  31. ( about 10 seconds on a 12MHz AT for a full size board, with the program
  32. compiled for 286 instruction set, and 15 seconds for a direct port of
  33. the same program on the Amiga using WritePixel() ), but these arrays made
  34. the program much bigger than it should have been. I converted the previewer
  35. to use packed bitmap arrays ( like Image structures ), and use the
  36. BltPattern() routine to draw each PCB pattern, and now the screen update
  37. time has gone down to 2 seconds for a full board!
  38.  
  39. I kept all the old files in a seperate directory called 'old'. The
  40. original bitmap files are needed for the printer program which I still
  41. didn't port.  
  42.  
  43. [ the ``old'' directory is included in the sources posting only  ...tad]
  44.  
  45. Udi
  46.