home *** CD-ROM | disk | FTP | other *** search
/ Share Gallery 1 / share_gal_1.zip / share_gal_1 / GR / GR506.ZIP / ACAD2.EXE / CADWRITE.DOC < prev    next >
Text File  |  1987-08-25  |  9KB  |  199 lines

  1.  
  2.  
  3.  
  4.                                           CADWRITE
  5.                                       by Eric D. Brown
  6.                                         Version 1.0
  7.                             Copyright (c) 1987  All Rights Reserved.
  8.  
  9.                   CadWrite is a shareware program which will take a text file 
  10.              and create an AutoCad compatible DXF file which may be read into 
  11.              an AutoCad drawing.  This was tested with version 2.6 but should 
  12.              work with previous versions.
  13.  
  14.                   Currently, CadWrite does not support WordStar or Word 
  15.              Perfect files.  It will only work with pure text files.  If there 
  16.              is adequate response, I will consider writing a new version of 
  17.              the program which will translate word processor files.
  18.  
  19.                   CadWrite was written in Turbo C in the tiny model and 
  20.              optimized for size.  CadWrite requires a math coprocessor and MS-
  21.              DOS or PC-DOS and will run on most IBM PC compatibles.
  22.  
  23.                   I have written this program with the intent of adding it as 
  24.              an external program which would be callable from inside an 
  25.              AutoCad drawing.  If your version of AutoCad supports AutoLisp, 
  26.              you can use the lisp program in the file CADWRITE.LSP to access 
  27.              the program and to insert the resultant DXF file into the current 
  28.              drawing.
  29.  
  30.              RUNNING CADWRITE
  31.  
  32.                   CadWrite is invoked with the command:
  33.  
  34.                        CADWRITE [insertion point]
  35.  
  36.              where the insertion point is specified as one argument with the X 
  37.              and Y components separated by a comma.  This is compatible with 
  38.              AutoCad's "getpoint" function using AutoLisp.  If no insertion 
  39.              point is provided, the point 0,0 is used.  As an example, the 
  40.              following command will invoke CadWrite with an insertion point of 
  41.              1,1.
  42.  
  43.                        CADWRITE 1,1
  44.  
  45.              The insertion point is used to calculate the starting point for 
  46.              the first line of text by subtracting the line spacing from the Y 
  47.              value.  The starting location of subsequent lines will be 
  48.              calculated in the same way.  CadWrite automatically creates a 
  49.              file named $CMD.DXF as output.  This file must be loaded into 
  50.              your drawing using the DXFIN command.
  51.  
  52.                   After CadWrite is invoked, you will be prompted for the text 
  53.              file, the height of the text, the X scale factor, the obliquing 
  54.              angle, the text style, and the vertical spacing.  You may respond 
  55.              to each by hitting return to accept the default value.  These 
  56.              items are similar to the normal text command with the exception 
  57.              of the line spacing.  Normally the font file, which is specified 
  58.              by the style command, provides the line spacing information but, 
  59.              this information is not available when the DXF file is created.  
  60.              Therefore, you may input the vertical spacing as a fraction of 
  61.              the text height.  The default value is the spacing used in the 
  62.  
  63.  
  64.                    Copyright (c) 1987 CadWrite.  All Rights Reserved.
  65.  
  66.  
  67.                                                                CadWrite  page 2
  68.  
  69.  
  70.              "TXT" font and should work for most other fonts.  If you wish to 
  71.              specify your own value, it should be greater than 1.0 or the 
  72.              lines of text will overlap.
  73.  
  74.              ACCESSING CADWRITE FROM INSIDE AUTOCAD
  75.  
  76.                   To invoke CadWrite from AutoCad the ACAD.PGP file must be 
  77.              edited to include the line: 
  78.  
  79.                        READTEXT,CADWRITE,125000,*insertion point: ,0
  80.  
  81.              this tells AutoCad that the command READTEXT is used to invoke 
  82.              CadWrite and AutoCad will prompt for an insertion point to be 
  83.              added to the command line.  It also indicates that 125000 bytes 
  84.              of memory are to be released for CadWrite's use.  Refer to your 
  85.              users manual for more information.
  86.  
  87.                   As noted above, the entire process may be automated using 
  88.              AutoCad's AutoLisp feature with the lisp program I have provided.  
  89.              If you are using the standard AutoCad menu (ACAD.MNU) you may add 
  90.              this directly to the menu.  Please read your users manual's 
  91.              section regarding the customizing of the menu before trying this.  
  92.              The following is a sample menu which is accessed from the utility 
  93.              menu by selecting the "external commands" item (version 2.6).
  94.  
  95.              **EXCOMDS 3
  96.              [CATALOG]CATALOG
  97.  
  98.                .
  99.                .
  100.                .
  101.  
  102.              [TYPE:]TYPE
  103.              [READTEXT:]+
  104.              (setq rt1 (getvar "CMDECHO"))+
  105.              (setvar "CMDECHO" 0)+
  106.              (setq insptrt (getpoint "insertion point: "));\+
  107.              (command "readtext" insptrt)+
  108.              (setq dxfrt "$cmd")+
  109.              (command "dxfin" dxfrt)+
  110.              (setq dxfrt "erase $cmd.dxf")+
  111.              (command "sh" dxfrt)+
  112.              (setvar "CMDECHO" RT1)+
  113.              (graphscr)
  114.  
  115.                   The items from "[READTEXT:]+" through "(graphscr)" are to be 
  116.              added to the existing EXCOMDS submenu and is similar to 
  117.              CADWRITE.LSP.  This allows you to select the insertion point as 
  118.              you would if you where inserting a block and, it erases the DXF 
  119.              file when it's finished.  You may wish to use the lisp program I 
  120.              have provided if you normally type in the commands from the 
  121.              keyboard or can't modify the menu.  To do so type in the 
  122.              following at the "Command:" prompt.
  123.  
  124.                        (load "cadwrite")
  125.                        cadwrite
  126.  
  127.  
  128.  
  129.  
  130.                    Copyright (c) 1987 CadWrite.  All Rights Reserved.
  131.  
  132.  
  133.                                                                CadWrite  page 3
  134.  
  135.  
  136.              LICENSE AND SUPPORT     
  137.  
  138.                   You may copy and distribute this program freely, provided 
  139.              that:
  140.                  1)   No fee is charged for such copying and distribution, and
  141.                  2)   It is distributed ONLY in its original, unmodified 
  142.                       state.
  143.  
  144.                   If you like this program, and find it of use, then your 
  145.              contribution will be appreciated.  If you are using this product 
  146.              in a commercial environment, then the contribution is not 
  147.              voluntary.
  148.  
  149.                   AutoCad and AutoLisp are registered trademarks of Autodesk 
  150.              Inc.  IBM is a registered trademark of the International Business 
  151.              Machine Corporation. MS-DOS is a registered trademark of 
  152.              Microsoft Inc.
  153.  
  154.              Copyright (c) 1987 CadWrite.  All Rights Reserved.
  155.  
  156.              You are free to use, copy and distribute CadWrite for non-
  157.              commercial use IF:
  158.  
  159.              NO FEE IS CHARGED FOR USE, COPYING OR DISTRIBUTION.
  160.  
  161.              IT IS NOT MODIFIED IN ANY WAY.
  162.  
  163.              Clubs and user groups may charge a nominal fee (less than $10)  
  164.              for expenses and handling while distributing CadWrite.
  165.  
  166.              Volume discounts, site licenses, commercial licenses and  custom 
  167.              versions of CadWrite are available.  Write to the address below 
  168.              for more information.
  169.  
  170.              This program is provided AS IS without any warranty, expressed or 
  171.              implied, including but not limited to fitness for a particular 
  172.              purpose.
  173.  
  174.                   If you find this program useful, a contribution of $25 (US) 
  175.              would be appreciated.  With each contribution of $45 or more you 
  176.              will be registered to receive a diskette with the next  version 
  177.              of CadWrite when available.  Please state the current version of 
  178.              CadWrite that you have.  Send contributions to:
  179.  
  180.                             Eric Brown
  181.                             4609 Ellenwood Dr #203
  182.                             Los Angeles, CA 90041
  183.  
  184.                   If you have any questions or suggestions, you may write to 
  185.              me at the above address or contact me through COMPUSERV EMail 
  186.              [73537,2542].
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.                    Copyright (c) 1987 CadWrite.  All Rights Reserved.
  197.  
  198.  
  199.