home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / alt / cad / autocad / 1569 < prev    next >
Encoding:
Text File  |  1992-11-24  |  2.0 KB  |  49 lines

  1. Newsgroups: alt.cad.autocad
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!caen!batcomputer!lynx@msc.cornell.edu!grits.msc.cornell.edu!putnam
  3. From: putnam@grits.msc.cornell.edu (Albert M. Putnam)
  4. Subject: HPGL to DXF in PERL available 
  5. Message-ID: <1992Nov23.230417.18198@msc.cornell.edu>
  6. Keywords: HPGL DXF PERL
  7. Sender: news@msc.cornell.edu
  8. Reply-To: putnam@msc.cornell.edu
  9. Organization: Materials Science Center
  10. Date: Mon, 23 Nov 1992 23:04:17 GMT
  11. Lines: 36
  12.  
  13. I have available a PERL program to convert
  14. HPGL to AutoCAD dxf format (hpgl2dxf.prl).
  15.  
  16. Why PERL? - It was available at our site, and PERL is reasonably easy
  17.         to obtain for any platform.
  18.         I wanted transparent buffer management (N/A in C).
  19. Why DXF? - There is a program out there (A very nice C program
  20.         called HPGL2SCR by William Palmer) 
  21.         that converts HPGL to AutoCAD script
  22.         but, on our platform anyway, script input 
  23.         is unacceptably slow and DXF format is preferable.
  24.  
  25. On an IBM 520 workstation this PERL program can convert 
  26. a 50K HPGL file in about  20-30 seconds to a DXF file that is about 150K. 
  27. Then AutoCAD V11 can "DXFIN" that file in about 5 seconds.
  28.  
  29. The program should be fairly easy to expand to include new entities,
  30. and there is a sister PERL program that converts HPGL to script
  31. (a la HPGL2SCR) that includes a larger fraction of the HPGL object types.
  32. If one were brave one could convert the programs to C with a little
  33. bit of I/O buffer management coding.
  34.  
  35. The program has a serious bug involving the label (LB) HPGL command.
  36. If a ";" is part of the label string then things could go rather awry.
  37. I actually have this vague recollection about an old HP7220 that I
  38. used years ago that DID go awry if there were delimiters or
  39. control characters in the text - so maybe this is a feature?
  40.  
  41. If you would like a copy send me e-mail.
  42. If you have a format preference (uuencoded, shar, etc.)
  43. I can TRY and send it as you wish.
  44. If I get overwhelmed I will try and have the programs archived somewhere.
  45.  
  46. Albert Putnam
  47. putnam@msc.cornell.edu
  48.  
  49.