home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / windows / windxy.zip / WINDXF.DOC < prev    next >
Text File  |  1990-11-25  |  4KB  |  102 lines

  1.                                 WinDXF
  2.  
  3.                        A Windows 3.0 DXF Viewer
  4.  
  5.                           November 25, 1990
  6.  
  7.                     Copyright (c) 1990, Greg Leman
  8.                       4600 University Drive #212
  9.                            Durham, NC 27707
  10.  
  11.  
  12. This program allows you to import AutoCAD DXF files into Windows 3.0
  13. programs.  It reads DXF files and exports them to either Windows
  14. Metafile format (.wmf) or to the Clipboard.  Likewise, you can view
  15. the contents of a DXF file or a Windows Metafile in a window.
  16.  
  17. This program and the accompanying source code are available for your
  18. use and enjoyment.  The author makes no warranties whatsoever.  Use
  19. and abuse this program.  If you find the program to be useful, a
  20. $5.00 contribution to the author is greatly appreciated.  In return,
  21. the author will be more likely to release future programs via the
  22. shareware method.  Using the program without making a contribution
  23. will only serve to hinder the shareware process which you are
  24. abusing.
  25.  
  26. You may use the source code or any derivative in your own products as
  27. long as you keep my copyright intact and clearly legible.  If you're
  28. making money off of my code, then the $5.00 contribution is heavily
  29. suggested.
  30.  
  31. To use the program, start it up and click on the "File" menu.  A
  32. pop-up menu with the following options will appear:
  33.  
  34.   Read DXF...       - a dialog box allows you to search for a file
  35.                       ending in the .DXF suffix.  Click on a file and
  36.                       the file is drawn in the window.
  37.  
  38.   Read Metafile...  - a dialog box allows you to search for a file
  39.                       ending in the .WMF suffix.  Click on a file and
  40.                       the file is drawn in the window.
  41.  
  42.   Exit              - Choose this option to exit windxf.    
  43.  
  44.   About             - The classic about box, with another plea for
  45.                       you to make a contribution to the author.
  46.  
  47. After a picture is visible, you may also select from the draw menu. 
  48. This menu has the following options:
  49.  
  50.   Redraw            - Redraws the current drawing in "fast" mode. 
  51.                       Useful for when you've changed the size of the
  52.                       window.  
  53.  
  54.   Draw to Metafile  - A Dialog box prompts you for the name of a
  55.                       metafile.  The current drawing is then dumped
  56.                       to that metafile.
  57.  
  58.   Draw to Clipboard - The current drawing is "played" to the
  59.                       clipboard.  Keep in mind that the program on
  60.                       the receiving end must be able to interpret
  61.                       METAPICTs from the clipboard.
  62.         
  63.     
  64. Obvious uses for this program include grabbing a DXF drawing and
  65. creating a metafile for use within your Windows programs.  Many
  66. Windows drawing programs also recognize the .wmf extension.
  67.  
  68. Two DXF files that I grabbed from bbs's are included: 50STATES.DXF
  69. and TANKER.DXF.  There weren't any credits included with the .zip
  70. files, so I hope I'm not hurting anyone's feelings by distributing
  71. them.  The file TANKER.WMF is included as an example of what a
  72. translated metafile looks like.
  73.  
  74. My purpose in creating this program was to learn about the DXF
  75. format and programming Windows.  Therefore, there are many features
  76. which were left out and I invite people to enhance it to their
  77. heart's content.  Likewise, the DXF translator is isolated from
  78. the rest of the program and is fairly portable.  Replacing the
  79. Windows graphics calls for other platforms should be quite easy.
  80. I've had it running under Zortech, Dr Halo, and Sunview.
  81.  
  82. Limitations:
  83.  
  84.         - The DXF translator only recognizes linework.  Only
  85.           lines and polylines are recognized.  However, it is
  86.           very easy to append more operations to the translator
  87.           and more will be included in future releases.
  88.            
  89.         - The DXF translator doesn't recognize layers, which
  90.           limits everything to Black and white.  Another future
  91.           enhancement.
  92.  
  93.         - The i/o routines aren't buffered, which makes translating
  94.           a DXF file excruciatingly slow.  
  95.  
  96.         - The make file WINDXF assumes my directory setup.  Simply
  97.           change the search paths for the libraries and you'll be
  98.           okay.  
  99.  
  100. Comments? Suggestions?  I can be reached at MäC's Place BBS
  101. 919-891-1111 (a PCBOARD).  Give Mac a call!!
  102.