home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 1998 November / Dppcpro1198.iso / Nov / Intelcad / Uncompressed / API / Scripts / Copymove.scr < prev    next >
Encoding:
Text File  |  1998-03-18  |  2.7 KB  |  342 lines

  1. ;---------------------------------------------
  2. ;File name: CopyMove.SCR
  3. ;Purpose: Demonstrate Copy and Move 
  4. ;
  5. ;Last Modified: 3/18/98
  6. ;---------------------------------------------
  7. CMDECHO
  8. 0
  9. PICKBOX
  10. 3
  11. APERTURE
  12. 10
  13. ; Erase anything that's there already.
  14. erase
  15. all
  16.  
  17. ; Turn blips off
  18. blipmode
  19. off
  20. ; Set the current layer to zero.
  21. layer
  22. s
  23. 0
  24.  
  25. color
  26. bylayer
  27. ; Setting all the other necessary system variables:
  28. vpoint
  29. 0,0,1
  30. ; Zoom to a window at least 100 x 100 (if it were square).
  31. zoom
  32. c
  33. 54,60
  34. 120
  35. elev
  36. 0
  37. 0
  38. gridmode
  39. 0
  40. fillmode
  41. 1
  42. snapmode
  43. 0
  44. linetype
  45. s
  46. bylayer
  47.  
  48. layer
  49. m
  50. squares
  51. c
  52. white
  53.  
  54.  
  55. ; Draw a square then copy it and move all the copies.
  56. rectang
  57. 10,80
  58. 20,90
  59. copy
  60. 10,80
  61.  
  62. 10,80
  63. 10,65
  64. copy
  65. 10,80
  66.  
  67. 10,80
  68. 10,50
  69. copy
  70. 10,80
  71.  
  72. 10,80
  73. 10,35
  74. copy
  75. 10,80
  76.  
  77. 10,80
  78. 10,20
  79. layer
  80. c
  81. yellow
  82. squares
  83.  
  84. move
  85. 10,80
  86. 10,65
  87. 10,50
  88. 10,35
  89. 10,20
  90.  
  91. 10,80
  92. 20,80
  93. layer
  94. c
  95. red
  96. squares
  97.  
  98. move
  99. 20,80
  100. 20,65
  101. 20,50
  102. 20,35
  103. 20,20
  104.  
  105. 20,80
  106. 30,80
  107. layer
  108. c
  109. magenta
  110. squares
  111.  
  112. ; Move the same squares again, this time using the "previous" selection set.
  113. move
  114. p
  115.  
  116. 30,80
  117. 40,80
  118. layer
  119. c
  120. blue
  121. squares
  122.  
  123. move
  124. p
  125.  
  126. 40,80
  127. 50,80
  128. layer
  129. c
  130. green
  131. squares
  132.  
  133. move
  134. p
  135.  
  136. 50,80
  137. 60,80
  138. layer
  139. c
  140. yellow
  141. squares
  142.  
  143. move
  144. p
  145.  
  146. 60,80
  147. 70,80
  148. layer
  149. c
  150. white
  151. squares
  152.  
  153. delay
  154. 100
  155. layer
  156. c
  157. blue
  158. squares
  159.  
  160. ; Draw a circle, copy it, and move it and its copies.
  161. layer
  162. m
  163. circles
  164. c
  165. white
  166.  
  167.  
  168. circle
  169. 95,85
  170. 7
  171. copy
  172. 95,78
  173.  
  174. m
  175. 95,85
  176. 95,80
  177. 95,75
  178. 95,70
  179. 95,65
  180. 95,60
  181.  
  182. move
  183. 88,85
  184. 88,80
  185. 88,75
  186. 88,70
  187. 88,65
  188. 88,60
  189.  
  190. 95,85
  191. 105,85
  192. move
  193. p
  194.  
  195. 105,85
  196. 115,85
  197. move
  198. p
  199.  
  200. 115,85
  201. 125,85
  202. copy
  203. 125,92
  204.  
  205. 125,85
  206. 125,55
  207. erase
  208. 132,85
  209.  
  210. copy
  211. 132,80
  212.  
  213. 125,80
  214. 125,50
  215. erase
  216. 132,80
  217.  
  218. copy
  219. 132,75
  220.  
  221. 125,75
  222. 125,45
  223. erase
  224. 132,75
  225.  
  226. copy
  227. 132,70
  228.  
  229. 125,70
  230. 125,40
  231. erase
  232. 132,70
  233.  
  234. copy
  235. 132,65
  236.  
  237. 125,65
  238. 125,35
  239. erase
  240. 132,65
  241.  
  242. copy
  243. 132,60
  244.  
  245. 125,60
  246. 125,30
  247. erase
  248. 132,60
  249.  
  250. copy
  251. 132,55
  252.  
  253. 125,55
  254. 125,25
  255. erase
  256. 132,55
  257.  
  258. layer
  259. c
  260. blue
  261. circles
  262.  
  263. ; Draw some lines, then copy and move them.
  264. layer
  265. m
  266. lines
  267. c
  268. white
  269.  
  270.  
  271. ; Draw a little set of 5 horizontal lines
  272. line
  273. 20,20
  274. 40,20
  275.  
  276. line
  277. 20,22
  278. 40,22
  279.  
  280. line
  281. 20,25
  282. 40,25
  283.  
  284.  
  285. 20,29
  286. 40,29
  287.  
  288.  
  289. 20,35
  290. 40,35
  291.  
  292. ; Copy the set of lines up higher on the screen.
  293. copy
  294. w
  295. 15,45
  296. 45,15
  297.  
  298. 20,20
  299. 20,60
  300. layer
  301. c
  302. red
  303. lines
  304.  
  305. ; Move the top set by selecting the left half (+/-) of the lines
  306. ; using a selection rectangle from the upper left to lower right.
  307. move
  308. w
  309. 15,78
  310. 42,58
  311.  
  312. 20,60
  313. 25,60
  314. layer
  315. c
  316. yellow
  317. lines
  318.  
  319. ; Move the bottom set by selecting the right half (+/-) of the lines
  320. ; using a selection rectangle from the lower right to upper left.
  321. move
  322. c
  323. 45,15
  324. 30,45
  325.  
  326. 20,20
  327. 25,20
  328. layer
  329. c
  330. magenta
  331. lines
  332.  
  333. setvar
  334. cmdecho
  335. 0
  336. ;Grand finale
  337. text
  338. 71,8
  339. 3
  340.  
  341. Done!
  342.