home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS 1994 September / Simtel-MSDOS-Sep1994-CD2.iso / disc2 / autocad / aabstrct.txt < prev    next >
Text File  |  1989-10-08  |  7KB  |  172 lines

  1.  
  2. Date: Monday, 9 October 1989  18:05-MDT
  3. From: Benjamin Olasov <olasov@heathcliff.cs.columbia.edu>
  4. To:   kpetersen@wsmr-simtel20.army.mil
  5. Re:   New PD1:<MSDOS.AUTOCAD> Uploads
  6.  
  7. I've uploaded the following files to SIMTEL20:
  8.  
  9. <msdos.autocad>
  10. RECT.ARC        AutoLISP: Rectangle drawing routines
  11. SFILL.ARC       AutoLISP: Fill between 2 Arcs, Lines, Plines 
  12. PDIST.ARC       AutoLISP: Finds dist betwn two pts on pline
  13. PARNCH.ARC      AutoLISP parentheses checker/ pretty printer
  14. DTL.ARC         AutoLISP: Extracts detail section of drawing
  15. ANSIMENU.ARC    AutoLISP: ANSI menu system for developers
  16. SV-ENV.ARC      AutoLISP: Saves AutoLISP environment to file
  17. DRAGON.ARC      AutoLISP: Generates recursively defined dwgs
  18. CHG.ARC         AutoLISP: Low level entity access
  19. DOOR.ARC        AutoLISP: Two pick door program
  20.  
  21.  
  22. These  files replace the  file ACADARC.ARC now  in the <msdos.autocad>
  23. directory.  Most  of  these  files  are  AutoLISP  code, for  use with
  24. AutoCad's  imbedded LISP  interpreter.   Although they're uploaded for
  25. the MSDOS section,  they should work  with  Unix AutoCad or  MacIntosh
  26. AutoCad as well.   The one exception is MENU.LSP  which  uses  the DOS
  27. specific ANSI.SYS device.
  28.  
  29. I hope they're useful.  Feedback is welcome.
  30.  
  31. Regards,
  32.  
  33. Ben               olasov@cs.columbia.edu
  34.  
  35. Detailed descriptions of the uploads follow:
  36. --------
  37. RECT.ARC        AutoLISP: Rectangle drawing routines
  38.  
  39. RECT.LSP 
  40. RECT draws a rectangle based on digitizing the lower left corner and 
  41. supplying X and Y dimensions. The widths and rounding radius can either 
  42. digitized or entered in dimension format from the keyboard. 
  43.  
  44. REC draws a rectangle based on digitizing two corners and prompts for
  45. the corner rounding radius.  The rounding radius can be digitized.
  46. The default rounding radius is always 0.
  47. By Ben Olasov, Graphic Systems, Inc., Cambridge, MA
  48.  
  49. SFILL.ARC        AutoLISP: Fill between 2 Arcs, Lines, Plines 
  50.  
  51. SFILL.LSP 
  52. SFILL will construct an even division of SOLIDs between any 2 Arcs, 
  53. Lines or Polylines on any elevation plane.
  54.  
  55. This routine was once RULESURF.lsp and much of the code was designed
  56. to collect and use 3dpoints for 3dfaces. It works well with the SOLID
  57. entity and I think you will find it very useful. Please feel free
  58. to modify and improve this code.
  59.  
  60. Note: the entities must "read" in the same direction, else you will
  61. get a major bow tie effect.
  62. By Jamie Clay, AutoDesk, Sausalito, CA [76703,4204]
  63.  
  64. PDIST.ARC       AutoLISP: Finds dist betwn two pts on pline
  65.  
  66. PDIST.LSP is a AutoLISP 2.6-based user defined command that measures
  67. the distance between two points along a polyline.  This is accomplished
  68. by BREAKING out the polyline segment to be measured, using the
  69. AutoLISP 2.6 AREA command to report the length of the polyline,
  70. and using the UNDO command to repair the break.
  71. By Philip M. Kreiker, Looking Glass Microproducts
  72.  
  73. PARNCH.ARC      AutoLISP parentheses checker/ pretty printer
  74.  
  75. Program for AutoCAD users who need to "clean-up" a Lisp source file 
  76. similiar to "Pretty-Type" and do Parentheses checking at the function 
  77. level. 
  78.  
  79. This routine will not only check each function and report on missing open
  80. and closed parentheses but it will also create a file, [filename.CNG], that is
  81. indented at each parenthesis level. This file allows easy traceback of the
  82. parentheses levels of the routine, it can also be the final source file.
  83. Usage: Type PARNCH at the DOS command prompt.
  84. By George Hartinger, P.O.Box 40812, Grand Junction, Colo. 81504
  85.  
  86. DTL.ARC         AutoLISP: Extracts detail section of drawing
  87.  
  88. DTL.LSP
  89. Extracts a section of a drawing for a detail.
  90. Lines, Arcs, & Circles are trimmed to the box boundary.
  91. P-LINES and equal scale blocks are exploded one level in the detail
  92. before trimming.
  93. By Robert McNeel & Assoc. 1310 Ward St., Seattle, WA, 98109
  94.  
  95. ANSIMENU.ARC    AutoLISP: ANSI menu system for developers
  96.  
  97. MENU.LSP 
  98. The function MENU-OPERATION creates menus in text screen mode for AutoLISP.
  99. It assumes an 80 column textscreen monitor and ANSI.SYS graphics device
  100. MENU-OPERATION looks for and returns an integer.
  101.  
  102. In this version, the header, prompt and individual items in the item-list
  103. MUST all be strings.
  104. The syntax is: 
  105. (menu-operation "header" '("item-1" "item-2" ... "item-n") "prompt")
  106. By Ben Olasov, Graphic Systems, Inc., Cambridge, MA
  107.  
  108. SV-ENV.ARC      AutoLISP: Saves AutoLISP environment to file
  109.  
  110. Environment writing function for *Release 9*. Flaky in Release 10.
  111. This function C:SV-ENV saves the current LISP environment into a file with
  112. the name of the drawing and with the extension .LSP.  For example, if the
  113. name of the current drawing whose LISP environment you wish to save is
  114. FOOBAR.DWG, then the name of the LISP file to which the environment is saved
  115. will be FOOBAR.LSP.
  116.  
  117. For this function to work at all, you must have placed a marker in your
  118. ATOMLIST (AutoLISP's record of all LISP variables, functions, etc.).
  119. To do this, simply place the following line at the end of your ACAD.LSP file:
  120. (setq MARK 'T)
  121.  
  122. Then the SV-ENV function will not attempt to record AutoLISP's primitive 
  123. functions, or the functions automatically loaded with your ACAD.LSP. 
  124.  
  125. To restore your previous environment of variables and user functions, just
  126. type (load "dwgname") at the command prompt, where "dwgname" is the name
  127. of the drawing whose LISP environment you saved.
  128. By Ben Olasov, Graphic Systems, Inc., Cambridge, MA
  129.  
  130. DRAGON.ARC      AutoLISP: Generates recursively defined dwgs
  131.  
  132. DRAGON.LSP 
  133. From _LISP_ by Patrick H. Winston and B. K. P. Horn, published by
  134. Addison/ Wesley.  Contains command level functions C:DRAGON, C:C-CURVE
  135. and C:DEMO.
  136. By Ben Olasov, Graphic Systems, Inc., Cambridge, MA
  137.  
  138. CHG.ARC         AutoLISP: low level entity access
  139.  
  140. CHG.LSP 
  141. CHG displays and modifies the properties of individual entities.
  142. CHG creates a numbered menu of the selected entities properties, and
  143. then prompts the user to select the number of the property to modify.
  144. CHG then prompts for a new value for that property, which may be a
  145. point (list), real, integer, or string.
  146.  
  147. Any changes made by CHG can be undone using AutoCad's 'U' command.
  148. Doing so will return the drawing to its state before using CHG.
  149.  
  150. An example use of CHG:
  151. In a drawing containing two valid blocks A and B, an individual
  152. iteration of block A can be transformed to an iteration of block B by
  153. giving B as its new name. All of its previous insertion parameters will
  154. remain the same, but its identity will be changed to block B. If the
  155. name of the layer in which the entity resides is changed to the name of
  156. an existing layer, the entity will change its residence to that layer.
  157. However, if the new layer name is the name of a non-existing layer, a
  158. layer with that name will be created, and the entity will be transferred
  159. to that layer.
  160. By Ben Olasov, Graphic Systems, Inc., Cambridge, MA
  161.  
  162. DOOR.ARC        AutoLISP: Two pick door program
  163.  
  164. DOOR.LSP contains the command level function C:DOOR which prompts for
  165. the hinge point of the door, then the swing point, and proceeds to break
  166. the wall, finish the door opening, and draw a door symbol scaled to the 
  167. size of the opening.
  168. By Ben Olasov, Graphic Systems, Inc., Cambridge, MA
  169.  
  170. --------
  171. EOF
  172.