home *** CD-ROM | disk | FTP | other *** search
/ Between Heaven & Hell 2 / BetweenHeavenHell.cdr / 500 / 449 / draft2.doc < prev    next >
Text File  |  1988-07-23  |  140KB  |  3,956 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.                                    PC-Draft II (tm)
  16.  
  17.                                      User Manual
  18.  
  19.                                      Release 3.2
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.                   (C) Copyright 1986,1987,1988 - All Rights reserved
  47.  
  48.                                    Natural Software
  49.                                 19 South fifth Street
  50.                              St. Charles Illinois, 60174
  51.                                     (312) 377-7320
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.      LICENSE
  89.  
  90.      THE PC-Draft II SOFTWARE AND MANUAL IS COPYRIGHTED, ALL RIGHTS ARE RESE-
  91.      RVED. YOU HAVE PURCHASED A LICENSE TO USE THIS SOFTWARE ON ONE MACHINE AT A
  92.      TIME. YOU ARE AUTHORIZED TO MAKE COPIES OF PC-DRAFT II FOR THE SOLE PURPOSE
  93.      OF BACKING UP YOUR SOFTWARE AND PROTECTING YOUR INVESTMENT FROM LOSS.
  94.  
  95.      Note: this copy of PC-Draft II is being distributed as ShareWare. This
  96.      means that you may copy the disk just as you received it and you may give
  97.      it to others for their trial use. You are also permitted and encouraged to
  98.      upload this version to electronic bulletin board services. You may not,
  99.      however resell or collect any fee for the distribution of PC-Draft without
  100.      the permission of Natural Software. (This does not include the normal fees
  101.      for using bulletin boards.) If you continue to use PC-Draft II after your
  102.      trial use, you must pay the purchase price as detailed below.
  103.  
  104.  
  105.      WARRANTY
  106.  
  107.      THIS SOFTWARE WILL PERFORM AS DESCRIBED HEREIN ONLY IF PROPERLY APPLIED.
  108.      OUR LIABILITY TO YOU IS LIMITED TO REPLACING THE SOFTWARE (FOR REGISTERED
  109.      USERS). WE HAVE NO LIABILITY TO YOU FOR ANY DAMAGE OR LOSS, INCLUDING
  110.      SPECIAL, INCIDENTAL, OR CONSEQUENTIAL, CAUSED BY THIS SOFTWARE, DIRECTLY OR
  111.      INDIRECTLY.
  112.  
  113.      YOU AGREE TO THE TERMS OF THIS LICENSE BY YOUR DECISION TO USE THIS
  114.      SOFTWARE.
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.                                           i
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141.                                   Table of contents
  142.  
  143.  
  144.      Introduction  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .   1
  145.           Shareware  . . . . . . . . . . . . . . . . . . . . . . . . . . . .   2
  146.                What registered users get . . . . . . . . . . . . . . . . . .   2
  147.           System Requirements  . . . . . . . . . . . . . . . . . . . . . . .   3
  148.           Terminology  . . . . . . . . . . . . . . . . . . . . . . . . . . .   4
  149.           Installation . . . . . . . . . . . . . . . . . . . . . . . . . . .   4
  150.                MicroSoft Mouse . . . . . . . . . . . . . . . . . . . . . . .   5
  151.                Other Mice  . . . . . . . . . . . . . . . . . . . . . . . . .   5
  152.           Printers . . . . . . . . . . . . . . . . . . . . . . . . . . . . .   6
  153.           Files used . . . . . . . . . . . . . . . . . . . . . . . . . . . .   6
  154.           File Names . . . . . . . . . . . . . . . . . . . . . . . . . . . .   6
  155.  
  156.      The Basics  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .   8
  157.           Starting PC-Draft  . . . . . . . . . . . . . . . . . . . . . . . .   8
  158.           Cursor Movement  . . . . . . . . . . . . . . . . . . . . . . . . .   8
  159.                Cursor Increment  . . . . . . . . . . . . . . . . . . . . . .   8
  160.                Suspend Cursor  . . . . . . . . . . . . . . . . . . . . . . .   8
  161.                Change Cursor . . . . . . . . . . . . . . . . . . . . . . . .   9
  162.           Menu Selections  . . . . . . . . . . . . . . . . . . . . . . . . .   9
  163.                Display Menu Bar  . . . . . . . . . . . . . . . . . . . . . .   9
  164.           The Control Panel  . . . . . . . . . . . . . . . . . . . . . . . .  10
  165.           The Drawing Area . . . . . . . . . . . . . . . . . . . . . . . . .  10
  166.           Moving around  . . . . . . . . . . . . . . . . . . . . . . . . . .  11
  167.                Direct Move . . . . . . . . . . . . . . . . . . . . . . . . .  11
  168.                Home  . . . . . . . . . . . . . . . . . . . . . . . . . . . .  11
  169.           Using markers  . . . . . . . . . . . . . . . . . . . . . . . . . .  11
  170.                Setting markers . . . . . . . . . . . . . . . . . . . . . . .  12
  171.                Jump to marker  . . . . . . . . . . . . . . . . . . . . . . .  12
  172.           Clearing the Screen  . . . . . . . . . . . . . . . . . . . . . . .  12
  173.           Erasing  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  12
  174.           Undo Command . . . . . . . . . . . . . . . . . . . . . . . . . . .  13
  175.           Saving Your Work . . . . . . . . . . . . . . . . . . . . . . . . .  13
  176.                Directory Search  . . . . . . . . . . . . . . . . . . . . . .  14
  177.           Ending PC-Draft  . . . . . . . . . . . . . . . . . . . . . . . . .  15
  178.  
  179.      Drawing Commands  . . . . . . . . . . . . . . . . . . . . . . . . . . .  16
  180.                Line  . . . . . . . . . . . . . . . . . . . . . . . . . . . .  16
  181.                Multi-Line  . . . . . . . . . . . . . . . . . . . . . . . . .  16
  182.                Free Draw . . . . . . . . . . . . . . . . . . . . . . . . . .  17
  183.                Box . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  17
  184.                Rectangle . . . . . . . . . . . . . . . . . . . . . . . . . .  17
  185.                Circle  . . . . . . . . . . . . . . . . . . . . . . . . . . .  17
  186.                Ellipse . . . . . . . . . . . . . . . . . . . . . . . . . . .  17
  187.                Curve . . . . . . . . . . . . . . . . . . . . . . . . . . . .  17
  188.                Paint . . . . . . . . . . . . . . . . . . . . . . . . . . . .  17
  189.                Arc . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  18
  190.                Text  . . . . . . . . . . . . . . . . . . . . . . . . . . . .  18
  191.                Write . . . . . . . . . . . . . . . . . . . . . . . . . . . .  19
  192.  
  193.  
  194.                                           ii
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206.  
  207.                Object  . . . . . . . . . . . . . . . . . . . . . . . . . . .  19
  208.                Drop Object . . . . . . . . . . . . . . . . . . . . . . . . .  20
  209.                Object Functions  . . . . . . . . . . . . . . . . . . . . . .  20
  210.                Transfer to Font  . . . . . . . . . . . . . . . . . . . . . .  20
  211.                Zoom  . . . . . . . . . . . . . . . . . . . . . . . . . . . .  21
  212.           Goodies  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  21
  213.                Just paint  . . . . . . . . . . . . . . . . . . . . . . . . .  21
  214.                SpraY Can . . . . . . . . . . . . . . . . . . . . . . . . . .  22
  215.                Kursor  . . . . . . . . . . . . . . . . . . . . . . . . . . .  22
  216.                Mouse cursor  . . . . . . . . . . . . . . . . . . . . . . . .  22
  217.                grId  . . . . . . . . . . . . . . . . . . . . . . . . . . . .  22
  218.                Quick view  . . . . . . . . . . . . . . . . . . . . . . . . .  23
  219.                sNap  . . . . . . . . . . . . . . . . . . . . . . . . . . . .  23
  220.                Color . . . . . . . . . . . . . . . . . . . . . . . . . . . .  23
  221.                Window  . . . . . . . . . . . . . . . . . . . . . . . . . . .  23
  222.  
  223.      Patterns  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  24
  224.           Loading Patterns . . . . . . . . . . . . . . . . . . . . . . . . .  24
  225.           Selecting Patterns . . . . . . . . . . . . . . . . . . . . . . . .  24
  226.           Creating and changing Patterns . . . . . . . . . . . . . . . . . .  24
  227.           Saving Patterns  . . . . . . . . . . . . . . . . . . . . . . . . .  24
  228.  
  229.      Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  25
  230.           Saving Objects . . . . . . . . . . . . . . . . . . . . . . . . . .  25
  231.           Retrieving Objects . . . . . . . . . . . . . . . . . . . . . . . .  25
  232.  
  233.      Fonts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  26
  234.           Using Fonts  . . . . . . . . . . . . . . . . . . . . . . . . . . .  26
  235.           Creating, changing Fonts . . . . . . . . . . . . . . . . . . . . .  26
  236.           Saving Fonts . . . . . . . . . . . . . . . . . . . . . . . . . . .  27
  237.  
  238.      Macros  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  29
  239.           Using Macros . . . . . . . . . . . . . . . . . . . . . . . . . . .  29
  240.           Creating Macros  . . . . . . . . . . . . . . . . . . . . . . . . .  29
  241.           Suspend Cursor Increment . . . . . . . . . . . . . . . . . . . . .  29
  242.           Relative [+/-] Cursor Increment  . . . . . . . . . . . . . . . . .  30
  243.           .MAC file structure  . . . . . . . . . . . . . . . . . . . . . . .  30
  244.           Importing text files:  . . . . . . . . . . . . . . . . . . . . . .  30
  245.  
  246.      Graphs  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  32
  247.           Editing Points . . . . . . . . . . . . . . . . . . . . . . . . . .  32
  248.           Saving Points  . . . . . . . . . . . . . . . . . . . . . . . . . .  32
  249.           loading Points . . . . . . . . . . . . . . . . . . . . . . . . . .  32
  250.           Graph Type . . . . . . . . . . . . . . . . . . . . . . . . . . . .  32
  251.           Drawing graphs . . . . . . . . . . . . . . . . . . . . . . . . . .  33
  252.  
  253.      Drawing Mode  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  34
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.                                          iii
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272.  
  273.      Printing  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  35
  274.           Printer resolution modes . . . . . . . . . . . . . . . . . . . . .  35
  275.                IBM dot matrix  . . . . . . . . . . . . . . . . . . . . . . .  36
  276.                Epson dot matrix  . . . . . . . . . . . . . . . . . . . . . .  36
  277.                HP LaserJet+  . . . . . . . . . . . . . . . . . . . . . . . .  37
  278.                IDS Microprism  . . . . . . . . . . . . . . . . . . . . . . .  37
  279.                C.Itoh 8510-1550  . . . . . . . . . . . . . . . . . . . . . .  37
  280.                GEM .IMG  . . . . . . . . . . . . . . . . . . . . . . . . . .  38
  281.           Print current screen window  . . . . . . . . . . . . . . . . . . .  38
  282.           Print full drawing . . . . . . . . . . . . . . . . . . . . . . . .  38
  283.           Print partial screen . . . . . . . . . . . . . . . . . . . . . . .  38
  284.  
  285.      Screen Capture  . . . . . . . . . . . . . . . . . . . . . . . . . . . .  39
  286.  
  287.      The PIX graphics language . . . . . . . . . . . . . . . . . . . . . . .  41
  288.                Starting PIX  . . . . . . . . . . . . . . . . . . . . . . . .  42
  289.                Trace mode  . . . . . . . . . . . . . . . . . . . . . . . . .  42
  290.                Exit PIX  . . . . . . . . . . . . . . . . . . . . . . . . . .  42
  291.           PIX Commands . . . . . . . . . . . . . . . . . . . . . . . . . . .  43
  292.                Variables . . . . . . . . . . . . . . . . . . . . . . . . . .  43
  293.                Assign (LET)  . . . . . . . . . . . . . . . . . . . . . . . .  44
  294.                Increment . . . . . . . . . . . . . . . . . . . . . . . . . .  44
  295.                Decrement . . . . . . . . . . . . . . . . . . . . . . . . . .  44
  296.           Cursor Movement Commands . . . . . . . . . . . . . . . . . . . . .  44
  297.                Gotoxy  . . . . . . . . . . . . . . . . . . . . . . . . . . .  45
  298.           Screen moves . . . . . . . . . . . . . . . . . . . . . . . . . . .  45
  299.           Drawing Commands . . . . . . . . . . . . . . . . . . . . . . . . .  45
  300.                Arc . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  47
  301.           Non Drawing Commands . . . . . . . . . . . . . . . . . . . . . . .  48
  302.           File Commands  . . . . . . . . . . . . . . . . . . . . . . . . . .  48
  303.           Program Control Statements . . . . . . . . . . . . . . . . . . . .  49
  304.           Other Commands . . . . . . . . . . . . . . . . . . . . . . . . . .  49
  305.           PC-Draft commands not supported  . . . . . . . . . . . . . . . . .  49
  306.  
  307.      Summary of PIX commands . . . . . . . . . . . . . . . . . . . . . . . .  50
  308.  
  309.      Summary of Drawing Commands . . . . . . . . . . . . . . . . . . . . . .  52
  310.  
  311.      Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  53
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.                                           iv
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.  
  335.  
  336.  
  337.  
  338.  
  339.                                      Introduction
  340.  
  341.  
  342.      PC-Draft II is a high resolution pixel oriented drawing and graphing
  343.      utility, which is designed to facilitate a variety of drawing and drafting
  344.      needs.  Some of PC-Draft II's features:
  345.  
  346.                o    You can produce drawings up to 1280 by 700 dots using IBM's
  347.                     color graphic adaptor high resolution graphics mode (640 x
  348.                     200 dots per screen). Such a drawing will more than fill an
  349.                     8-1/2 x 11 inch printed output (at 150 dots per inch resolu-
  350.                     tion).
  351.  
  352.                o    Built-in functions allow you to draw circles, lines, boxes,
  353.                     arcs and curves; draw bar, line and pie graphs; create
  354.                     patterns with which to fill areas; cut and paste objects and
  355.                     save objects to files for later use.  
  356.  
  357.                o    PC-Draft is both menu driven and command driven -- all
  358.                     drawing commands may be selected from the menus or may be
  359.                     entered by a single keystroke command such as [C] to draw a
  360.                     circle or [L] for line.
  361.  
  362.                o    You can zoom in to precisely edit one pixel at a time.
  363.  
  364.                o    You can record graphic keyboard macros saved in files for
  365.                     later playback and for animation effects.
  366.  
  367.                o    You can load and edit fonts. 
  368.  
  369.                o    You can print your drawings on a variety of printers includ-
  370.                     ing those compatible with IBM and Epson Dot matrix, HP
  371.                     Laserjet+, and HP DeskJet printers. Also you can save the
  372.                     output to the printer in a file for later batch printing.
  373.  
  374.                o    You can save portions of the screen or full drawings in GEM
  375.                     .IMG file format. These can then be directly imported into
  376.                     such Desk Top Publishing programs as Ventura Publisher and
  377.                     WordPerfect 5.0.
  378.  
  379.                o    Drawing and Pic files may be saved in compressed format to
  380.                     save disk space.
  381.  
  382.                o    You can set up to ten place markers anywhere in the drawing
  383.                     to jump to.
  384.  
  385.                o    Drawing grids are displayable at any spacing with optional
  386.                     "grid-lock" (Snap).
  387.  
  388.  
  389.  
  390.  
  391.  
  392.      Introduction                                                         Page 1
  393.  
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.  
  401.  
  402.  
  403.  
  404.  
  405.                o    A pop-up status panel shows x and y cursor position, posi-
  406.                     tion of the screen window in respect to the full drawing
  407.                     area, the current pattern, the current cursor increment
  408.                     value, and more.
  409.  
  410.                o    An undo function repairs damage done by your last command.
  411.  
  412.                o    A preview function displays the entire drawing on the
  413.                     screen.
  414.  
  415.                o    A graphics presentation language called PIX performs all PC-
  416.                     Draft II commands from a script you write without displaying
  417.                     any cursor or menu interaction. PIX allows you to create
  418.                     animated sequences of: loading screens, drawing forms and
  419.                     graphs and adding text and more.
  420.  
  421.                o    Another program: CAPTURE.COM allows you to capture screen
  422.                     images from other programs (both text and graphic screens),
  423.                     to be loaded into PC-Draft for enhancement and printing.
  424.  
  425.                o    The latest additions to the Font, Macro, and Object lib-
  426.                     raries are included.
  427.  
  428.  
  429.                     Shareware
  430.  
  431.                     PC-Draft II is copyrighted. It is not a public domain
  432.                     program. It is being distributed as Shareware, which means
  433.                     that unmodified copies of the software and documentation may
  434.                     be freely copied and shared. We ask in return that should
  435.                     you find PC-Draft II to be useful, you become a registered
  436.                     user. You become registered by sending $50.00 to:
  437.  
  438.  
  439.                                    Natural Software
  440.                                 19 South fifth Street
  441.                              St. Charles Illinois, 60174
  442.  
  443.  
  444.                     Or call with your VISA or MasterCard number: (312) 377-7320.
  445.                     The file: ORDER.FRM on the disk can be printed and used as
  446.                     an order form.
  447.  
  448.                     What do you get by becoming registered?
  449.  
  450.      What registered users get
  451.  
  452.                o    The latest version of the software without the introductory
  453.                     ShareWare screen.
  454.  
  455.  
  456.  
  457.  
  458.      Page 2                                                          PC-Draft II
  459.  
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.  
  467.  
  468.  
  469.  
  470.  
  471.                o    Free telephone support: You can talk directly to the author
  472.                     (Mike Allen). Many of the features in this latest version of
  473.                     PC-Draft came directly from suggestions and wishes from
  474.                     users. You can also communicate with the author via
  475.                     compuserve. Send an EMAIL message to Mike Allen (PID:
  476.                     70047,744)
  477.  
  478.                o    The latest additions to the Font, Macro, and Object
  479.                     libraries: They require too much disk space to distribute
  480.                     with the Shareware version. And, as a registered user you
  481.                     will be notified when new libraries become available.
  482.  
  483.                o    A collection of drawings made with PC-Draft II which you can
  484.                     incorporate into you own work.
  485.  
  486.                o    A typeset quality user manual profusely illustrated with
  487.                     drawings made with PC-Draft II and full of helpful hints.
  488.  
  489.                o    As a registered user you will be informed of new versions of
  490.                     PC-Draft.
  491.  
  492.                     The shareware philosophy is to pay smaller amounts for well
  493.                     crafted and useful software from developers who cannot spend
  494.                     the millions of dollars on packaging and marketing necessary
  495.                     to compete with the large software development companies.
  496.                     You benefit by being able to try a wider variety of software
  497.                     products to find the ones that suit your particular purpose.
  498.                     And the trial is free. The shareware developer benefits from
  499.                     being able to distribute his work to a wider audience than
  500.                     would be possible through normal channels.
  501.  
  502.                     Your share of the responsibility for shareware to continue,
  503.                     and to support the development of more and better products
  504.                     is to distribute your shareware programs to others and
  505.                     become a registered user of those products you like and use.
  506.  
  507.  
  508.  
  509.                     System Requirements
  510.  
  511.                     PC-Draft II is compatible with the IBM PC, XT, and AT and
  512.                     "true compatible" microcomputers with at least 384k of
  513.                     memory and with MS-DOS or PC-DOS versions 2.0 or later.  An
  514.                     IBM or compatible Color Graphics Display adapter is re-
  515.                     quired.  PC-Draft II performs direct access of the display
  516.                     buffer at address B8000 hex.  PC-Draft II will not work with
  517.                     monochrome displays or foreign display interface boards such
  518.                     as Hercules. (However, it will work with one of the share-
  519.                     ware CGA emulators such as HGCIBM or SIMCGA. Look for them
  520.                     on your BBS.)
  521.  
  522.  
  523.  
  524.      Introduction                                                         Page 3
  525.  
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532.  
  533.  
  534.  
  535.  
  536.  
  537.  
  538.                     If you have a problem with your display, you might try
  539.                     pressing the [Ctrl + F1] key combination to cycle through
  540.                     the different colors. The is particularly necessary on the
  541.                     PC-Jr.
  542.  
  543.                     PC-Draft II is memory hungry. For the sake of speed, an
  544.                     entire bit mapped drawing is kept in memory, rather than
  545.                     being paged to and from disk. If you like to load lots of
  546.                     stay resident utilities, you better have a 512k machine, or
  547.                     unload them before running PC-Draft II.  The PC-Draft II
  548.                     program itself occupies about 85k.  As you move the screen
  549.                     window to new portions of a large drawing more memory is
  550.                     allocated, 16k per screen.  If you start with less than 128k
  551.                     available, you will surely get an error message:  Out of
  552.                     memory!, then all you can do is save your drawing and quit
  553.                     PC-Draft II.
  554.  
  555.  
  556.                     Terminology
  557.  
  558.                     Brackets are used to indicate keystrokes. For instance:
  559.                     [Ctrl + PgUp] means to press the Control key and the PgUp
  560.                     keys together. Whereas: [F3][P][S] means to press those keys
  561.                     in sequence. The four arrow keys on the numeric keypad are
  562.                     indicated as: [v][<][>][^].  Filenames are given in all
  563.                     uppercase such as: PATTERN1.PAT.
  564.  
  565.  
  566.                     Installation
  567.  
  568.                     If you are using a hard disk, create a sub-directory for PC-
  569.                     Draft II with the following sub-directories: PAT, MAC, FON,
  570.                     OBJ, PIC, DWG, SCR. If you are using DOS 3.2 or above,
  571.                     simply use the XCOPY command to copy all files from all sub-
  572.                     directories to your pc-draft sub-directory on your hard disk
  573.                     as follows:
  574.  
  575.                          CD \
  576.                          MD PC-DRAFT
  577.                          CD PC-DRAFT
  578.                          XCOPY A:*.* /S
  579.  
  580.                     The sub-directory names correspond to the default filename
  581.                     extensions for the various files PC-Draft II uses and will
  582.                     help keep things organized.
  583.  
  584.                     If yours is a floppy based system, simply make a backup copy
  585.                     of the distribution floppy for use.
  586.  
  587.  
  588.  
  589.  
  590.      Page 4                                                          PC-Draft II
  591.  
  592.  
  593.  
  594.  
  595.  
  596.  
  597.  
  598.  
  599.  
  600.  
  601.  
  602.  
  603.                     The executable PC-Draft program consists of the main pro-
  604.                     gram: DRAFT2.EXE and a configuration file: DRAFT2.CFG. This
  605.                     configuration file must both be on your current directory.
  606.                     If you are using a floppy disk based system, you must leave
  607.                     the diskette containing DRAFT.CFG in the disk drive when you
  608.                     exit PC-Draft.
  609.  
  610.  
  611.      MicroSoft Mouse     If you have a mouse compatible with Microsoft's Mouse
  612.                          driver software, PC-Draft will automatically use the
  613.                          mouse if the mouse driver is loaded.
  614.  
  615.                     Be sure the mouse driver is properly loaded (either with the
  616.                     CONFIG.SYS DEVICE=MOUSE.SYS command, or from the keyboard
  617.                     (or in your AUTOEXEC.BAT) run the MOUSE.COM program.
  618.  
  619.                     Mouse movement emulates the arrow keys, the left button
  620.                     simulates the [F2] key (to pop-up the menus),  the right
  621.                     button simulates the [Enter] key (to terminate drawing
  622.                     commands and to select drawing modes when in zoom mode), and
  623.                     both mouse buttons pressed together simulates the [Esc] key
  624.                     to exit from a menu or process.
  625.  
  626.  
  627.      Other Mice     Most other brands of mice should work as described above if:
  628.  
  629.                     1.   They can be configured to emulate Microsoft's Mouse
  630.                          driver or:
  631.  
  632.                     2.   You can setup your mouse to:
  633.  
  634.                          a.   convert movement into the appropriate arrow key.
  635.                          b.   simulate the [Enter] key with the right button.
  636.                          c.   simulate the [F2] key with the left button.
  637.                          d.   simulate the [Esc] key with both buttons (or the
  638.                               third button?).
  639.  
  640.                     Please let us know if you have a problem with your mouse.
  641.  
  642.                     If you do not have a mouse and intend to do much work with
  643.                     PC-Draft, it is strongly recommended that you get one.
  644.                     You'll love the difference. Some commands described below
  645.                     were specifically designed for mice. They do not work too
  646.                     well without a mouse.
  647.  
  648.                     If you are using the cursor keys instead of a mouse, it is
  649.                     strongly recommended that you use one of the many shareware
  650.                     or public domain keyboard speedup programs available. This
  651.                     will make cursor movement around the graphics screen much
  652.                     nicer. If you have an IBM AT, look for SETKEY.COM on your
  653.  
  654.  
  655.  
  656.      Introduction                                                         Page 5
  657.  
  658.  
  659.  
  660.  
  661.  
  662.  
  663.  
  664.  
  665.  
  666.  
  667.  
  668.  
  669.                     bulletin boards. If you have and XT or compatible, look for
  670.                     QUICKEY.COM. Both of these were published in PC Magazine and
  671.                     can be down loaded from their BBS. Also the shareware
  672.                     programs: 
  673.  
  674.                     FASTKEY.COM from:
  675.  
  676.                          Biologic Corp.
  677.                          P.O. Box 1267
  678.                          Manassas, Virginia  22110
  679.  
  680.                     and KBFIX2.COM from:
  681.  
  682.                          Skip Gilbrech
  683.                          90 Lexington Ave. #10-G
  684.                          New York, NY 10016   ( Compuserve: 71445,534 )
  685.  
  686.  
  687.                     Printers
  688.  
  689.                     The current version of PC-Draft II will work with several
  690.                     families of printers for graphics output; Some printers
  691.                     which claim to emulate the IBM Graphics or Epson dot matrix
  692.                     do not support all resolution modes, so you will have to
  693.                     experiment to see which is appropriate for your brand.
  694.  
  695.                     Refer to the READ.ME file on the disk for information about
  696.                     additional printer support.
  697.  
  698.  
  699.                     Files used
  700.  
  701.                     The only necessary files used by PC-Draft are the main code
  702.                     file: DRAFT2.EXE and the configuration file: DRAFT2.CFG. 
  703.                     all other files are optional.
  704.  
  705.  
  706.                     File Names
  707.  
  708.                     The file naming conventions used are also optional. However,
  709.                     it is recommended that you follow them.  When PC-Draft saves
  710.                     a file of a particular type, say a font file for instance,
  711.                     it uses the appropriate filename extension unless you
  712.                     override it by entering a different extension.  This helps
  713.                     prevent accidental data loss by overwriting files and by
  714.                     loading the wrong type of file.
  715.  
  716.  
  717.  
  718.  
  719.  
  720.  
  721.  
  722.      Page 6                                                          PC-Draft II
  723.  
  724.  
  725.  
  726.  
  727.  
  728.  
  729.  
  730.  
  731.  
  732.  
  733.  
  734.  
  735.  
  736.                     The default filename extensions are:
  737.  
  738.  
  739.                     Screen dump files:  filename.PIC
  740.                     Drawing files:      filename.DWG
  741.                     Pattern files:      filename.PAT
  742.                     Font files:         filename.FON
  743.                     Object files:       filename.OBJ
  744.                     Macro files:        filename.MAC
  745.                     Graph Point files:  filename.PTS
  746.                     PIX program files:  filename.SCR
  747.                     GEM IMG files: filename.IMG
  748.  
  749.  
  750.  
  751.  
  752.  
  753.  
  754.  
  755.  
  756.  
  757.  
  758.  
  759.  
  760.  
  761.  
  762.  
  763.  
  764.  
  765.  
  766.  
  767.  
  768.  
  769.  
  770.  
  771.  
  772.  
  773.  
  774.  
  775.  
  776.  
  777.  
  778.  
  779.  
  780.  
  781.  
  782.  
  783.  
  784.  
  785.  
  786.  
  787.  
  788.      Introduction                                                         Page 7
  789.  
  790.  
  791.  
  792.  
  793.  
  794.  
  795.  
  796.  
  797.  
  798.  
  799.  
  800.  
  801.                                       The Basics
  802.  
  803.      There are a few basic things you must know to start using PC-Draft and
  804.      begin making your own drawings. This chapter will give you a quick over-
  805.      view. Each drawing command and other parts of the PC-Draft system will be
  806.      dealt with in more detail in later chapters.
  807.  
  808.                     Starting PC-Draft
  809.  
  810.                     To start PC-Draft, type the command: DRAFT2 with the files
  811.                     DRAFT2.EXE and DRAFT2.CFG on the currently logged drive. The
  812.                     Copyright notice will appear for a moment, then it will
  813.                     display the graphics screen.
  814.  
  815.  
  816.  
  817.                     Cursor Movement
  818.  
  819.                     The cursor will appear as a small cross in center screen. 
  820.                     Press the cursor movement keys on the numeric keypad (or
  821.                     move the mouse) to move about the screen.
  822.  
  823.                     Initially, the cursor will move 8 dots for each key pressed.
  824.                     As you move the cursor you will notice that the X and Y
  825.                     location is shown in the control panel at screen right. Also
  826.                     shown is the current cursor increment value. With a mouse,
  827.                     the cursor moves smoothly along with the mouse movement. You
  828.                     may find that for precise positioning, the arrow keys give
  829.                     you more control. 
  830.  
  831.  
  832.      Cursor Increment    The amount the cursor moves (in dots or pixels) is
  833.                          called the cursor increment. To change the cursor
  834.                          increment value, enter a number (using the top row of
  835.                          number keys, or press [Num Lock] to use the numeric key
  836.                          pad keys).  For instance, enter 24 to cause the cursor
  837.                          to move 24 dots for each cursor movement keystroke.
  838.  
  839.                     You will quickly get into the habit of adjusting the cursor
  840.                     increment value to a larger number to quickly move to a new
  841.                     position on the screen, then to a smaller number (try 1) for
  842.                     detailed work.
  843.  
  844.      Suspend Cursor Pressing the [S] key Suspends the current cursor increment
  845.                     value, causing the cursor to move one dot at a time. 
  846.                     Pressing [S] again restores the increment value.  This
  847.                     allows you to quickly change from coarse to fine movements
  848.                     and is also useful when creating graphics keyboard macros as
  849.                     described below. Note that while in the [W]rite mode, you
  850.                     can suspend cursor increment by pressing [Alt + S].
  851.  
  852.  
  853.  
  854.      Page 8                                                          PC-Draft II
  855.  
  856.  
  857.  
  858.  
  859.  
  860.  
  861.  
  862.  
  863.  
  864.  
  865.  
  866.  
  867.  
  868.      Change Cursor  There are two cursor types (three if you have a mouse). 
  869.                     Initially, the cursor appears as a small cross.  Press [K]
  870.                     ([K]ursor) to change the cursor to a full screen cross. 
  871.                     This cursor type is helpful when positioning lines and
  872.                     objects in line with other elements in your drawing. Press
  873.                     [K] again to toggle between the two cursor types. If you
  874.                     have a MicroSoft mouse, you can change the mouse cross
  875.                     cursor to an arrow by pressing [Alt + C]. Press it again to
  876.                     return to the cross. You can still use the full screen
  877.                     cursor by pressing [K].
  878.  
  879.  
  880.                     Menu Selections
  881.  
  882.                     Initially, the eight main menu selections are displayed
  883.                     across the top of the screen. To make a selection, press its
  884.                     corresponding function key.  For instance, press [F2] (or
  885.                     the [/] key) (or left mouse button) to display the pop-up
  886.                     Draw functions menu.
  887.  
  888.                     With the pop-up menu displayed you may now:
  889.  
  890.                     1.   Press the Escape key: [Esc] (both mouse buttons), to
  891.                          exit from a menu without making a choice.
  892.  
  893.                     2.   Select a choice from the menu by:
  894.  
  895.                          a.   press the [L]etter in brackets for your choice.
  896.                          b.   use the arrow keys: [^] and [v] to move the
  897.                               reverse video cursor to select your choice.  Then
  898.                               press [Enter] (or the mouse right button) to make
  899.                               your selection.
  900.  
  901.                     3.   Press the left or right arrow keys: [<] or [>] to move
  902.                          to another menu (or move the mouse right or left).
  903.  
  904.  
  905.                     For example; press [F2], then press [B] for the [B]ox
  906.                     command, then press [Enter]. The Draw menu will disappear. 
  907.                     Now, move the cursor. A box will form with its diagonal
  908.                     corners determined by the original cursor position and the
  909.                     opposing current cursor position.  When you are satisfied
  910.                     with the final position of the box, press [Enter] (right
  911.                     mouse button) to complete the [B]ox command.
  912.  
  913.                     Most of the other menus work the same, press the function
  914.                     key, then up and down arrows, then [Enter].
  915.  
  916.      Display Menu Bar    By pressing the [F1] key, you can pop-off the menu bar
  917.  
  918.  
  919.  
  920.      Basics                                                               Page 9
  921.  
  922.  
  923.  
  924.  
  925.  
  926.  
  927.  
  928.  
  929.  
  930.  
  931.  
  932.  
  933.                          to allow full screen drawing.  When you press [F1]
  934.                          again, the menu bar will pop-up again. The drawing
  935.                          obscured by the menu, will be untouched, but inacces-
  936.                          sible, until you pop-off the menu.
  937.  
  938.  
  939.                     The Control Panel
  940.  
  941.                     The panel along the right side of the screen shows:
  942.  
  943.                     o    The current X and Y cursor location,
  944.                     o    The current cursor increment value (C = 8),
  945.                     o    The current drawing mode,
  946.                     o    The status of the suspend (cursor increment) function,
  947.                     o    The status of the snap function,
  948.                     o    The current paint pattern is shown,
  949.                     o    Below the pattern box, is a box that represents the
  950.                          full drawing area. Within is a smaller box representing
  951.                          the current screen window. As you move the screen
  952.                          window (with [Ctrl + >] for example), the box will show
  953.                          your current location.
  954.                     o    The number under the drawing box indicates the number
  955.                          of the current screen window. This is the number you
  956.                          would enter when using the [.] Move command to jump
  957.                          directly to a new screen window position.
  958.                     o    The amount of free memory is shown at the bottom. As
  959.                          you move the screen window to new areas of the full
  960.                          drawing, you will notice this number getting smaller.
  961.  
  962.                     You can pop-off the control panel by pressing [Alt + P] for
  963.                     full screen drawing.
  964.  
  965.  
  966.                     The Drawing Area
  967.  
  968.                     One screen represents 640 pixels or dots horizontally, and
  969.                     200 dots vertically (with the menu bar and control panel
  970.                     popped-off).  All drawing operations are confined to this
  971.                     screen area.  You can draw a line to the screen edge only. 
  972.                     However, the full drawing area available to PC-Draft is 1280
  973.                     dots wide by 700 dots vertically. visualize the monitor
  974.                     screen as a window positioned over a larger drawing area. 
  975.                     You can move this window up, down, left and right to reach
  976.                     all parts of the drawing. The full drawing size is two
  977.                     screens wide, and three and one half screens high.
  978.  
  979.  
  980.  
  981.  
  982.  
  983.  
  984.  
  985.  
  986.      Page 10                                                         PC-Draft II
  987.  
  988.  
  989.  
  990.  
  991.  
  992.  
  993.  
  994.  
  995.  
  996.  
  997.  
  998.  
  999.  
  1000.                               +----+----+
  1001.                Initial        |  1 |  2 | +----+----+
  1002.                Screen   --->  +----+----+ |  3 |  4 |
  1003.                Window         |  5 |  6 | +----+----+
  1004.                               +----+----+ |  7 |  8 |
  1005.                                 +----+----+----+----+
  1006.                                 |  9 | 10 | 11 | 12 |
  1007.                                 +----+----+----+----+
  1008.                                 | 13 | 14 | 15 | 16 |
  1009.                                 +----+----+----+----+
  1010.                                 | 17 | 18 | 19 | 20 |
  1011.                                 +----+----+----+----+
  1012.                                 | 21 | 22 | 23 | 24 |
  1013.                                 +----+----+----+----+
  1014.                                 | 25 | 26 | 27 | 28 |
  1015.                                 +----+----+----+----+
  1016.  
  1017.                                    The Drawing Area
  1018.  
  1019.      Moving around  Here's how you move the screen window around the full
  1020.                     drawing. To move the screen window down on the larger
  1021.                     drawing, press the [Ctrl + PgDn] keys together. The screen
  1022.                     moves one half screen width for each window movement. To
  1023.                     move up, press [Ctrl + PgUp]. [Ctrl + >] moves right, and
  1024.                     [Ctrl + <] moves left. When you reach the edge of the
  1025.                     drawing area, you'll know it (beep).
  1026.  
  1027.      Direct Move    Pressing the [.] (the period or shifted [>]) key will pop-up
  1028.                     a prompt box asking for a screen window number. You can
  1029.                     enter a number from 1 to 28 to directly move the display
  1030.                     window to a new area of the larger drawing.
  1031.  
  1032.                     The full drawing is logically divided into 28 sections. Each
  1033.                     section represents one forth of one screen's area.
  1034.  
  1035.                     When PC-Draft is first started, drawing sections 1, 2, 5 and
  1036.                     6 are displayed. To move the screen window to the bottom
  1037.                     right of the drawing area; press [.] and enter 23 to display
  1038.                     drawing sections 23, 24, 27 and 28.
  1039.  
  1040.      Home           Press [H] to move the cursor to center screen.
  1041.  
  1042.  
  1043.                     Using markers
  1044.  
  1045.                     Sometimes you would like to set a marker at one point in
  1046.                     your drawing to be able to return to the same position after
  1047.                     performing some other activity. PC-Draft II provides a
  1048.  
  1049.  
  1050.  
  1051.  
  1052.      Basics                                                              Page 11
  1053.  
  1054.  
  1055.  
  1056.  
  1057.  
  1058.  
  1059.  
  1060.  
  1061.  
  1062.  
  1063.  
  1064.  
  1065.                     facility for up to ten separate markers that you can set,
  1066.                     change, and move to.
  1067.  
  1068.      Setting markers     First move the cursor to the position you wish to mark.
  1069.                          Then: Press [Shift + any function key]. For example
  1070.                          [Shift + F1].
  1071.  
  1072.      Jump to marker Press [Alt + the function key]. For example to jump back to
  1073.                     the position set with [Shift + F1], press [Alt + F1].
  1074.  
  1075.                     If you have moved the screen window to another area of the
  1076.                     full drawing, from where a marker is set, the screen window
  1077.                     will be moved as necessary to return to where the marker is
  1078.                     set. This provides a convenient way to jump to all parts of
  1079.                     a large drawing.
  1080.  
  1081.  
  1082.                     Clearing the Screen
  1083.  
  1084.                     To clear the current screen window (not the whole drawing),
  1085.                     press the [F9] key.  A warning pop-up will ask if you're
  1086.                     sure.  Press the [Y] key for [Y]es, if you are.
  1087.  
  1088.                     To clear the entire drawing, press [Ctrl + F9]. A warning
  1089.                     pop-up will ask if you're sure.  Press the [Y] key for
  1090.                     [Y]es, if you are.
  1091.  
  1092.  
  1093.                     Erasing
  1094.  
  1095.                     Since this is a pixel (raster) based graphics program,
  1096.                     erasing selected image areas is not as easy as it would be
  1097.                     in an object based CAD package where you can erase selected
  1098.                     operations rather than areas of the screen. Here are a few
  1099.                     different ways to erase:
  1100.  
  1101.                o    Use the [E]rase command to remove the image as you move the
  1102.                     cursor. The size of the erase box is controlled by the
  1103.                     current cursor increment value. Make this value larger to
  1104.                     erase larger areas. (The Replace drawing mode must be on.)
  1105.  
  1106.                Note: if you do not have a mouse, erasing with the cursor keys is
  1107.                not as smooth an operation. Suspend the cursor increment value
  1108.                (with the [S] key), then as you move the erase box, you will
  1109.                remove all pixels in your path.
  1110.  
  1111.  
  1112.                o    Select the Transparent drawing mode (with [F5]), then re-
  1113.                     trace the image to be erased.
  1114.  
  1115.  
  1116.  
  1117.  
  1118.      Page 12                                                         PC-Draft II
  1119.  
  1120.  
  1121.  
  1122.  
  1123.  
  1124.  
  1125.  
  1126.  
  1127.  
  1128.  
  1129.  
  1130.  
  1131.                o    Select an all black pattern (with [F4], usually pattern
  1132.                     number 1), then with the [R]ectangle command, surround the
  1133.                     area to be erased. The drawing mode must be set to Replace.
  1134.                     (The Replace drawing mode must be on.)
  1135.  
  1136.                o    Surround the area to be erased with the [W]indow command,
  1137.                     then press [F9] to clear the current window.
  1138.  
  1139.  
  1140.                     Undo Command
  1141.  
  1142.                     Whenever you have performed some drawing operation that
  1143.                     changed the drawing in a way you did not expect (you
  1144.                     goofed), you can press [U] to Undo. You can only undo the
  1145.                     previous operation such as [B]ox or [P]aint, you cannot undo
  1146.                     changes made before the last one. This is especially handy
  1147.                     when your [P]aint operation spills outside of a bounded area
  1148.                     unexpectedly.
  1149.  
  1150.  
  1151.                     Saving Your Work
  1152.  
  1153.                     Once enough of your masterpiece is constructed to make you
  1154.                     nervous about losing your work, you should save it to a file
  1155.                     on disk.  You can save the current screen window to a .PIC
  1156.                     file or you can save the entire drawing to a .DWG file.
  1157.  
  1158.                1.   Press the [F3] key to pop-up the File menu.
  1159.  
  1160.                2.   Select [S]creen to save just the current screen window (just
  1161.                     what is currently displayed).
  1162.  
  1163.                     Or, select [D]rawing to save your drawing that may consist
  1164.                     of several screens worth. (Only those screens that you have
  1165.                     visited will be saved. If you have not moved from the
  1166.                     initial screen window, the drawing file will be the same
  1167.                     size as a screen ".PIC" file.)
  1168.  
  1169.                3.   Then, select the operation from the next pop-up: [S]ave. 
  1170.  
  1171.                4.   you will be asked whether you want to save it in [C]ompres-
  1172.                     sed or [N]ormal format. If you choose Normal format, the
  1173.                     image will be saved without compression. An un-compressed
  1174.                     .PIC file is a straight byte for byte dump of the high-
  1175.                     resolution screen buffer and is compatible with many other
  1176.                     graphics programs. If you choose Compressed format, the file
  1177.                     will take less disk space (saving an average of 66%).
  1178.  
  1179.  
  1180.  
  1181.  
  1182.  
  1183.  
  1184.      Basics                                                              Page 13
  1185.  
  1186.  
  1187.  
  1188.  
  1189.  
  1190.  
  1191.  
  1192.  
  1193.  
  1194.  
  1195.  
  1196.  
  1197.                     When you read in a .PIC or .DWG file, PC-Draft will detect
  1198.                     whether the file has been compressed or not and load it
  1199.                     properly.
  1200.  
  1201.                Note: The I/O time is increased for saving and loading compressed
  1202.                files. You might want to use normal format while you are working
  1203.                on a drawing to maintain the speed advantage, then save it in
  1204.                compressed format only when you are finished making changes.
  1205.  
  1206.                     The compression method is very rudimentary. A trade-off had
  1207.                     to be made given code space limitations and permissible I/O
  1208.                     delays. You can achieve a much greater compression and
  1209.                     saving of disk space if you use ARC.EXE to archive your
  1210.                     drawings (sometimes greater than 90%).
  1211.  
  1212.                5.   Then, enter a filename in the next pop-up.  Enter any valid
  1213.                     DOS file path specification, including drive and sub-direc-
  1214.                     tories unless you want to save the file on the currently
  1215.                     logged drive and path.
  1216.  
  1217.                     You need not enter a filename extension. PC-Draft will
  1218.                     automatically add the appropriate extension for you if you
  1219.                     leave it off.  Simply enter a filename such as: "DRAWING1"
  1220.                     or "A:SUBDIR1\DRAWING1"
  1221.  
  1222.                     PC-Draft will save your drawing as: DRAWING1.DWG (or:
  1223.                     DRAWING1.PIC if you selected to save the screen). (See note
  1224.                     below for directory searches.)
  1225.  
  1226.                6.   Press [Enter] to complete the operation.
  1227.  
  1228.                     Once you've done this a few times, the operation of saving
  1229.                     and retrieving screen and drawing files should become easy,
  1230.                     intuitive and obvious with the help of the pop-up prompts. 
  1231.                     The method is the same for other file operations such as
  1232.                     saving and retrieving patterns, fonts, objects.
  1233.  
  1234.      Directory Search    When entering a filename for any file operation, you
  1235.                          can obtain a directory search by pressing either the up
  1236.                          or down arrow keys [^] or [v]. Any existing files with
  1237.                          extensions that match the current default will be
  1238.                          displayed in the file path name window. For example,
  1239.                          when you are retrieving a screen file, press the [^]
  1240.                          key in response to the filename prompt, the name of the
  1241.                          first file with a .PIC extension will be shown. Press
  1242.                          the [^] to show the next (if any) .PIC file, and so on. 
  1243.                          When the file you want to retrieve is shown, press
  1244.                          [Enter] to retrieve it.
  1245.  
  1246.  
  1247.  
  1248.  
  1249.  
  1250.      Page 14                                                         PC-Draft II
  1251.  
  1252.  
  1253.  
  1254.  
  1255.  
  1256.  
  1257.  
  1258.  
  1259.  
  1260.  
  1261.  
  1262.  
  1263.                     To search the directory other than the current one, enter
  1264.                     the DOS path information, for instance to refer to the
  1265.                     directory containing pattern files, enter: "FON\", then
  1266.                     press [^] or [v]. (You must have the '\' at the end.)
  1267.  
  1268.                     Other useful keys to use when entering filenames:
  1269.  
  1270.                     o    [<] and [>] move the cursor non-destructively.
  1271.  
  1272.                     o    Backspace [<-] moves left destructively.
  1273.  
  1274.                     o    The [End] key clears the field from the cursor position
  1275.                          to the end.
  1276.  
  1277.                     o    The [Esc] key restores the field to its original
  1278.                          contents.
  1279.  
  1280.  
  1281.                     Ending PC-Draft
  1282.  
  1283.                     Press [F10] to exit PC-Draft. If you have made changes to
  1284.                     your drawing but not saved it yet, a warning pop-up will ask
  1285.                     if you want to. Similarly, changes to the current font,
  1286.                     pattern and/or graph point values, will be checked and you
  1287.                     will be warned before actually exiting to DOS. If everything
  1288.                     is safely saved, when you press [F10] you will immediately
  1289.                     be returned to the DOS prompt.
  1290.  
  1291.  
  1292.  
  1293.  
  1294.  
  1295.  
  1296.  
  1297.  
  1298.  
  1299.  
  1300.  
  1301.  
  1302.  
  1303.  
  1304.  
  1305.  
  1306.  
  1307.  
  1308.  
  1309.  
  1310.  
  1311.  
  1312.  
  1313.  
  1314.  
  1315.  
  1316.      Basics                                                              Page 15
  1317.  
  1318.  
  1319.  
  1320.  
  1321.  
  1322.  
  1323.  
  1324.  
  1325.  
  1326.  
  1327.  
  1328.  
  1329.                                    Drawing Commands
  1330.  
  1331.      This chapter discusses each drawing command in detail. PC-Draft provides
  1332.      both a menu based and a command based user interface. When you begin to
  1333.      learn how PC-Draft works you might find the drawing menu useful in select-
  1334.      ing the various commands. But as you become more proficient, you will
  1335.      probably find the single key command method easier and faster.
  1336.  
  1337.                     Each basic drawing operation can be specified in two ways. 
  1338.                     You can press [F2] (or mouse left button) to choose from the
  1339.                     Draw menu, or you can press the mnemonic character associat-
  1340.                     ed with the command.  For example to select the line command
  1341.                     either press [F2] then press [v] enough times to move the
  1342.                     menu selection bar down to the "[L]ine" choice, then press -
  1343.                     [Enter] or you can choose from the menu by pressing:
  1344.                     [F2][L][Enter] or don't use the menu at all: simply press
  1345.                     [L] (the single key command mode).
  1346.  
  1347.                     Most drawing operations follow the same sequence of opera-
  1348.                     tions: 
  1349.  
  1350.                     1.   Position the cursor to a starting anchor point.
  1351.                     2.   Select the drawing command.
  1352.                     3.   Move the cursor to the desired ending point.
  1353.                     4.   Press any key other than cursor movement or numeric key
  1354.                          to complete the operation.
  1355.  
  1356.                Remember, at any time while moving the cursor, you can fine tune
  1357.                cursor movement or speed up cursor movement by pressing the
  1358.                numeric keys to change the current cursor increment.  Also you
  1359.                can press the [S] key to [S]uspend the cursor increment for fine
  1360.                work, and the [K] key to change cursor type.
  1361.  
  1362.      Line           The basic element of most of your drawings is the line. The
  1363.                     method for drawing lines is typical of most of the other
  1364.                     drawing commands as well, involving these four steps:
  1365.  
  1366.                     1.   Move the cursor to one end of the future line.
  1367.                     2.   Press [L] to start the line.
  1368.                     3.   Move the cursor to the other end.
  1369.                     4.   Press [Enter].
  1370.  
  1371.                     I think you get the idea.
  1372.  
  1373.      Multi-Line          If you want to draw several connected line segments,
  1374.                          use the [M]ulti-line command. Press [M] to start, move
  1375.                          the cursor to the end point, press [Enter] to anchor
  1376.                          that end, move to the next end point, press [Enter],
  1377.                          and so on. Press [Esc] to end the multi-line command.
  1378.  
  1379.  
  1380.  
  1381.  
  1382.      Page 16                                                         PC-Draft II
  1383.  
  1384.  
  1385.  
  1386.  
  1387.  
  1388.  
  1389.  
  1390.  
  1391.  
  1392.  
  1393.  
  1394.  
  1395.      Free Draw      The [F]ree draw command lets you draw free form lines. A
  1396.                     continuous series of connected lines are drawn as you move
  1397.                     the cursor. The coarseness of the line is determined by the
  1398.                     value of the cursor increment (or how fast you move the
  1399.                     mouse). Set the cursor increment value to 1 (or [S]uspend)
  1400.                     to draw free form lines dot by dot (or move the mouse slowe-
  1401.                     r).
  1402.  
  1403.  
  1404.      Box            Press [B] to begin the [B]ox command. The starting position
  1405.                     is one corner of the box, the ending cursor position is the
  1406.                     opposite corner.
  1407.  
  1408.      Rectangle      This is similar to [B]ox, but the rectangle is filled with
  1409.                     the current fill pattern. The [R]ectangle command is useful
  1410.                     for erasing areas of the drawing, by selecting a completely
  1411.                     blank pattern as the current fill (and the [R]eplace drawing
  1412.                     mode). See below for how to select patterns.
  1413.  
  1414.      Circle         Press [C] to draw a circle. The starting position is the
  1415.                     center of the circle. Move the cursor outward to establish
  1416.                     the diameter and press [Enter]. 
  1417.  
  1418.      Ellipse        From the keyboard you start the ellipse command with [Alt +
  1419.                     E]. As you move the cursor, the area of the ellipse is
  1420.                     indicated by a rectangle. Move the cursor outward to es-
  1421.                     tablish the size of the ellipse and press [Enter]. Why use
  1422.                     the rectangle instead of the ellipse shape? We decided that
  1423.                     drawing, erasing, and re-drawing the actual ellipse shape as
  1424.                     you move the cursor was too slow, interfering with the
  1425.                     normal flow of drawing. 
  1426.  
  1427.                     Note that from the drawing commands menu, you select the
  1428.                     ellipse command with the [I] key.
  1429.  
  1430.      Curve          This command works a little differently than the above two-
  1431.                     point commands. You specify a series of points on the screen
  1432.                     through which a smooth spline curve will be drawn. Position
  1433.                     the cursor to the starting point for the curve, then press
  1434.                     [V] for cur[V]e. Now, move the cursor to the next point,
  1435.                     press any key to set a new point. A straight line will be
  1436.                     temporarily drawn between points to help you keep track of
  1437.                     the shape of your image. Continue entering points (up to 20
  1438.                     points are allowed) until you have defined the shape of the
  1439.                     curve. To draw the curve, press the [Esc] key.
  1440.  
  1441.      Paint          Position the cursor within a bounded area on the screen.
  1442.  
  1443.  
  1444.  
  1445.  
  1446.  
  1447.  
  1448.      Drawing Commands                                                    Page 17
  1449.  
  1450.  
  1451.  
  1452.  
  1453.  
  1454.  
  1455.  
  1456.  
  1457.  
  1458.  
  1459.  
  1460.  
  1461.                     Press [P] to [P]aint the area with the current fill pattern.
  1462.                     See below for how to select and edit patterns. Note that the
  1463.                     selected area must be tightly bounded by white dots. A
  1464.                     single missing dot provides an escape route for the pattern
  1465.                     to fill adjacent areas.
  1466.  
  1467.      Arc            Drawing arcs is a two step process:
  1468.  
  1469.                     1.   Draw a circle where you want the arc with the correct
  1470.                          diameter.
  1471.  
  1472.                          a.   Position the cursor to the center of the arc.
  1473.                          b.   Press [A] to start the arc command.
  1474.                          c.   Move the cursor outward to establish the diameter.
  1475.                               (A full circle will be drawn temporarily.)
  1476.                          d.   Press [Enter] to set the diameter.
  1477.  
  1478.                     2.   Now draw a box around the portion of the circle you
  1479.                          want to retain as the arc:
  1480.  
  1481.                          a.   Position the cursor to one corner of the box.
  1482.                          b.   Move to the opposite corner surrounding the selec-
  1483.                               ted portion of the circle.
  1484.                          c.   Press [Enter] to complete the arc command.
  1485.  
  1486.  
  1487.  
  1488.  
  1489.  
  1490.  
  1491.  
  1492.  
  1493.  
  1494.  
  1495.  
  1496.  
  1497.  
  1498.  
  1499.  
  1500.  
  1501.  
  1502.  
  1503.  
  1504.  
  1505.  
  1506.      Text           To add text to your drawing, position the cursor and press
  1507.                     [T] to enter [T]ext mode. The cursor will become an under-
  1508.                     line and what you type next will be shown using the built-in
  1509.                     IBM graphics font. You can use backspace and the [<] and [>]
  1510.  
  1511.  
  1512.  
  1513.  
  1514.      Page 18                                                         PC-Draft II
  1515.  
  1516.  
  1517.  
  1518.  
  1519.  
  1520.  
  1521.  
  1522.  
  1523.  
  1524.  
  1525.  
  1526.  
  1527.                     arrow keys for simple editing and the [Enter] key to move to
  1528.                     the start of the next line. 
  1529.  
  1530.                     To exit text mode, press [Esc]. 
  1531.  
  1532.                     Note: that this mode always positions the text on an 8 dot
  1533.                     boundary both vertically and horizontally. To position the
  1534.                     text between this 8 dot grid, first type the text, then exit
  1535.                     text mode and use the [O]bject and [D]rop commands to move
  1536.                     it to a new location.
  1537.  
  1538.                     As you type, the cursor will wrap to the next line when you
  1539.                     reach the right edge of the current window. You can set a
  1540.                     smaller window with the [Alt + W] key to restrict the text
  1541.                     to a selected area.
  1542.  
  1543.                     Another way to add text is to import from an ASCII text
  1544.                     file. You do this by adding two characters to your text
  1545.                     file, a 'T' at the beginning and a '%' at the end. this
  1546.                     makes the file a valid PC-Draft Macro file. Refer to the
  1547.                     Macro section for an example.
  1548.  
  1549.      Write          Pressing [W] places you in [W]rite mode. The cursor changes
  1550.                     to a box the size of the currently loaded graphics font.
  1551.                     When first started PC-Draft does not have a font loaded. To
  1552.                     experiment with [W]rite mode, press [F3][F][R] to retrieve a
  1553.                     font. In the filename pop-up prompt box enter: FON\EURO and
  1554.                     press [Enter]. The eurostyle font will be loaded from the
  1555.                     font sub-directory: FON. Now enter [W]rite mode. You can
  1556.                     move the box cursor with the arrow keys and enter text in
  1557.                     your drawing.
  1558.  
  1559.                     While in [W]rite mode you can suspend cursor increment by
  1560.                     pressing [Alt + S], since the [S] key is used to write S's.
  1561.  
  1562.      Object         By Object, we mean a portion of the drawing, a bit mapped
  1563.                     image. The [O]bject command allows you to grab an area of
  1564.                     the drawing from within the current screen window. Once you
  1565.                     have grabbed an area, you've got an object which can then be
  1566.                     [D]ropped (re-drawn) in a new position. Also objects can be
  1567.                     saved in a file (.OBJ files) to create a library of objects.
  1568.                     And, of course, object files can be retrieved to be added to
  1569.                     other drawings.
  1570.  
  1571.                     This command works like the [B]ox command. Position the
  1572.                     cursor to one corner of the area to be grabbed. Press [O].
  1573.                     Then move the cursor to the opposite corner of the area and
  1574.                     press [Enter] to grab it.
  1575.  
  1576.  
  1577.  
  1578.  
  1579.  
  1580.      Drawing Commands                                                    Page 19
  1581.  
  1582.  
  1583.  
  1584.  
  1585.  
  1586.  
  1587.  
  1588.  
  1589.  
  1590.  
  1591.  
  1592.  
  1593.                Note:  The [O]bject and [D]rop commands allow for copying areas
  1594.                of the screen. If you want "Cut and Paste" -- deleting the
  1595.                original object area, use the "blank pattern" method for erasing
  1596.                as described in the previous chapter. So, you would: grab an
  1597.                [O]bject, erase it with [R]ectangle, then [D]rop the object.
  1598.  
  1599.      Drop Object    When you have an Object currently in memory either by using
  1600.                     the [O]bject command or by retrieving it from an .OBJ file,
  1601.                     you use the [D]rop command to re-draw the object in the
  1602.                     current drawing.
  1603.  
  1604.                     When you press [D], the cursor takes the form of a box the
  1605.                     size of the current object. Move the box to the position in
  1606.                     your drawing where you want the image and press [Enter].
  1607.  
  1608.      Object Functions    When you have an Object in memory as discussed above,
  1609.                          you can manipulate it in several ways. All of the
  1610.                          following commands are accessible only by selecting
  1611.                          [O]bject from the Draw menu:
  1612.  
  1613.           r[O]tate  turns the current object 90 degrees clockwise. Rotate twice
  1614.                     to turn the current object upside down,
  1615.  
  1616.           [R]everse reverses the object from left to right,
  1617.  
  1618.           [E]nlarge doubles the width of the current object,
  1619.  
  1620.           [C]ontract     halves the width of the object,
  1621.  
  1622.           [L]arge        doubles the height of the current object,
  1623.  
  1624.           [S]mall        halves its height.
  1625.  
  1626.                     Although nothing seems to happen on the screen, the current
  1627.                     Object will be affected in memory, which you can see by
  1628.                     [D]roping it.
  1629.  
  1630.                Note: that for the sake of processing speed, objects are stored
  1631.                and manipulated on byte boundaries. If you do not get the result
  1632.                you want with one of the object commands. (Perhaps a part of the
  1633.                object is truncated.) Try re-grabbing the object with a greater
  1634.                margin (of blank space) around it. Then the manipulating commands
  1635.                will not affect the edges.
  1636.  
  1637.      Transfer to Font    This command ([X]fer) is like the [O]bject command.
  1638.                          With [X]fer, you grab an area of the drawing to be
  1639.                          copied to a specific character in the current graphics
  1640.                          font. When you press [X], the cursor becomes a box the
  1641.                          size of the current font. Move the box to the image to
  1642.                          be grabbed and press the key for the character to copy
  1643.  
  1644.  
  1645.  
  1646.      Page 20                                                         PC-Draft II
  1647.  
  1648.  
  1649.  
  1650.  
  1651.  
  1652.  
  1653.  
  1654.  
  1655.  
  1656.  
  1657.  
  1658.  
  1659.                          to. For example, to grab an image to use for the A
  1660.                          character, press [A]. You can then move to another area
  1661.                          and grab again for another character. Press [Enter] to
  1662.                          exit this mode.
  1663.  
  1664.                Note: that you cannot [X]fer to numeric characters (0 to 9), or
  1665.                the [S] key because these keys are used to change the cursor
  1666.                increment value. First [X]fer the image to another temporary
  1667.                character. Then use the font copy function: [F10] (from the font
  1668.                editing window) to copy from the temporary to the one you want.
  1669.  
  1670.      Zoom           [Z]oom allows you to edit a portion of your drawing at the
  1671.                     pixel level more easily by enlarging the dots. Position the
  1672.                     cursor in the center of the area to zoom and press [Z]. When
  1673.                     the box appears, you can move the cursor with the arrow
  1674.                     keys. The [Ins] key (mouse right button) toggles pixels on
  1675.                     or off. When the cursor is over a blank space, pressing
  1676.                     [Ins] will turn on the pixel there. When the cursor is over
  1677.                     a pixel already on, pressing [Ins] will turn it off.
  1678.  
  1679.                     The [F9] (mouse left button) key lets you cycle through
  1680.                     three drawing modes:
  1681.  
  1682.                     o    Press [F9] once to draw pixels as you move.
  1683.                     o    Press [F9] again to erase as you move.
  1684.                     o    Press [F9] again and you are back to the original
  1685.                          state, no change will be made as you move the cursor.
  1686.  
  1687.                     While in Zoom mode these function keys perform new func-
  1688.                     tions:
  1689.  
  1690.                     [F1] shifts the zoomed image left one pixel.
  1691.                     [F2] shifts the zoomed image right.
  1692.                     [F3] fills the zoomed area (all white).
  1693.                     [F4] clears the zoomed area (all black).
  1694.                     [F5] reverses each pixel in the zoomed area.
  1695.                     [F8] will print the screen with the zoom window.
  1696.  
  1697.  
  1698.                     Goodies
  1699.  
  1700.                     The following additional commands are accessible by menu
  1701.                     from the goo[D]ies sub-menu. To see these selections, press
  1702.                     [F2][D].
  1703.  
  1704.      Just paint     Press the [J] key to begin the Just Paint mode. In this
  1705.                     mode, as you move the cursor, a trail of the current pattern
  1706.                     is left. The size of this trail is determined by the current
  1707.                     cursor increment value. Like the Spray Can command, this
  1708.                     works best with a mouse.
  1709.  
  1710.  
  1711.  
  1712.      Drawing Commands                                                    Page 21
  1713.  
  1714.  
  1715.  
  1716.  
  1717.  
  1718.  
  1719.  
  1720.  
  1721.  
  1722.  
  1723.  
  1724.  
  1725.  
  1726.                     To end Just Paint mode press [Esc] or both mouse buttons.
  1727.  
  1728.      SpraY Can      Each time you press the [Y] key a random spray of pixels is
  1729.                     painted within the bounds of the current cursor increment
  1730.                     value using the current pattern. As the key is repeated,
  1731.                     more pixels will be filled in. This command is more useful
  1732.                     (easier to use) if you have a mouse, because you can move
  1733.                     the mouse as you hold down the right button to spray in a
  1734.                     continuous line, whereas, without the mouse, the cursor
  1735.                     jumps by the current cursor increment value.
  1736.  
  1737.                     If the current drawing mode is Transparent, the Spray Can
  1738.                     command will always fill approximately 50% of the area (if
  1739.                     you hold the [Y] down) since as new random pixels are drawn
  1740.                     they will cancel out existing pixels.
  1741.  
  1742.                     When the drawing mode is set to "replace", blank pixels in
  1743.                     the current pattern also affect (erase) the underlying
  1744.                     image. If the drawing mode is set to "overlay", only "on"
  1745.                     pixels in the pattern are painted. You can see how this
  1746.                     works if you:
  1747.  
  1748.                     1.   Select the solid pattern (pattern 0).
  1749.                     2.   Select the Replace drawing mode.
  1750.                     3.   Use the [R]ectangle command to draw a solid box.
  1751.                     4.   Select another pattern with some empty space such as
  1752.                          lines.
  1753.                     5.   Start the Spra[Y] command, and draw the spray across
  1754.                          the solid box. You will notice that the pattern is
  1755.                          slowly etched into the solid area.
  1756.                     6.   Now, change the drawing mode to Overlay and try step 4
  1757.                          and 5 again.
  1758.  
  1759.      Kursor         This toggles the cursor shape back and forth from the small
  1760.                     x to the full screen cross.
  1761.  
  1762.      Mouse cursor   If you are using a MicroSoft compatible mouse, this command
  1763.                     changes to the arrow cursor. From the keyboard press [Alt +
  1764.                     C]. Select this command again to return to the normal
  1765.                     cursor.
  1766.  
  1767.      grId           To aid in positioning the cursor in line with other elements
  1768.                     in your drawing, press [I] to draw a grid. The grid will be
  1769.                     spaced horizontally and vertically according to the current
  1770.                     cursor increment value. For example, before pressing [I],
  1771.                     enter [48] to set your cursor increment to 48 pixels, then
  1772.                     when you press [I] a 48 by 48 grid will appear.
  1773.  
  1774.  
  1775.  
  1776.  
  1777.  
  1778.      Page 22                                                         PC-Draft II
  1779.  
  1780.  
  1781.  
  1782.  
  1783.  
  1784.  
  1785.  
  1786.  
  1787.  
  1788.  
  1789.  
  1790.  
  1791.                     Note: When the grid is on, the drawing mode is always set to
  1792.                     Transparent. This is so that the grid does not interfere
  1793.                     with the actual drawing. However, you must be careful when
  1794.                     you add drawing elements with the grid on, that you account
  1795.                     for transparent mode. Also, when you grab an object with the
  1796.                     grid on, the grid will be grabbed as well, so again, be
  1797.                     careful. Remember this is a pixel graphics program not an
  1798.                     object oriented CAD package where true layering would be
  1799.                     more possible.
  1800.  
  1801.                     The grid is always drawn in relationship to the full drawing
  1802.                     area rather than just the screen. This means that as you
  1803.                     move the screen window the grid is redrawn and adjusted for
  1804.                     that window with its starting point remaining at the upper
  1805.                     left corner of the full drawing area.
  1806.  
  1807.  
  1808.      Quick view     This displays the full drawing in one screen window to give
  1809.                     you an overall view. From the keyboard press [Q]. Press the
  1810.                     [Esc] key to return to the normal drawing.
  1811.  
  1812.      sNap           When you press [N] to turn snap on, the cursor will snap
  1813.                     into position on a grid intersection (whether grid is on or
  1814.                     not). The grid intersection in question is determined by the
  1815.                     current cursor increment value in relationship to the upper
  1816.                     left corner of the full drawing area (as is true for the
  1817.                     grid command above). This means that even if you have grid
  1818.                     on, if you then change the cursor increment, then you turn
  1819.                     snap on, the cursor will snap to the new cursor increment
  1820.                     grid, not the grid displayed.
  1821.  
  1822.                     Snap is one command that does not work well with the mouse,
  1823.                     use the cursor keys instead.
  1824.  
  1825.      Color          This changes the foreground color to one of the possible 15
  1826.                     standard IBM Color Graphic Adapter colors. From the keyboard
  1827.                     press [Ctrl + F1]. Each time you execute this command, the
  1828.                     color is cycled to the next in the list, eventually repeat-
  1829.                     ing.
  1830.  
  1831.      Window         The [W]indow command allows you to designate a rectangular
  1832.                     area of the screen to contain subsequent drawing operations.
  1833.                     Once you have created a smaller than normal window (normally
  1834.                     the drawing window is the full screen), the cursor will not
  1835.                     move outside the borders of your window and lines and fills
  1836.                     will not spill out. You specify the area of the window
  1837.                     similar to the way you draw a box. Position the cursor to a
  1838.                     staring corner, press [Alt + W], move to an opposite corner,
  1839.                     press [Enter]. To undo the window, press [Alt + W] again.
  1840.                     This command is not on the menu. 
  1841.  
  1842.  
  1843.  
  1844.      Drawing Commands                                                    Page 23
  1845.  
  1846.  
  1847.  
  1848.  
  1849.  
  1850.  
  1851.  
  1852.  
  1853.  
  1854.  
  1855.  
  1856.  
  1857.                                        Patterns
  1858.  
  1859.      Patterns are created as 8 by 8 pixel grids which are repeated to fill
  1860.      areas. PC-Draft keeps 8 patterns resident in memory at a time which are
  1861.      used by the [R]ectangle and [P]aint commands to fill areas and by the
  1862.      spra[Y] and [J]ust paint commands. Patterns are stored in .PAT files in the
  1863.      PAT sub-directory. You can create your own patterns or edit those that come
  1864.      with PC-Draft. The Patterns may be seen on the Pattern menu by pressing
  1865.      [F4].
  1866.  
  1867.  
  1868.                     Loading Patterns
  1869.  
  1870.                     Press the sequence: [F3][P][R] for "File menu, [P]atterns,
  1871.                     [R]etrieve". Then in the filename prompt box, enter: [PAT\],
  1872.                     then press [^] or [v] to step through the directory of pat-
  1873.                     terns. Press [Enter] to retrieve a pattern.
  1874.  
  1875.  
  1876.                     Selecting Patterns
  1877.  
  1878.                     Press [F4] to display the list of current patterns. Either
  1879.                     press the number of the pattern you want, or move the arrow
  1880.                     cursor to point to it, then press [Enter] to make it the
  1881.                     current pattern.
  1882.  
  1883.  
  1884.                     Creating and changing Patterns
  1885.  
  1886.                     Once you have selected a pattern as "current", return to the
  1887.                     pattern pop-up by pressing [F4], then press [E] to edit the
  1888.                     current pattern. Within the pattern editing box, you will
  1889.                     see happy faces representing pixels that are "on". The
  1890.                     cursor position is shown as a small box when over an "off"
  1891.                     pixel and as a solid face when over an "on" pixel.
  1892.  
  1893.                     You can move with the arrow keys (or mouse) and toggle
  1894.                     pixels on and off with the space bar (mouse left button).
  1895.  
  1896.  
  1897.                                   Editing A Pattern
  1898.  
  1899.  
  1900.                     Saving Patterns
  1901.  
  1902.                     If you create your own patterns, you must save them in a
  1903.                     .PAT file. Press [F3][P][S] for: "File menu, [P]atterns,
  1904.                     [S]ave". Enter a filename (no extension, PC-Draft will add
  1905.                     .PAT as the default extension).
  1906.  
  1907.  
  1908.  
  1909.  
  1910.      Page 24                                                         PC-Draft II
  1911.  
  1912.  
  1913.  
  1914.  
  1915.  
  1916.  
  1917.  
  1918.  
  1919.  
  1920.  
  1921.  
  1922.  
  1923.                                        Objects
  1924.  
  1925.      Above we discussed Objects and how to grab an area of the drawing as an
  1926.      object with the [O]bject command and then [D]ropped in a new position.
  1927.      Objects can also be saved in a file for later retrieval.
  1928.  
  1929.                     Saving Objects
  1930.  
  1931.                     To save your current object (after you have performed an
  1932.                     [O]bject command), press [F3][O][S] for: "File menu,
  1933.                     [O]bject, [S]ave". Then enter a filename (PC-Draft will add
  1934.                     the default .OBJ filename extension).
  1935.  
  1936.  
  1937.                     Retrieving Objects
  1938.  
  1939.                     PC-Draft comes with several example object files in the OBJ
  1940.                     sub-directory. Press [F3][O][R] to retrieve an object. In
  1941.                     the filename prompt box enter: [OBJ\] and press [^] or [v]
  1942.                     to step through the object directory. Press [Enter] to
  1943.                     retrieve.
  1944.  
  1945.  
  1946.  
  1947.  
  1948.  
  1949.  
  1950.  
  1951.  
  1952.  
  1953.  
  1954.  
  1955.  
  1956.  
  1957.  
  1958.  
  1959.  
  1960.  
  1961.  
  1962.  
  1963.  
  1964.  
  1965.  
  1966.  
  1967.  
  1968.  
  1969.  
  1970.  
  1971.  
  1972.  
  1973.  
  1974.  
  1975.  
  1976.      Objects                                                             Page 25
  1977.  
  1978.  
  1979.  
  1980.  
  1981.  
  1982.  
  1983.  
  1984.  
  1985.  
  1986.  
  1987.  
  1988.  
  1989.                                         Fonts
  1990.  
  1991.      With PC-Draft you can load, edit and create a variety of fonts. Each font
  1992.      is stored as a file with a .FON extension.  Fonts may consist of characters
  1993.      or may be all symbols.
  1994.  
  1995.  
  1996.                     Using Fonts
  1997.  
  1998.                     You can load an existing font by pressing: [F3][F][R] for:
  1999.                     "File menu, [F]ont, [R]etrieve". In the filename prompt box,
  2000.                     enter: "FON\" and press [^] or [v] to step through the font
  2001.                     directory. Press [Enter] to retrieve.
  2002.  
  2003.                     Once you have loaded a font, when you press [W] (for
  2004.                     [W]rite) the cursor becomes a box the size of the font. Some
  2005.                     fonts contain only a subset of the alphabet. So, if nothing
  2006.                     happens when you try to type a character in [W]rite mode,
  2007.                     perhaps the current font has no character defined for that
  2008.                     key. Try uppercase. To leave [W]rite mode, press [Enter] or
  2009.                     [Esc].
  2010.  
  2011.  
  2012.                     Creating, changing Fonts
  2013.  
  2014.                     Press [F6] to pop-up the font editing window. You will see
  2015.                     the filename of the current font on the top line followed by
  2016.                     the current key shown in brackets (also on the top line).
  2017.                     The current range of characters in the current font is shown
  2018.                     on the next two lines in the window as, for instance:
  2019.                     "START: A", "END: Z". This means that this font contains a
  2020.                     character for each keyboard character between uppercase A to
  2021.                     Z. It is important to make the distinction between font
  2022.                     characters and keyboard characters. With some fonts loaded,
  2023.                     for example, pressing the [A] key may draw an Apple rather
  2024.                     than an 'A'.
  2025.  
  2026.                     Also shown at the top of the font window is the current
  2027.                     font's height and width. These are expressed in pixels. The
  2028.                     maximum character height is 32 pixels. The maximum width is
  2029.                     48.
  2030.  
  2031.                     Warning:  you should not change the height and width of an
  2032.                     existing font. Set these values only when you are creating a
  2033.                     new font. If you do change these in an existing font, you
  2034.                     will get scrambled images when writing with that font. The
  2035.                     same applies to the range of characters in a font. Do not
  2036.                     change this after the font is defined.
  2037.  
  2038.  
  2039.  
  2040.  
  2041.  
  2042.      Page 26                                                         PC-Draft II
  2043.  
  2044.  
  2045.  
  2046.  
  2047.  
  2048.  
  2049.  
  2050.  
  2051.  
  2052.  
  2053.  
  2054.  
  2055.                     The "SPACE:" field indicates the amount of space needed for
  2056.                     the particular character currently displayed. By varying
  2057.                     this from character to character, you can create proportion-
  2058.                     ally spaced fonts. For instance, in a font whose size is 32
  2059.                     dots high by 24 dots wide, the 'I' character may need 8 dots
  2060.                     of space, while the 'M' character would need 24 dots. To
  2061.                     change this value press [F6].
  2062.  
  2063.                     When you press any character key that falls within the range
  2064.                     of the current font, that character will be displayed for
  2065.                     editing. You can move the cursor with the arrow keys. Simi-
  2066.                     lar to the [Z]oom command discussed above, the [F9] key
  2067.                     (mouse left button) controls the editing of pixels:
  2068.  
  2069.                     o    Press [F9] once to draw pixels as you move.
  2070.                     o    Press [F9] again to erase as you move.
  2071.                     o    Press [F9] again and you are back to the original
  2072.                          state, no change will be made as you move the cursor. 
  2073.                          In this mode, the [Ins] (mouse right button) key will
  2074.                          toggle the current pixel.
  2075.  
  2076.                     The usage of the other function keys is shown in the Font
  2077.                     window:
  2078.  
  2079.                     [F1] Shifts the current character left one pixel.
  2080.                     [F2] Shifts it right.
  2081.                     [F3] Fills the entire character.
  2082.                     [F4] Clears it.
  2083.                     [F5] Reverses each pixel.
  2084.                     [F6] Allows you to change the character size of the font
  2085.                          and/or the space for the current character.
  2086.                     [F7] Allows you to change the range of characters included
  2087.                          in this font.
  2088.                     [F8] Prints the screen, including the font window.
  2089.                     [F9] Toggle the setting or clearing of pixels.
  2090.                     [F10]     Allows you to copy the image from another charac-
  2091.                               ter to the current one.
  2092.  
  2093.                     Note: that you can copy images drawn on the regular drawing
  2094.                     area into specified characters in the font with the [X]fer
  2095.                     command described in the Drawing Commands section above.
  2096.  
  2097.  
  2098.                     Saving Fonts
  2099.  
  2100.                     To save a font, press: [F3][F][S] for "File menu, [F]ont,
  2101.                     [S]ave". And enter a filename. PC-Draft will automatically
  2102.                     add the .FON file extension.
  2103.  
  2104.  
  2105.  
  2106.  
  2107.  
  2108.      Fonts                                                               Page 27
  2109.  
  2110.  
  2111.  
  2112.  
  2113.  
  2114.  
  2115.  
  2116.  
  2117.  
  2118.  
  2119.  
  2120.  
  2121.                Note: that fonts do not necessarily have to contain characters.
  2122.                They provide a convenient way to store a group of symbols or
  2123.                objects, so that they are available in memory all at once. For
  2124.                example the font file: FLOW.FON contains objects designed to draw
  2125.                flow charts:
  2126.  
  2127.  
  2128.  
  2129.  
  2130.  
  2131.  
  2132.  
  2133.  
  2134.  
  2135.  
  2136.  
  2137.  
  2138.  
  2139.  
  2140.  
  2141.  
  2142.  
  2143.  
  2144.  
  2145.  
  2146.  
  2147.  
  2148.  
  2149.  
  2150.  
  2151.  
  2152.  
  2153.  
  2154.  
  2155.  
  2156.  
  2157.  
  2158.  
  2159.  
  2160.  
  2161.  
  2162.  
  2163.  
  2164.  
  2165.  
  2166.  
  2167.  
  2168.  
  2169.  
  2170.  
  2171.  
  2172.  
  2173.  
  2174.      Page 28                                                         PC-Draft II
  2175.  
  2176.  
  2177.  
  2178.  
  2179.  
  2180.  
  2181.  
  2182.  
  2183.  
  2184.  
  2185.  
  2186.  
  2187.                                         Macros
  2188.  
  2189.      The Macro feature of PC-Draft provides a way to store a sequence of key-
  2190.      strokes in a .MAC file for later playback. This is another way to create a
  2191.      library of images. MAC files are stored as normal ASCII text files and can
  2192.      be edited by your favorite text editor. As well as a way of saving drawing
  2193.      commands, macros can be used to provide a variety of interesting animation
  2194.      effects.
  2195.  
  2196.  
  2197.                     Using Macros
  2198.  
  2199.                     To start the playback of a macro (for example use one of the
  2200.                     samples supplied with PC-Draft), press [F3][M][R] and in the
  2201.                     filename prompt box enter: [MAC\] and press [^] or [v] to
  2202.                     step through the MAC directory. Press [Enter] to start. The
  2203.                     sequence of keystrokes stored in the selected macro file
  2204.                     will be immediately played back.
  2205.  
  2206.                     By changing the current cursor increment value, and then
  2207.                     replaying the macro, you can redraw a given shape larger or
  2208.                     smaller (as long as the cursor increment value was not
  2209.                     changed within the macro itself).
  2210.  
  2211.  
  2212.                     Creating Macros
  2213.  
  2214.                     To start creating a new macro, press [F3][M][S], and enter a
  2215.                     filename. When you press [Enter] to return to the drawing
  2216.                     screen, each keystroke from that point on will be recorded
  2217.                     and saved in the specified file.
  2218.  
  2219.                     To end the recording of keys, press [%] (the percent symbol
  2220.                     key). The .MAC file will be closed. You can then replay the
  2221.                     macro in different positions, and with different cursor
  2222.                     increment values.
  2223.  
  2224.  
  2225.                     Suspend Cursor Increment
  2226.  
  2227.                     It is useful to be able to move one pixel at a time within a
  2228.                     macro without actually changing the cursor increment value
  2229.                     so that the macro can be replayed for different sized
  2230.                     objects. This can be accomplished with the [S]uspend command
  2231.                     to temporarily cause the cursor to move one dot at a time.
  2232.  
  2233.  
  2234.  
  2235.  
  2236.  
  2237.  
  2238.  
  2239.  
  2240.      Macros                                                              Page 29
  2241.  
  2242.  
  2243.  
  2244.  
  2245.  
  2246.  
  2247.  
  2248.  
  2249.  
  2250.  
  2251.  
  2252.  
  2253.                     Relative [+/-] Cursor Increment
  2254.  
  2255.                     Similarly, you can use the [+] and [-] keys to increment and
  2256.                     decrement the cursor increment value to make changes rela-
  2257.                     tive to the value in effect when the macro is started.
  2258.  
  2259.  
  2260.                     .MAC file structure
  2261.  
  2262.                     Macro files are created as standard ASCII text files and may
  2263.                     be edited with your ASCII text editor (even EDLIN!). .MAC
  2264.                     files simply consist of each keystroke as entered during
  2265.                     their creation. Control keys are represented by their
  2266.                     keyboard scan value as an ASCII character preceded by a "^"
  2267.                     character.
  2268.  
  2269.                     The common PC-Draft keystrokes are as follows:
  2270.  
  2271.  
  2272.                    [F1] = ^;       [^] = ^H    [Ctrl + PgUp] = ^(value 132)     
  2273.                    [F2] = ^<       [v] = ^P    [Ctrl + PgDn] = ^v
  2274.                    [F3] = ^=       [<] = ^K    [Ctrl + <]    = ^s
  2275.                    [F4] = ^>       [>] = ^M    [Ctrl + >]    = ^t 
  2276.                    [F5] = ^?       [Home] = ^G
  2277.                    [F6] = ^@       [End]  = ^O [Enter]       = (value 13)
  2278.                    [F7] = ^A       [PgUp] = ^I [Esc]         = ^[
  2279.                    [F8] = ^B       [PgDn] = ^Q
  2280.                    [F9] = ^C
  2281.                    [F10] = ^D
  2282.  
  2283.  
  2284.                     For example the shadow box macro: SHADOW.MAC is:
  2285.  
  2286.                     B^Q^M^M^M^HS^P^P^P^P^MR^M^M^M^M^M^MS^PR^K^K^K^KS^H^ H^HS^H%
  2287.  
  2288.                     Note that the macro file must end with the "%" terminator
  2289.                     character.
  2290.  
  2291.  
  2292.                     Importing text files:
  2293.  
  2294.                     You can import text from a standard ASCII text file into the
  2295.                     graphic screen. To do so, you must do three things: 
  2296.  
  2297.                     1.   Add the character "t" as the first character in the
  2298.                          file. This will tell PC-Draft II to enter text mode. 
  2299.  
  2300.                     2.   Add the character "%" to the end of the file. This
  2301.                          tells the macro function that the end of the macro has
  2302.                          been reached.
  2303.  
  2304.  
  2305.  
  2306.      Page 30                                                         PC-Draft II
  2307.  
  2308.  
  2309.  
  2310.  
  2311.  
  2312.  
  2313.  
  2314.  
  2315.  
  2316.  
  2317.  
  2318.  
  2319.  
  2320.                     3.   Rename the file so that its extension is .MAC.
  2321.  
  2322.  
  2323.                     Actually what you do is convert the text file into a PC-
  2324.                     Draft II macro file. Now, to import the text:
  2325.  
  2326.                     1.   Set the window size as appropriate for the text in the
  2327.                          position you want within the graphic screen area with
  2328.                          the [Alt + W] command.
  2329.  
  2330.                     2.   Position the cursor to the upper left corner of the
  2331.                          window.
  2332.  
  2333.                     3.   Load the macro by pressing: [F3][M][R] and entering the
  2334.                          name of your text file.
  2335.  
  2336.                     That's it. The text will be imported into the window area,
  2337.                     wrapping around as necessary. If your text file is too long
  2338.                     for the window size, you will have to put up with a lot of
  2339.                     beeping as the macro tries to write characters at the end of
  2340.                     the window.
  2341.  
  2342.  
  2343.  
  2344.  
  2345.  
  2346.  
  2347.  
  2348.  
  2349.  
  2350.  
  2351.  
  2352.  
  2353.  
  2354.  
  2355.  
  2356.  
  2357.  
  2358.  
  2359.  
  2360.  
  2361.  
  2362.  
  2363.  
  2364.  
  2365.  
  2366.  
  2367.  
  2368.  
  2369.  
  2370.  
  2371.  
  2372.      Macros                                                              Page 31
  2373.  
  2374.  
  2375.  
  2376.  
  2377.  
  2378.  
  2379.  
  2380.  
  2381.  
  2382.  
  2383.  
  2384.  
  2385.                                         Graphs
  2386.  
  2387.      PC-Draft's graphing function allows you to automatically create line, bar
  2388.      and pie charts. While this function is not as sophisticated as you might
  2389.      find in business graphics programs dedicated to that purpose, PC-Draft
  2390.      provides the means to enhance your graphs with labels, pattern fills, etc.
  2391.      in a much more flexible and free form way. You are the artist. PC-Draft is
  2392.      the tool.
  2393.  
  2394.                     Creating graphs involves three steps:
  2395.  
  2396.                     1.   Enter a set of value pairs (for X and Y graph axis).
  2397.                     2.   Select the type of graph: Bar, Line, Points, or Pie.
  2398.                     3.   Draw the graph (similar to the [B]ox command or the
  2399.                          [C]ircle command for pie charts).
  2400.  
  2401.                     Editing Points
  2402.  
  2403.                     Press [F7] to pop-up the graph menu. Then press [E] to edit
  2404.                     points. Enter values for each element in your graph. Normal-
  2405.                     ly the values on the X axis would be equal for equally sized
  2406.                     Bars in a Bar graph for example. So, enter a 1 for each
  2407.                     element down the X column. The first X axis entry of zero
  2408.                     signals the end. If your graph has 8 elements, the ninth
  2409.                     entry in the X column should be zero. If your Y values are
  2410.                     decimal, enter them without the decimal point. For instance,
  2411.                     enter 12.34 as 1234, and then 56.00 as 5600.
  2412.  
  2413.  
  2414.                     Saving Points
  2415.  
  2416.                     You can save your graph data to a .PTS file by pressing:
  2417.                     [F7][S] and specifying a filename.
  2418.  
  2419.  
  2420.                     loading Points
  2421.  
  2422.                     Similarly, you load previously saved graph data with:
  2423.                     [F7][L].
  2424.  
  2425.  
  2426.                     Graph Type
  2427.  
  2428.                     Specify the type of graph you want to draw by pressing
  2429.                     [F7][T]. Then select either [B]ar, [L]ine, [D]ots, or [P]ie.
  2430.  
  2431.  
  2432.  
  2433.  
  2434.  
  2435.  
  2436.  
  2437.  
  2438.      Page 32                                                         PC-Draft II
  2439.  
  2440.  
  2441.  
  2442.  
  2443.  
  2444.  
  2445.  
  2446.  
  2447.  
  2448.  
  2449.  
  2450.  
  2451.                     Drawing graphs
  2452.  
  2453.                     Once you have entered or loaded point values and selected a
  2454.                     graph type, you can draw your graph anywhere in your draw-
  2455.                     ing. For graph types other than Pie, position the cursor at
  2456.                     one corner of a rectangular area, press [G], then move the
  2457.                     cursor to the opposite corner and press [Enter].
  2458.  
  2459.                     PC-Draft automatically scales the graph to fill the rectan-
  2460.                     gular area specified. To overlay two or more sets of graph
  2461.                     point values:
  2462.  
  2463.                     1.   Draw a bar graph for the first set of points.
  2464.                     2.   Turn off the Graph s[C]ale by pressing: [F7][C] so that
  2465.                          the scale indicator shows: [OFF]. This will cause PC-
  2466.                          Draft to use the same scale established from the
  2467.                          previous graph.
  2468.                     3.   Load the second set of point values.
  2469.                     4.   Select the drawing mode: [F5][O]verlay (see below).
  2470.                     5.   Draw the graph for the second set of points in the same
  2471.                          location as the first.
  2472.  
  2473.                     For the Pie graph type, move the cursor to the center of a
  2474.                     circular area, press [G], and move the cursor outward to
  2475.                     size the pie chart.
  2476.  
  2477.  
  2478.  
  2479.  
  2480.  
  2481.  
  2482.  
  2483.  
  2484.  
  2485.  
  2486.  
  2487.  
  2488.  
  2489.  
  2490.  
  2491.  
  2492.  
  2493.  
  2494.  
  2495.  
  2496.  
  2497.  
  2498.  
  2499.  
  2500.  
  2501.  
  2502.  
  2503.  
  2504.      Graphs                                                              Page 33
  2505.  
  2506.  
  2507.  
  2508.  
  2509.  
  2510.  
  2511.  
  2512.  
  2513.  
  2514.  
  2515.  
  2516.  
  2517.                                      Drawing Mode
  2518.  
  2519.      The drawing mode determines what happens pixel by pixel when you draw over
  2520.      existing (set) pixels. When first started PC-Draft is in [R]eplace drawing
  2521.      mode.
  2522.  
  2523.                     To change drawing mode, press [F5] to pop-up the drawing
  2524.                     mode menu. Then press the letter in brackets for the mode
  2525.                     you want, or press [^] or [v] to move the pointer and press
  2526.                     [Enter] to make your selection.
  2527.  
  2528.                     The effect of each drawing mode is as follows:
  2529.  
  2530.                     [R]eplace:     The resulting pixel equals the drawing pixel.
  2531.  
  2532.                     [O]verlay:     The resulting pixel is changed only if the
  2533.                                    drawing pixel is "on".
  2534.  
  2535.                     [T]ransparent: The resulting Pixel is made the opposite of
  2536.                                    the drawing pixel. This is "XOR" mode.
  2537.  
  2538.                     You might want to experiment with the drawing mode to see
  2539.                     how it affects other operations such as spra[Y] can, [J]ust
  2540.                     paint and [P]aint.
  2541.  
  2542.  
  2543.  
  2544.  
  2545.  
  2546.  
  2547.  
  2548.  
  2549.  
  2550.  
  2551.  
  2552.  
  2553.  
  2554.  
  2555.  
  2556.  
  2557.  
  2558.  
  2559.  
  2560.  
  2561.  
  2562.  
  2563.  
  2564.  
  2565.  
  2566.  
  2567.  
  2568.  
  2569.  
  2570.      Page 34                                                         PC-Draft II
  2571.  
  2572.  
  2573.  
  2574.  
  2575.  
  2576.  
  2577.  
  2578.  
  2579.  
  2580.  
  2581.  
  2582.  
  2583.                                        Printing
  2584.  
  2585.      PC-Draft will print your drawing using a variety of IBM or Epson compatible
  2586.      dot matrix printers or a laser printers compatible with the Hewlett Packard
  2587.      LaserJet+ (Note that this includes HP's DeskJet printer). 
  2588.  
  2589.                     You can print a portion of the current screen window, the
  2590.                     whole screen or the entire drawing. The printing function is
  2591.                     evoked by pressing the [F8] key. If you press [F8] with a
  2592.                     pop-up menu "up", you will print the screen with the menu
  2593.                     pop-up included. Otherwise, the menu bar and control panel
  2594.                     will not be printed.
  2595.  
  2596.                     When printing, you will be asked for a filename (after
  2597.                     specifying printer type and resolution mode). If you wish to
  2598.                     dump the printer control bytes to a file for later printing,
  2599.                     enter the filename to use. You may include the optional
  2600.                     drive and path designations. If you wish to immediately
  2601.                     print, simply press the Enter key. You can later print the
  2602.                     file created by this method from outside of PC-Draft by the
  2603.                     DOS command:
  2604.  
  2605.                          COPY /B PRTFILE PRN
  2606.  
  2607.                     Note:  that you must use the /B option since the file is a
  2608.                     binary file. For the same reason, do not use the DOS print
  2609.                     command, since the file is a binary file containing byte
  2610.                     values which may be interpreted by the Print program as
  2611.                     tabs.
  2612.  
  2613.                     This feature was added to enable you to incorporate PC-Draft
  2614.                     images into word processors that allow sending files to the
  2615.                     printer in the middle of the word processor document. It is
  2616.                     also handy if you want to print several items at a time but
  2617.                     do not want to wait on the slow speed of the printer. You
  2618.                     can save all the images to files with a common extension
  2619.                     (such as .PRT). Then later print them all with:
  2620.  
  2621.                          COPY /B *.PRT PRN
  2622.  
  2623.  
  2624.                     Printer resolution modes
  2625.  
  2626.                     It is not always possible to get dot matrix printer output
  2627.                     to exactly represent the same aspect ratio as the graphics
  2628.                     screen. 
  2629.  
  2630.                     The monitor's (in high resolution 640 by 200 dot mode)
  2631.                     aspect ratio is 2:1.  It takes two horizontal dots to equal
  2632.  
  2633.  
  2634.  
  2635.  
  2636.      Printing                                                            Page 35
  2637.  
  2638.  
  2639.  
  2640.  
  2641.  
  2642.  
  2643.  
  2644.  
  2645.  
  2646.  
  2647.  
  2648.  
  2649.                     one vertical dot. A box that is 100 pixels wide by 50 pixels
  2650.                     high will appear square.
  2651.  
  2652.                     Printers compatible with either the IBM Graphic dot matrix
  2653.                     or the Epson dot matrix printers always print with a verti-
  2654.                     cal resolution of 72 dots per inch (this is the spacing
  2655.                     between the pins in the print head). So the perfect horizon-
  2656.                     tal resolution to match the screen appearance is 144 dots
  2657.                     per inch horizontally (144:72 ratio). The Epson FX+ series
  2658.                     printers have this resolution, the IBM dot matrix printer
  2659.                     (and many compatibles) does not.
  2660.  
  2661.                     The 60 dots per inch modes print two vertical dots for each
  2662.                     one in your original drawing in an attempt to get as close
  2663.                     as possible to the 2:1 aspect ratio. 60:36 is close but not
  2664.                     perfect. This mode fits one screen window on eight inch wide
  2665.                     paper.
  2666.  
  2667.                     The 240 dots per inch modes print one vertical dot for every
  2668.                     two in your original drawing. The pixels in alternate lines
  2669.                     are combined. This 240:144 aspect ratio is better than the
  2670.                     normal 240:72, but still does not produce perfectly round
  2671.                     circles.
  2672.  
  2673.                     Each printer has different graphics resolution modes. The
  2674.                     current version of PC-Draft supports up to four modes for
  2675.                     each printer supported. 
  2676.  
  2677.  
  2678.      IBM dot matrix (Same as Okidata Microline 290 series)
  2679.  
  2680.                     Mode [1]  prints at 60 dots per inch. (480 dots/8 inch
  2681.                               line.)
  2682.                     Mode [2]  prints at 120 dots per inch. (960 dots/8 inch
  2683.                               line.)
  2684.                     Mode [3]  prints at 120 dots per inch. (draft mode is
  2685.                               faster, prints every other dot.)
  2686.                     Mode [4]  prints at 240 dots per inch (1920 dots/8 inch
  2687.                               line.) this fits two screens wide in 5-5/16
  2688.                               inches.)
  2689.  
  2690.                     There is no mode for this printer that will print round
  2691.                     circles.
  2692.  
  2693.      Epson dot matrix    Mode [1]  prints at 72 dots per inch. (4576 dots/8 inch
  2694.                                    line.)
  2695.                     Mode [2]  prints at 120 dots per inch. (960 dots/8 inch
  2696.                               line.)
  2697.                     Mode [3]  prints at 144 dots per inch. (1152 dots/8 inch
  2698.                               line.) This is best for round circles. However,
  2699.  
  2700.  
  2701.  
  2702.      Page 36                                                         PC-Draft II
  2703.  
  2704.  
  2705.  
  2706.  
  2707.  
  2708.  
  2709.  
  2710.  
  2711.  
  2712.  
  2713.  
  2714.  
  2715.                               you lose 128 dots from the far right of your
  2716.                               drawing unless you have a wide carriage printer.
  2717.                     Mode [4]  prints at 240 dots per inch (1920 dots/8 inch
  2718.                               line.) this fits two screens wide in 5-5/16
  2719.                               inches.)
  2720.  
  2721.      HP LaserJet+        (Also for HP DeskJet)
  2722.                     Mode [1]  prints at 75 dots per inch. (600 dots/8 inch
  2723.                               line.)
  2724.                     Mode [2]  prints at 100 dots per inch. (800 dots/8 inch
  2725.                               line.)
  2726.                     Mode [3]  prints at 150 dots per inch. (1200 dots/8 inch
  2727.                               line.) This fills an 8-1/2 by 11 inch size print-
  2728.                               out.
  2729.                     Mode [4]  prints at 300 dots per inch (2400 dots/8 inch
  2730.                               line.) this fits two screens wide in 4.26 inches.)
  2731.  
  2732.                     All modes for the LaserJet print double the number of pixels
  2733.                     vertically to more closely match the proportions of the
  2734.                     screen, so that squares and circles are printed square and
  2735.                     round. 
  2736.  
  2737.                     If your drawing is the equivalent of two screens wide, you
  2738.                     should use the high density modes to fit on 8 1/2 inch wide
  2739.                     paper.
  2740.  
  2741.                     If you have a printer that you would like PC-Draft to
  2742.                     support, please send a copy of the dot graphics section of
  2743.                     your printer manual and we will supply you with a printer
  2744.                     driver for your printer and add it to our collection.
  2745.  
  2746.      IDS Microprism This has only one graphics resolution mode, so we made an
  2747.                     attempt to allow two adjustments:
  2748.  
  2749.                     Mode [1]  prints at normal mode.
  2750.                     Mode [2]  prints at one half vertical.
  2751.  
  2752.      C.Itoh 8510-1550    (same as NEC 8023A/B and SONY SMI-720)
  2753.                     Mode [1]  prints at 80 dots per inch. (640 dots/8 inch
  2754.                               line.)
  2755.                     Mode [2]  prints at 96 dots per inch. (768 dots/8 inch
  2756.                               line.)
  2757.                     Mode [3]  prints at 136 dots per inch. (1088 dots/8 inch
  2758.                               line.) 
  2759.                     Mode [4]  prints at 160 dots per inch (1280 dots/8 inch
  2760.                               line.)
  2761.  
  2762.  
  2763.  
  2764.  
  2765.  
  2766.  
  2767.  
  2768.      Printing                                                            Page 37
  2769.  
  2770.  
  2771.  
  2772.  
  2773.  
  2774.  
  2775.  
  2776.  
  2777.  
  2778.  
  2779.  
  2780.  
  2781.      GEM .IMG       Of great importance to users of DeskTop publishing programs
  2782.                     like Ventura Publisher, is the ability to export portions of
  2783.                     the screen, full screens, and/or full drawings in GEM .IMG
  2784.                     file format. This allows inclusion of graphics created (or
  2785.                     captured) with PC-Draft directly into DTP documents. (Also
  2786.                     works with WordPerfect v 5.0!) Simply print (box, screen or
  2787.                     drawing) using the GEM IMG choice on the printer menu as
  2788.                     your printer choice -- you must give a filename (the
  2789.                     filename should have an ".IMG" extension).
  2790.  
  2791.                     This manual was created using WordPerfect 5.0. The illustra-
  2792.                     tions of PC-Draft screens were made using this method. 
  2793.  
  2794.  
  2795.                     Print current screen window
  2796.  
  2797.                     Press [F8] to pop-up the print menu and select [S] for
  2798.                     [S]creen. Then select a printer type. Then select a printer
  2799.                     resolution mode: [1] - [4] from low to high density. Then
  2800.                     (if you want to save the printer codes in a file for later
  2801.                     printing), enter the path and filename of the file to save
  2802.                     the printer data. Or, (if you wish to print immediately),
  2803.                     press the [Enter] key without any filename.
  2804.  
  2805.                     These steps are typical for the other two printing options:
  2806.                     [A]ll and [B]ox.
  2807.  
  2808.  
  2809.                     Print full drawing
  2810.  
  2811.                     Press [F8] to pop-up the print menu and select [A] for
  2812.                     [A]ll. Then select a printer type and resolution mode.
  2813.  
  2814.  
  2815.                     Print partial screen
  2816.  
  2817.                     First position the cursor to one corner of a rectangular
  2818.                     area of the screen to print. Press [F8] to pop-up the print
  2819.                     menu and select [B] for [B]ox. After selecting the printer
  2820.                     type, you then must position the cursor to the opposite
  2821.                     corner of the area to print as if you were drawing a box.
  2822.                     Then select a printer resolution mode: [1] -[4] from low to
  2823.                     high density and press [Enter] (mouse right button) to start
  2824.                     printing.
  2825.  
  2826.  
  2827.  
  2828.  
  2829.  
  2830.  
  2831.  
  2832.  
  2833.  
  2834.      Page 38                                                         PC-Draft II
  2835.  
  2836.  
  2837.  
  2838.  
  2839.  
  2840.  
  2841.  
  2842.  
  2843.  
  2844.  
  2845.  
  2846.  
  2847.                                     Screen Capture
  2848.  
  2849.      A program called CAPTURE.COM on the distribution diskette, allows you to
  2850.      capture screen images from other programs, save them in separate files, and
  2851.      later load them into PC-Draft. This is useful when writing software docu-
  2852.      mentation. You can add borders around the screen and print them for later
  2853.      paste up.
  2854.  
  2855.                     There are two versions of the screen capture program:
  2856.                     CAPTURE.COM and CAPTURE2.COM. In an attempt to make these
  2857.                     TSR's compatible with more programs, CAPTURE2 performs more
  2858.                     checks for when DOS is busy to tell when it is safe to write
  2859.                     its bitmap data to the pic file. Also CAPTURE2 uses a
  2860.                     different hot-key combination:  [Alt]+[.]   (that's the
  2861.                     period key). So...
  2862.  
  2863.                     CAPTURE uses:       [Alt]+[LeftShift]
  2864.                     CAPTURE2 uses:      [Alt]+[.]
  2865.  
  2866.                     You must experiment, and uses whichever version works with
  2867.                     the program from which you wish to capture screens. Don't
  2868.                     load both into memory at one time! The following discussion
  2869.                     applies to both programs (except for the hot-key).
  2870.  
  2871.                     Capture is a Terminate and Stay Resident (TSR) program. When
  2872.                     you run it from the DOS command line, it will announce its
  2873.                     presence and quietly sink into the background and wait to be
  2874.                     called into action (when its "hot key" is pressed). 
  2875.  
  2876.                     When you run Capture, you must provide it with the location
  2877.                     and starting file name to use to store the screen images it
  2878.                     captures. For example, if you have installed PC-Draft on
  2879.                     your hard disk in a sub-directory called DRAFT, you might
  2880.                     start Capture with this command:
  2881.  
  2882.                     CAPTURE C:\DRAFT\PIC\SCREENA.PIC
  2883.  
  2884.                     Now Capture will store its screens in the PIC sub-directory.
  2885.                     The first screen it saves will be called SCREENA.PIC, the
  2886.                     second will be called SCREENB.PIC. Each subsequent .PIC file
  2887.                     will increment the character in the filename just before the
  2888.                     extension. These files are graphic pic files compatible with
  2889.                     PC-Draft regardless of whether the original screen was in
  2890.                     text mode or graphics mode.
  2891.  
  2892.                     To activate Capture and save the current screen to a .PIC
  2893.                     file, you press the [Alt + left Shift] ([Alt + .] for
  2894.                     Capture2) keys together. You will hear a beep when Capture
  2895.                     is called. Three beeps means it successfully wrote a unique
  2896.                     file to the specified directory. Only one beep means it was
  2897.  
  2898.  
  2899.  
  2900.      Screen Capture                                                      Page 39
  2901.  
  2902.  
  2903.  
  2904.  
  2905.  
  2906.  
  2907.  
  2908.  
  2909.  
  2910.  
  2911.  
  2912.  
  2913.                     unable to create the file (could not find the directory?).
  2914.                     Only two beeps means it created the file, but could not
  2915.                     write the full 16k screen buffer, (disk full?).
  2916.  
  2917.                     Capture will detect the current video mode and adjust. It
  2918.                     converts text mode screens into bit mapped graphics suitable
  2919.                     for PC-Draft II.
  2920.  
  2921.                     Like any other TSR, Capture may have compatibility problems
  2922.                     with other software, especially other TSR's. If you have
  2923.                     trouble, try installing Capture by itself and adding your
  2924.                     other TSR utilities one at a time after you get Capture to
  2925.                     work.
  2926.  
  2927.                     We strongly recommend the shareware utilities MARK and
  2928.                     RELEASE. They will allow you to de-install Capture (and
  2929.                     other TSR's). Look for them on your bulletin board.
  2930.  
  2931.  
  2932.  
  2933.  
  2934.  
  2935.  
  2936.  
  2937.  
  2938.  
  2939.  
  2940.  
  2941.  
  2942.  
  2943.  
  2944.  
  2945.  
  2946.  
  2947.  
  2948.  
  2949.  
  2950.  
  2951.  
  2952.  
  2953.  
  2954.  
  2955.  
  2956.  
  2957.  
  2958.  
  2959.  
  2960.  
  2961.  
  2962.  
  2963.  
  2964.  
  2965.  
  2966.      Page 40                                                         PC-Draft II
  2967.  
  2968.  
  2969.  
  2970.  
  2971.  
  2972.  
  2973.  
  2974.  
  2975.  
  2976.  
  2977.  
  2978.  
  2979.                               The PIX graphics language
  2980.  
  2981.      The PIX.COM program is actually a special version of PC-Draft which reads
  2982.      its input from a script file of graphic commands instead of responding to
  2983.      the keyboard. By creating such a file with your favorite text editor, you
  2984.      are in fact writing a graphics program that will be played out as an
  2985.      animated sequence of steps as PIX reads the file. PIX allows you to:
  2986.  
  2987.                o    Create a script of graphic commands to be played out in
  2988.                     animation for presentations.
  2989.  
  2990.                o    You can load and display screens and whole drawings created
  2991.                     by PC-Draft.
  2992.  
  2993.                o    You can use (and create) PC-Draft objects and macros.
  2994.  
  2995.                o    You can create new macros with PIX's procedures and looping
  2996.                     for use in PC-Draft.
  2997.  
  2998.                o    PIX has repeat looping and Procedures (subroutines).
  2999.  
  3000.                o    In place of literal values used for the drawing commands,
  3001.                     you can substitute variables.
  3002.  
  3003.                o    You can run PIX in trace mode for debugging.
  3004.  
  3005.                     We have provided some sample PIX programs on your distribu-
  3006.                     tion disk. These files all have the filename extension:
  3007.                     .SCR. To get a feel for what PIX is and its versatility run
  3008.                     the demo program as follows. To start a PIX demonstration,
  3009.                     with the file PIX.COM on the current drive and DEMO.SCR in
  3010.                     the SCR directory, enter the command:
  3011.  
  3012.                          PIX SCR\DEMO
  3013.  
  3014.                     at the DOS command prompt, and sit back and watch.
  3015.  
  3016.                PIX is a special purpose language with a few simple rules:
  3017.  
  3018.                     o    The PIX source file must be created as a standard ASCII
  3019.                          text file by your own text editor. EDLIN (shudder) will
  3020.                          work if you don't have any other.
  3021.  
  3022.                     o    Each PIX program statement must be on a line by itself.
  3023.  
  3024.                     o    Numbers are always enclosed by parentheses and separat-
  3025.                          ed by commas, such as: (12,34,56,78).
  3026.  
  3027.                     o    Numbers are integers (usually used to represent X and Y
  3028.                          locations, Pattern, Color, or Repeat loop index.)
  3029.  
  3030.  
  3031.  
  3032.      PIX Language                                                        Page 41
  3033.  
  3034.  
  3035.  
  3036.  
  3037.  
  3038.  
  3039.  
  3040.  
  3041.  
  3042.  
  3043.  
  3044.  
  3045.  
  3046.                     o    Key words such as LINE and CIRCLE can be abbreviated to
  3047.                          their first three characters (LIN and CIR).
  3048.  
  3049.                     o    Upper and lower case is not significant. The commands;
  3050.                          LINE, line, Line, and LiN are all equivalent.
  3051.  
  3052.                     o    White space (space character) is generally ignored, so
  3053.                          lines can be indented for readability. The exception is
  3054.                          around numbers within parentheses: ( 12, 34, 56 ) is
  3055.                          not legal.
  3056.  
  3057.                     o    Any text on a line following a command is ignored,
  3058.                          perfect for comments.
  3059.  
  3060.                     o    Any line beginning with a semi-colon is considered a
  3061.                          comment.
  3062.  
  3063.                     o    A number or variable on a line by itself is considered
  3064.                          as a change to the cursor increment value, just as if
  3065.                          you had typed in a number while using PC-Draft.
  3066.  
  3067.                     o    Values used to refer to cursor positions are always in
  3068.                          relation to the current screen window, not the entire
  3069.                          drawing.
  3070.  
  3071.      Starting PIX        To run PIX simply type PIX at the DOS command prompt
  3072.                          followed by the file name of your script (program). If
  3073.                          you do not specify a script file, PIX will search the
  3074.                          current directory for a script file named AUTO.SCR. If
  3075.                          this file is not found, PIX will ask you for a script
  3076.                          filename. Once a valid script file is found, PIX
  3077.                          immediately begins its performance. When the script has
  3078.                          finished, press the [Enter] key to return to DOS.
  3079.  
  3080.      Trace mode          To run PIX in trace (single step) mode, evoke PIX with
  3081.                          a [T] command line argument. For example, to trace
  3082.                          through the demo script type:
  3083.  
  3084.                          PIX T DEMO
  3085.  
  3086.                     In this mode PIX will display each command line of your
  3087.                     script file and wait for you to press [Enter] before execut-
  3088.                     ing it.
  3089.  
  3090.      Exit PIX       To exit PIX before the script is completed, press any key to
  3091.                     interrupt. PIX will display a pop-up window asking if you
  3092.                     wish to exit. Enter a [Y] to exit or any other character to
  3093.                     continue.
  3094.  
  3095.  
  3096.  
  3097.  
  3098.      Page 42                                                         PC-Draft II
  3099.  
  3100.  
  3101.  
  3102.  
  3103.  
  3104.  
  3105.  
  3106.  
  3107.  
  3108.  
  3109.  
  3110.  
  3111.  
  3112.                     PIX Commands
  3113.  
  3114.                     Each line in your PIX program represents a PIX command. For
  3115.                     instance the following command line draws a box 20 pixels
  3116.                     wide by 40 pixels high starting at X location 120 and Y
  3117.                     location 10:
  3118.  
  3119.                                    Box (120,10,140,50)
  3120.  
  3121.  
  3122.  
  3123.                     You could draw the same box with a series of cursor movement
  3124.                     commands which emulate the way you would draw it with PC-
  3125.                     Draft:
  3126.  
  3127.                                    10             Set cursor increment = 10
  3128.                                    Gotoxy (120,10)     goto starting position
  3129.                                    Box            Start the box
  3130.                                    down           Go down 10 pixels
  3131.                                    down           10 more = 20
  3132.                                    dright              10 down and 10 right
  3133.                                    dright              Now   we're   at  X=140,
  3134.                                                        Y=50
  3135.                                    end            This ends the box command.
  3136.                                    Quit           Exit PIX
  3137.  
  3138.  
  3139.  
  3140.  
  3141.  
  3142.  
  3143.  
  3144.  
  3145.                     Note that the above is a complete PIX program. The text
  3146.                     following each command is treated as a comment.
  3147.  
  3148.      Variables      Pix allows you to substitute an integer variable in place of
  3149.                     numbers used in the various drawing commands. A variable is
  3150.                     identified by one of the 26 alpha characters [A..Z]. For
  3151.                     instance the same box described above can be drawn using
  3152.                     variable substitution:
  3153.  
  3154.                                    Let A = (120)
  3155.                                    Let B = (10)
  3156.                                    Let C = (50)
  3157.                                    Box (a,b,140,c)
  3158.  
  3159.  
  3160.  
  3161.  
  3162.  
  3163.  
  3164.      PIX Language                                                        Page 43
  3165.  
  3166.  
  3167.  
  3168.  
  3169.  
  3170.  
  3171.  
  3172.  
  3173.  
  3174.  
  3175.  
  3176.  
  3177.  
  3178.  
  3179.                     Note that variables can be mixed with numeric values and t-
  3180.                     hat upper and lower case character identifiers are treated
  3181.                     as identical.
  3182.  
  3183.      Assign (LET)   You assign values to variables with the Let statement as
  3184.                     shown:
  3185.  
  3186.                          Let A = (#)
  3187.  
  3188.                     (The equal sign is optional for readability, you could say:
  3189.  
  3190.                          Let A (#)
  3191.  
  3192.                     with the same result.
  3193.  
  3194.      Increment      The following statements increment (by one) the variable B:
  3195.  
  3196.                                    Increment B
  3197.                                    Inc B
  3198.  
  3199.  
  3200.  
  3201.  
  3202.      Decrement      The following statements decrement (by one) the variable C:
  3203.  
  3204.                                    Decrement C
  3205.                                    Dec C
  3206.  
  3207.  
  3208.  
  3209.  
  3210.                     Cursor Movement Commands
  3211.  
  3212.                     These cause the graphics cursor to move in the specified
  3213.                     direction relative to the current position. How far the
  3214.                     cursor moves is determined by the current cursor increment
  3215.                     value.
  3216.  
  3217.                     Right, Left, Up, Down, are the vertical and horizontal
  3218.                     moves.
  3219.       
  3220.                     URight, ULeft, DRight, DLeft, are the diagonal moves. For
  3221.                     instance to move the cursor Down and to the right use the
  3222.                     command: DRight.
  3223.  
  3224.  
  3225.  
  3226.  
  3227.  
  3228.  
  3229.  
  3230.      Page 44                                                         PC-Draft II
  3231.  
  3232.  
  3233.  
  3234.  
  3235.  
  3236.  
  3237.  
  3238.  
  3239.  
  3240.  
  3241.  
  3242.  
  3243.      Gotoxy         Use Gotoxy (x,y) for absolute cursor positioning. This moves
  3244.                     the graphics cursor to X location 140 and Y location 86:
  3245.  
  3246.                                    Gotoxy (140,86)
  3247.  
  3248.  
  3249.  
  3250.  
  3251.                     Screen moves
  3252.  
  3253.                     These commands allow you to move around the drawing (like
  3254.                     [Ctrl + >] in PC-Draft:
  3255.  
  3256.                     >up  corresponds to: [Ctrl + PgUp]
  3257.                     >down     corresponds to: [Ctrl + PgDn]
  3258.                     >left     corresponds to: [Ctrl + <]
  3259.                     >right    corresponds to: [Ctrl + >]
  3260.  
  3261.  
  3262.                     Or, you can move directly to a screen window number:
  3263.  
  3264.                          Move (#)  # must be between [1..28]
  3265.  
  3266.  
  3267.                     Drawing Commands
  3268.  
  3269.                     The following drawing commands perform functions as you
  3270.                     might expect similar to PC-Draft. You can use them with the
  3271.                     corner positions specified as parameters such as:
  3272.  
  3273.                                    Box (a,b,140,c)
  3274.  
  3275.  
  3276.  
  3277.  
  3278.  
  3279.                     Or, you can use them as you would with PC-Draft with
  3280.                     relative cursor movements to specify the opposite corner.
  3281.                     Such as:
  3282.  
  3283.                                    Box
  3284.                                    DRight
  3285.                                    DRight
  3286.                                    DRight
  3287.                                    End
  3288.  
  3289.  
  3290.  
  3291.  
  3292.  
  3293.  
  3294.  
  3295.  
  3296.      PIX Language                                                        Page 45
  3297.  
  3298.  
  3299.  
  3300.  
  3301.  
  3302.  
  3303.  
  3304.  
  3305.  
  3306.  
  3307.  
  3308.  
  3309.                     These commands are:
  3310.        
  3311.                     Box (x1,y1,x2,y2)
  3312.                     Line (x1,y1,x2,y2)
  3313.                     Circle (x1,y1,x2,y2)
  3314.                     Rectangle (x1,y1,x2,y2)
  3315.                     Object (x1,y1,x2,y2)
  3316.                     Graph  (x1,y1,x2,y2)
  3317.                     Window (x1,y1,x2,y2)
  3318.  
  3319.                     The Curve, Erase, Multi-line and Free-draw commands work a
  3320.                     little differently. You specify a starting cursor position,
  3321.                     then the command key-word, then a series of points, with the
  3322.                     GOTOXY command. Then end the sequence of points with the END
  3323.                     command. For example to draw a curve:
  3324.  
  3325.                                    gotoxy (50,20)
  3326.                                    Curve
  3327.                                      gotoxy (150,20)
  3328.                                      gotoxy (250,120)
  3329.                                      gotoxy (350,20)
  3330.                                      gotoxy (450,120)
  3331.                                      gotoxy (550,20)
  3332.                                      gotoxy (550,120)
  3333.                                      gotoxy (600,80)
  3334.                                    end
  3335.  
  3336.  
  3337.  
  3338.  
  3339.                     or to draw multi-lines:
  3340.  
  3341.                                    gotoxy (10,10)
  3342.                                    Multi-line
  3343.                                      gotoxy (10,20)
  3344.                                      gotoxy (25,100)
  3345.                                      gotoxy (150,20)
  3346.                                      gotoxy (250,100)
  3347.                                      gotoxy (300,180)
  3348.                                    end
  3349.  
  3350.  
  3351.  
  3352.  
  3353.  
  3354.  
  3355.                     You can Erase in a free form manner described above or in a
  3356.                     straight line, for example:
  3357.  
  3358.  
  3359.  
  3360.  
  3361.  
  3362.      Page 46                                                         PC-Draft II
  3363.  
  3364.  
  3365.  
  3366.  
  3367.  
  3368.  
  3369.  
  3370.  
  3371.  
  3372.  
  3373.  
  3374.  
  3375.                                    Erase (3,100,300,10)
  3376.  
  3377.  
  3378.  
  3379.      Arc            The Arc command requires two sets of points. The first set
  3380.                     establishes the full circle from which the desired arc will
  3381.                     be taken. The second set of points describes the rectangular
  3382.                     area which sets the boundaries for the arc. For example this
  3383.                     draws a quarter circle arc:
  3384.  
  3385.                                    Arc (300,100,300,10)(300,100,600,9)
  3386.  
  3387.  
  3388.  
  3389.  
  3390.                     These next commands are single key commands which perform
  3391.                     similarly to their counterparts in PC-Draft. You would first
  3392.                     position the cursor, then call the command. For instance,
  3393.                     with the Paint command, paint a circle:
  3394.  
  3395.                                    Circle (135,28,135,95)   Draw a circle
  3396.                                    Gotoxy (135,28)     Return to its center
  3397.                                    Paint               Fill  with  current pat-
  3398.                                tern
  3399.  
  3400.  
  3401.  
  3402.                     They are:
  3403.  
  3404.                     Paint
  3405.                     Drop      (Object)
  3406.                     Reverse   (Object)
  3407.                     Expand    (Object)  ( double size vertically   )
  3408.                     Contract  (Object)  ( halve size vertically    )
  3409.                     Enlarge   (Object)  ( double size horizontally )
  3410.                     Small          (Object)  ( halve size horizontally  )
  3411.                     Home      (Move cursor to center screen)
  3412.                     Kursor         (Toggle cursor between small x and large x)
  3413.                     Undo      (Undo previous drawing command)
  3414.                     Tog       (Toggle chart scale off/on)
  3415.  
  3416.  
  3417.                     The following commands write strings of characters on the
  3418.                     screen. They must be followed by the character string to
  3419.                     write, and therefor cannot have a comment on the same line.
  3420.  
  3421.                     Write <string> (Write "string" using the currently loaded
  3422.                                    font)
  3423.                     Text  <string>      (Write "string" using the IBM regular
  3424.                                         font)
  3425.  
  3426.  
  3427.  
  3428.      PIX Language                                                        Page 47
  3429.  
  3430.  
  3431.  
  3432.  
  3433.  
  3434.  
  3435.  
  3436.  
  3437.  
  3438.  
  3439.  
  3440.  
  3441.  
  3442.                     For example:
  3443.  
  3444.                                    Gotoxy (135,28)     Position the cursor 
  3445.                                    Write  This is my message
  3446.  
  3447.  
  3448.  
  3449.  
  3450.                     Non Drawing Commands
  3451.  
  3452.                     Pattern (#)         (Select pattern number [0..9] )
  3453.                     Mode <MODE>    (Select Drawing Mode:
  3454.                                    "Replace,Overlay,Transparent")
  3455.                     Type <MODE>    (Select Graph type: "Bar,Line,Dots,Pie")
  3456.                     Clear               (Erase screen)
  3457.                     Quit           (Exit PIX)
  3458.                     Color (#)      (Select screen color. Colors are as follows:
  3459.  
  3460.                     0: Black       8: Dark Gray
  3461.                     1: Blue             9: Light Blue
  3462.                     2: Green       10: Light Green
  3463.                     3: Cyan             11: Light Cyan
  3464.                     4: Red              12: Light Red
  3465.                     5: Magenta          13: Light Magenta
  3466.                     6: Brown       14: Yellow
  3467.                     7: Light Grey       15: White  )
  3468.  
  3469.  
  3470.                     File Commands
  3471.  
  3472.                     Load or Save followed by: ("Screen A:PIC\SAMPLE.PIC")
  3473.                     Load Screen    <FilePath>
  3474.                     Save Screen    <FilePath>
  3475.                     Load Drawing   <FilePath>
  3476.                     Save Drawing   <FilePath>
  3477.                     Load Pattern   <FilePath>
  3478.                     Load Font      <FilePath>
  3479.                     Load Object    <FilePath>
  3480.                     Save Object    <FilePath>
  3481.                     Load Macro     <FilePath>
  3482.                     Save Macro     <FilePath>
  3483.                     Load GraphPnts <FilePath>
  3484.  
  3485.  
  3486.  
  3487.  
  3488.  
  3489.  
  3490.  
  3491.  
  3492.  
  3493.  
  3494.      Page 48                                                         PC-Draft II
  3495.  
  3496.  
  3497.  
  3498.  
  3499.  
  3500.  
  3501.  
  3502.  
  3503.  
  3504.  
  3505.  
  3506.  
  3507.                     Program Control Statements
  3508.  
  3509.                     Procedure <name>
  3510.                      .
  3511.                      .        ( Pix commands )
  3512.                      .
  3513.                     Endp      ( end proc. )
  3514.  
  3515.                     Procedures must be declared before they are called (at the
  3516.                     beginning of your PIX script). You are limited to a total of
  3517.                     50 named procedures. The number of command lines within each
  3518.                     procedure is limited by memory. Procedures may contain any
  3519.                     PIX commands including Repeat statements. You must end the
  3520.                     procedure declaration with the Endp statement.
  3521.  
  3522.                     Repeat (#)     ( loop # times )
  3523.                      .
  3524.                      .        ( Pix commands )
  3525.                      .
  3526.                     Endr      ( end repeat )
  3527.  
  3528.                     The Repeat statement causes a series of commands to repeat a
  3529.                     given number of times. There is a limit of 50 command lines
  3530.                     within a repeat loop. You must end the repeat loop with the
  3531.                     Endr statement.
  3532.  
  3533.                     Other Commands
  3534.  
  3535.                     End            ( terminate a series of cursor moves )
  3536.                     Wait (#)       ( # = 1/4 second pause )
  3537.                     Cursor              ( toggle visible cursor off/on )
  3538.                     %              ( end Record Macro     )
  3539.                     ;              ( comment )
  3540.  
  3541.                     To see how the various PIX commands can be used look at the
  3542.                     example .SCR files provided on the distribution disk.
  3543.  
  3544.  
  3545.                     PC-Draft commands not supported
  3546.  
  3547.                     If you thought something was missing, you're right. Some PC-
  3548.                     Draft commands didn't seem to make much sense to include
  3549.                     within the PIX language. These are:
  3550.  
  3551.                     Grid      Snap      Print
  3552.                     Xfer Font Zoom      Just Paint
  3553.                     spraY can Quick View
  3554.                     Edit Font Edit Pattern   Edit Graph points
  3555.                     Save Font Save Pattern   Save Graph points
  3556.  
  3557.  
  3558.  
  3559.  
  3560.      PIX Language                                                        Page 49
  3561.  
  3562.  
  3563.  
  3564.  
  3565.  
  3566.  
  3567.  
  3568.  
  3569.  
  3570.  
  3571.  
  3572.  
  3573.                                Summary of PIX commands
  3574.  
  3575.  
  3576.           Cursor Movement:
  3577.  
  3578.                right     left up   down 
  3579.                uright    uleft     dright    dleft     gotoxy (x,y)
  3580.  
  3581.           Screen moves:
  3582.  
  3583.                >up  >down     >left     >right
  3584.                Move (#)  [1..28]
  3585.  
  3586.           Functions:
  3587.  
  3588.                Pattern (#)  [0..9] ( pattern number )
  3589.                Mode  {Replace|Overlay|Transparent}
  3590.                Type  {Bar|Line|Dots|Pie}
  3591.                Clear
  3592.                Color (#) 0: Black  8: Dark Gray
  3593.                          1: Blue        9: Light Blue
  3594.                          2: Green  10: Light Green
  3595.                          3: Cyan        11: Light Cyan
  3596.                          4: Red         12: Light Red
  3597.                          5: Magenta     13: Light Magenta
  3598.                          6: Brown  14: Yellow
  3599.                          7: Light Grey  15: White
  3600.  
  3601.           Drawing:
  3602.        
  3603.                Arc (x1,y1,x2,y2)(x1,y1,x2,y2)
  3604.                Box (x1,y1,x2,y2)
  3605.                Circle (x1,y1,x2,y2)
  3606.                Curve (x1,y1,x2,y2)
  3607.                Erase (x1,y1,x2,y2)
  3608.                Free-Draw {gotoxy(x,y)..gotoxy(x,y)..end}
  3609.                Line (x1,y1,x2,y2)
  3610.                Multi-line {gotoxy(x,y)..gotoxy(x,y)..end}
  3611.                Rectangle (x1,y1,x2,y2)
  3612.                Graph  (x1,y1,x2,y2)
  3613.                Window (x1,y1,x2,y2)
  3614.                Paint
  3615.                Home
  3616.                Kursor
  3617.                Undo
  3618.                Write <string>
  3619.                Text  <string>
  3620.                Tog (chart scale)
  3621.  
  3622.  
  3623.  
  3624.  
  3625.  
  3626.      Page 50                                                         PC-Draft II
  3627.  
  3628.  
  3629.  
  3630.  
  3631.  
  3632.  
  3633.  
  3634.  
  3635.  
  3636.  
  3637.  
  3638.  
  3639.           Object Manipulation:
  3640.  
  3641.                Object (x1,y1,x2,y2)
  3642.                Drop
  3643.                Reverse
  3644.                Expand
  3645.                Enlarge
  3646.                Contract
  3647.                Small
  3648.  
  3649.           File: (Load or Save followed by:  "Screen A:PIC\SAMPLE.PIC")
  3650.  
  3651.                Load Screen    <FilePath>
  3652.                Save Screen    <FilePath>
  3653.                Load Drawing   <FilePath>
  3654.                Save Drawing   <FilePath>
  3655.                Load Pattern   <FilePath>
  3656.                Load Font      <FilePath>
  3657.                Load Object    <FilePath>
  3658.                Save Object    <FilePath>
  3659.                Load Macro     <FilePath>
  3660.                Save Macro     <FilePath>
  3661.                Load Points    <FilePath>     ( graph points )
  3662.  
  3663.           Other:
  3664.  
  3665.                Wait (#)       ( # = 1/4 second pause )
  3666.                %              ( end Record Macro     )
  3667.                ; comment
  3668.  
  3669.           Program Control:
  3670.  
  3671.                Procedure <name>
  3672.                 .
  3673.                 .
  3674.                End
  3675.  
  3676.                Repeat (#)     ( loop # times )
  3677.                 .
  3678.                 .
  3679.                End
  3680.  
  3681.                Quit      ( end PIX )
  3682.  
  3683.           Variables:    26 integer vars: [A..Z] can be used for any parm.
  3684.  
  3685.                Let X = #  ( assign value )
  3686.                Inc X           ( increment )
  3687.                Dec X           ( decrement )
  3688.  
  3689.  
  3690.  
  3691.  
  3692.      PIX Language                                                        Page 51
  3693.  
  3694.  
  3695.  
  3696.  
  3697.  
  3698.  
  3699.  
  3700.  
  3701.  
  3702.  
  3703.                              Summary of Drawing Commands
  3704.  
  3705.  
  3706.  
  3707.           A - Arc               N - sNap on/off      Object Manipulation
  3708.  
  3709.           B - Box               O - Object grab      E - Enlarge Object
  3710.  
  3711.           C - Circle            P - Paint            C - Contract Object
  3712.  
  3713.           D - Drop Object       Q - Quick View       L - Large Object
  3714.  
  3715.           E - Erase mode        R - Rectangle        O - rOtate Object
  3716.  
  3717.           F - Free Draw         S - Suspend          S - Small Object
  3718.  
  3719.           G - Graph             T - Text mode        Alt-E - Ellipse
  3720.  
  3721.           H - Home              U - Undo             Alt-P - Control
  3722.                                                      Panel on/off
  3723.           I - grId on/off       V - curVe
  3724.  
  3725.           J - Just Paint        W - Write (Font)     - (minus) - decre-
  3726.                                                      ment cursor inc-
  3727.           K - Kursor change     X - Xfer font        rement value
  3728.  
  3729.           L - Line              Y - spraY can        + (plus) -
  3730.                                                      increment cursor
  3731.           M - Multi-line        Z - Zoom             increment value
  3732.  
  3733.           F1 - F Key menu on/off                     . (period) - Direct Move
  3734.           F2 - Drawing menu 
  3735.           F3 - File menu
  3736.           F4 - Patterns        
  3737.           F5 - Drawing mode
  3738.           F6 - Font Editor     
  3739.           F8 - Print
  3740.           F7 - Graphs menu
  3741.           F10 - Exit           
  3742.           F9 - Erase Screen
  3743.           Shift F1-F10 - Set Marker
  3744.           Alt F1-F10 - Move to Marker
  3745.           Ctrl-F1 - change color
  3746.           Alt-F9 - Erase Drawing
  3747.  
  3748.  
  3749.  
  3750.  
  3751.  
  3752.      Page 52                                                         PC-Draft II
  3753.  
  3754.  
  3755.  
  3756.  
  3757.  
  3758.  
  3759.  
  3760.  
  3761.  
  3762.  
  3763.  
  3764.  
  3765.                                         Index
  3766.  
  3767.           Arc  18, 47                             Quick view  23
  3768.                                                   Rectangle  17
  3769.           Bar Graph  32                           sNap  23
  3770.           Box  17, 46                             SpraY Can  22
  3771.                Printing  38                       Text  18
  3772.                                                   Transfer to Font  20
  3773.           CAPTURE.COM  39                         Window  23
  3774.           Circle  17, 46                          Write (Graphic Font) 
  3775.           Clearing the Screen  12                      19
  3776.           Color  23, 48                           Zoom  21
  3777.           Compressed Files  13               Drawing mode  23, 34
  3778.           CONFIG.SYS  5                      Drop  47
  3779.           Contract  47                       Drop Object  20
  3780.           Contract Object  20                DWG file  13
  3781.           Control Panel  10
  3782.           Cursor                             Ellipse  17
  3783.                Command  22                   Ending PC-Draft  15
  3784.                Increment  8                  Enlarge  47
  3785.                Mouse  9, 22                  Enlarge Object  20
  3786.                PIX Command  49               Epson  36
  3787.                PIX Commands  44              Erase  46
  3788.                suspend  19, 29               Erasing  12
  3789.                Type  9                       Exit  15
  3790.           Curve  17, 46                           Ending Macros  29
  3791.                                                   PIX  42
  3792.           Direct Move  11                    Expand  47
  3793.           Directory  14
  3794.                Installation  4               Features  1
  3795.           Drawing                            File Names  6
  3796.                Printing  38                  Files  6
  3797.           Drawing Area  10                        .FON  26
  3798.           Drawing Commands                        .MAC  29
  3799.                Arc  18                            .OBJ  25
  3800.                Box  17                            .PAT  24
  3801.                Circle  17                         .PIC & .DWG  13
  3802.                Color  23                          .PTS  32
  3803.                Curve  17                          .SCR.  41
  3804.                Drop Object  20                    Compressed  13
  3805.                Ellipse  17                        CONFIG.SYS  5
  3806.                Free Draw  17                      DRAFT2.CFG  5
  3807.                Graph  33                          GEM format  38
  3808.                grId  22                           Import ASCII  19
  3809.                Just paint  21                     Importing ASCII  30
  3810.                Kursor  22                         Installation  4
  3811.                Line  16                           Naming conventions 
  3812.                Multi-Line  16                          6
  3813.                Object  19                         printing to  38
  3814.                Paint  17                     FON file  27
  3815.  
  3816.  
  3817.  
  3818.      Index                                                               Page 53
  3819.  
  3820.  
  3821.  
  3822.  
  3823.  
  3824.  
  3825.  
  3826.  
  3827.  
  3828.  
  3829.  
  3830.  
  3831.           Fonts  26                          Paint  17, 47
  3832.                Write command  19             PAT file  24
  3833.           Free Draw  17                      Pattern  24, 48
  3834.                                              PIC file  13
  3835.           GEM  38                                 Capture  39
  3836.           Gotoxy  45                         Pie Graph  32
  3837.           Graph  46                          PIX graphics language  41
  3838.                Points  32                    Printers  6
  3839.                Type  32                           C.Itoh  37
  3840.           Graphic Macros  29                      DeskJet  37
  3841.           Graphs  32                              Epson  36
  3842.           GrId  22                                GEM .IMG files  38
  3843.                                                   IBM dot matrix  36
  3844.           Hercules  3                             IDS Microprism  37
  3845.           Home  11, 47                            LaserJet  37
  3846.           HP LaserJet+  37                        Okidata  36
  3847.                                                   resolution modes  35
  3848.           Import text  30                    Printing  35
  3849.           Installation  4                    Procedure  49
  3850.                                              PTS file  32
  3851.           Just paint  21
  3852.                                              Quick view  23
  3853.           Kursor  9, 22, 47
  3854.                                              Rectangle  17, 46
  3855.           Large Object  20                   Relative Cursor Increment 
  3856.           Laser printer  35                            30
  3857.           Line  16, 46                       Repeat  49
  3858.           Line Graph  32                     Replace Drawing Mode  34
  3859.                                              Reverse  47
  3860.           MAC file  29                       Reverse Object  20
  3861.                Structure  30                 Rotate Object  20
  3862.           Macros  29
  3863.           Markers  11                        SCR file  41
  3864.           Menus  9                           Screen
  3865.           MicroSoft  5                            Capture  39
  3866.           Mode  34, 48                            Printing  38
  3867.           Mouse                              Search directory  14
  3868.                buttons  5                    Small  47
  3869.                cursor  9, 22                 Small Object  20
  3870.                driver  5                     SNap  23
  3871.           Move                               SpraY Can  22
  3872.                direct  11                    Suspend
  3873.                screen  11                         Cursor  29
  3874.                to marker  11                 Text  18, 47
  3875.           Multi-Line  16, 46                 Tog  47
  3876.                                              Trace (PIX)  42
  3877.           OBJ file  25                       Transfer to Font  20
  3878.           Object  19, 25, 46                 Transparent Drawing Mode 
  3879.           Object Manipulation  20                      34
  3880.           Overlay Drawing Mode  34
  3881.  
  3882.  
  3883.  
  3884.      Page 54                                                         PC-Draft II
  3885.  
  3886.  
  3887.  
  3888.  
  3889.  
  3890.  
  3891.  
  3892.  
  3893.  
  3894.  
  3895.  
  3896.  
  3897.           Undo  13, 47
  3898.  
  3899.  
  3900.           Window  23, 46
  3901.           Write  47
  3902.           Write (Graphic Font)  19
  3903.           Xfer  20
  3904.  
  3905.           Zoom  21
  3906.  
  3907.  
  3908.  
  3909.  
  3910.  
  3911.  
  3912.  
  3913.  
  3914.  
  3915.  
  3916.  
  3917.  
  3918.  
  3919.  
  3920.  
  3921.  
  3922.  
  3923.  
  3924.  
  3925.  
  3926.  
  3927.  
  3928.  
  3929.  
  3930.  
  3931.  
  3932.  
  3933.  
  3934.  
  3935.  
  3936.  
  3937.  
  3938.  
  3939.  
  3940.  
  3941.  
  3942.  
  3943.  
  3944.  
  3945.  
  3946.  
  3947.  
  3948.  
  3949.  
  3950.      Index                                                               Page 55
  3951.  
  3952.  
  3953.  
  3954.  
  3955.  
  3956.