home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / d / dicogo.zip / EXAMPLE.CMD < prev    next >
OS/2 REXX Batch file  |  1991-09-30  |  4KB  |  169 lines

  1. com prn                                 ; remove "com" to get printed output
  2. dxf example                             ; set up the dxf recording
  3. tht 8                                   ; and text height (a little big)
  4. sto 1 170 170                           ; to get the right spot on the sheet
  5. lbr/1 2 n 5 7 16 w 577.2                ; set out the boundary
  6. lbr/2 3 n 85 1 30 e 1501.41
  7. lbr/3 4 s 7 38 57 w 356.71
  8. lbr/4 5 s 82 35 6 w 285.41
  9. lbr/5 6 s 5 19 48 e 216.96
  10. lbr/6 7 s 85 1 30 w 1138.17
  11. lln 1 2 8 230                           ; set road alignment
  12. lbr 8 9 n 85 1 30 e 816
  13. lan 8 9 10 315 149 0 0
  14. lbr 10 11 n 82 35 5 e 310
  15. lri 12 3 4 11
  16. ali/8 9 10 13 14 15 425 0 0             ; lay out the curves
  17. ali/9 10 11 16 -17 18 170 0 0
  18. ali/10 11 12 19 -20 21 160 0 0
  19. dxl 8 13                                ; connect the centerline arcs
  20. dxl 15 16
  21. dxl 18 19
  22. dxl 21 12
  23. ofl 8 13 999 23 25                      ; do south side of right-of-way
  24. pin/22 1 2 999 23
  25. dxl 22 23
  26. ofa/14 13 15 23 24 25
  27. ofa/17 18 16 26 25 -25
  28. dxl 24 25
  29. ofa/20 21 19 28 27 -25
  30. dxl 26 27
  31. ofl 21 12 28 999 25
  32. pin 29 28 999 3 4
  33. dxl 28 29
  34. clr 999
  35. com
  36. com     Now lay out the first bank of lots, 100' wide, along the
  37. com     south P/L.  By using (manually) the commands:
  38. com
  39. com             lri 999 1 6 23
  40. com             inb 7 999
  41. com             clr 999
  42. com
  43. com     we can find that it is 697.55' from point 7 to point 999.  This
  44. com     means we can put six 100' lots along the south line before we start
  45. com     to intersect the curve defined by arc 23-24.
  46. com
  47. com     Lot 1
  48. com     ~~~~~
  49. lln 1 6 30 100
  50. lri/31 22 23 30
  51. com
  52. com     Lot 2
  53. com     ~~~~~
  54. lln 30 6 32 100
  55. lri/33 22 23 32
  56. com
  57. com     Lot 3
  58. com     ~~~~~
  59. lln 32 6 34 100
  60. lri/35 22 23 34
  61. com
  62. com     Lot 4
  63. com     ~~~~~
  64. lln 34 6 36 100
  65. lri/37 22 23 36
  66. com
  67. com     Lot 5
  68. com     ~~~~~
  69. lln 36 6 38 100
  70. lri/39 22 23 38
  71. com
  72. com     Lot 6
  73. com     ~~~~~
  74. lln 38 6 40 100
  75. lri/41 22 23 40
  76. com
  77. com     Lot 7
  78. com     ~~~~~
  79. com     This one will intersect the arc.  Use temp pt 999 to find
  80. com     intersection with arc.
  81. com
  82. lln 40 6 42 100
  83. lri 999 22 23 42
  84. alp 43 14 450.35 42 999 42
  85. dxl 42 43
  86. clr 999
  87. com
  88. com     Now annotate the side lot lines.
  89. com
  90. ano 1 22 s
  91. ano 30 31 s
  92. ano 32 33 s
  93. ano 34 35 s
  94. ano 36 37 s
  95. ano 38 39 s
  96. ano 40 41 s
  97. ano 42 43 s
  98. com
  99. com     And, the frontage lines.
  100. com
  101. and 22 31 b
  102. and 31 33 b
  103. and 33 35 b
  104. and 35 37 b
  105. and 37 39 b
  106. and 39 41 b
  107. and 41 23 b
  108. com
  109. com     And the arc from 23 to 43.
  110. com
  111. ana 14 23 43 o
  112. com
  113. com now, let's put a cul-de-sac on the west end.
  114. com
  115. ofl 8 13 44 45 -25                      ; north right-of-way line
  116. lln 8 13 46 205                         ; intersection point
  117. lan/8 46 47 191.45 90 0 0               ; center of cds
  118. cds/46 47 40 50 48 49 50 51 52 53 25    ; the cul-de-sac
  119. com
  120. com now, fillet the r/w intersection -- first fillet:
  121. com
  122. lln 44 45 54 155                        ; fillet end (205'-30'-25' from p/l)
  123. lan 44 54 55 25 90 0 0                  ; fillet center
  124. lan 54 55 56 25 -90 0 0                 ; fillet end
  125. dxl 44 54                               ; r/w line
  126. dxa 55 54 56                            ; fillet (counterclockwise!)
  127. dxl 56 49                               ; r/w line
  128. com
  129. com second fillet:  (this time, use the ALI command)
  130. com
  131. ofl 46 47 998 999 25
  132. pin 997 998 999 44 45
  133. ali/45 997 999 57 -58 59 25 0 0
  134. clr 997 999
  135. dxl 45 57                               ; r/w line
  136. dxl 59 52                               ; r/w line
  137. com
  138. com     Number the lots and do areas (Note:  it is best here
  139. com     to do both at once.  Calling LOT before calculating area
  140. com     will set the location for the text more centrally for
  141. com     lots that have fillets to be calculated.  This is because
  142. com     it isn't necessary to give all corners for the LOT command.
  143. com
  144. lot 1 1 22 31 30
  145. are/1 22 31 30 1
  146. lot 2 30 32 33 31
  147. are/30 32 33 31 30
  148. lot 3 32 34 35 33
  149. are/32 34 35 33 32
  150. lot 4 34 36 37 35
  151. are/34 36 37 35 34
  152. lot 5 36 38 39 37
  153. are/36 38 39 37 36
  154. lot 6 38 40 41 39
  155. are/38 40 41 39 38
  156. lot 7 40 42 43 41
  157. are/40 42 43 41 40
  158. com
  159. com     Add a title (Note: can't put comments at the end of
  160. com     these lines)
  161. com
  162. not 1000 850 a dicogo subdivision
  163. not 950 850 dicogo 3.0, d i management corporation
  164. com
  165. com     And finally, number the points.
  166. com
  167. pnr 1 59
  168. end y example                           ; save the points
  169.