home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 1998 November / Dppcpro1198.iso / Nov / Intelcad / Install / Data.Z / Array.scr < prev    next >
Encoding:
Text File  |  1998-03-18  |  4.7 KB  |  479 lines

  1. ;---------------------------------------------
  2. ;File name:    Array.scr
  3. ;Purpose: Demonstrate Array command 
  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. ;---------------------------------------------
  15. erase
  16. all
  17.  
  18. ;---------------------------------------------
  19. ; Turn blips off
  20. blipmode
  21. off
  22. ;---------------------------------------------
  23. ; Set the current layer to zero.
  24. layer
  25. s
  26. 0
  27.  
  28. color
  29. bylayer
  30. ;--------------------------------------------------------------
  31. ; Setting all the other necessary system variables:
  32. vpoint
  33. 0,0,1
  34. ;--------------------------------------------------------------
  35. ; Zoom to a window at least 100 x 100 (if it were square).
  36. zoom
  37. c
  38. 92,56
  39. 120
  40. elev
  41. 0
  42. 0
  43. ;--------------------------------------------------------------
  44. gridmode
  45. 0
  46. ;--------------------------------------------------------------
  47. fillmode
  48. 1
  49. ;--------------------------------------------------------------
  50. snapmode
  51. 0
  52. ;--------------------------------------------------------------
  53. linetype
  54. s
  55. bylayer
  56.  
  57. ;--------------------------------------------------------------
  58. ; Draw the ground, using a rectangular array of circles.
  59. layer
  60. m
  61. ;--------------------------------------------------------------
  62. greenarray
  63. c
  64. green
  65.  
  66.  
  67. ;--------------------------------------------------------------
  68. circle
  69. 0,0
  70. 1
  71. array
  72. 0,1
  73.  
  74. r
  75. 5
  76. 100
  77. 2
  78. 2
  79. ;--------------------------------------------------------------
  80. ; Draw some flower stems using a single row of vertical polylines.
  81. plinewid
  82. 1
  83. pline
  84. 20,6
  85. 20,50
  86.  
  87. array
  88. c
  89. 24,24
  90. 15,31
  91.  
  92. r
  93. 1
  94. 7
  95. 25
  96. plinewid
  97. 0
  98. ;--------------------------------------------------------------
  99. ; Draw leaves using a rectangular array of ellipses
  100. ellipse
  101. 20,15
  102. 35,25
  103. 26,21
  104. array
  105. 35,25
  106.  
  107. r
  108. 1
  109. 7
  110. 25
  111. ; Draw the first flower using a circular, rotated array of lines.
  112. layer
  113. m
  114. yellowarray
  115. c
  116. yellow
  117.  
  118.  
  119. line
  120. 20,50
  121. 40,50
  122.  
  123. array
  124. 25,50
  125.  
  126. p
  127. 20,50
  128. 100
  129. 360
  130. y
  131. ;--------------------------------------------------------------
  132. ; Draw the second flower using a circular, rotated array of ellipses
  133. ; and circles, arrayed at one time.
  134. layer
  135. m
  136. magentaarray
  137. c
  138. magenta
  139.  
  140.  
  141. ellipse
  142. 45,50
  143. 45,70
  144. 42,60
  145. layer
  146. m
  147. bluearray
  148. c
  149. blue
  150.  
  151.  
  152. circle
  153. 45,65
  154. 1
  155. array
  156. 42,60
  157. 45,66
  158.  
  159. p
  160. 45,50
  161. 20
  162. 360
  163. y
  164. ; Draw a cloud using circular, non-rotated arrays of ellipses.
  165. layer
  166. m
  167. whitearray
  168. c
  169. white
  170.  
  171.  
  172. ellipse
  173. 5,85
  174. 35,95
  175. 15,93
  176. array
  177. 35,95
  178.  
  179. p
  180. 25,90
  181. 10
  182. 360
  183. n
  184. ellipse
  185. 15,85
  186. 45,95
  187. 25,93
  188. array
  189. 45,95
  190.  
  191. p
  192. 35,90
  193. 10
  194. 360
  195. n
  196. ; Draw the third flower using 2 circular arrays of rotated polyines.
  197. ; The yellow one is 100 degrees, counter-clockwise (positive).
  198. ; The red one is 270 degrees, clockwise (negative).
  199. layer
  200. s
  201. yellowarray
  202.  
  203. pline
  204. 70,50
  205. 75,53
  206. 77,58
  207. 79,60
  208.  
  209. array
  210. 79,60
  211.  
  212. p
  213. 70,50
  214. 25
  215. 100
  216. y
  217. layer
  218. m
  219. redarray
  220. c
  221. red
  222.  
  223.  
  224. pline
  225. 70,50
  226. 65,45
  227. 64,45
  228. 64,44
  229. 63,44
  230. 63,43
  231. 62,43
  232. 62,42
  233.  
  234. array
  235. 67.78,47.04
  236.  
  237. p
  238. 70,50
  239. 30
  240. -270
  241. y
  242. ; Forth flower: stacked, circular, rotated arrays of 3-sided polygons.
  243. layer
  244. s
  245. bluearray
  246.  
  247. polygon
  248. 3
  249. 95,50
  250. i
  251. 110,50
  252. array
  253. l
  254.  
  255. p
  256. 95,50
  257. 5
  258. 360
  259. y
  260. polygon
  261. 3
  262. 95,60
  263. i
  264. 110,60
  265. array
  266. l
  267.  
  268. p
  269. 95,60
  270. 5
  271. 360
  272. y
  273. polygon
  274. 3
  275. 95,70
  276. i
  277. 110,70
  278. array
  279. l
  280.  
  281. p
  282. 95,70
  283. 5
  284. 360
  285. y
  286. ; Fifth flower:  rotated, 180 degree array of arcs
  287. layer
  288. s
  289. redarray
  290.  
  291. arc
  292. 120,50
  293. 135,50
  294. 138,56
  295. array
  296. 138,56
  297.  
  298. p
  299. 120,50
  300. 35
  301. 180
  302. y
  303. ; Make the sixth flower using a circular array of blocks.
  304. layer
  305. m
  306. flower6
  307. c
  308. white
  309.  
  310.  
  311. circle
  312. 142,49
  313. 2
  314. color
  315. blue
  316. arc
  317. 142,49
  318. 138,47
  319. 132,49
  320. color
  321. magenta
  322. polygon
  323. 3
  324. 132,49
  325. i
  326. 1
  327. block
  328. petal6
  329. 145,50
  330. 144,49
  331. 132,49
  332. 137,47
  333.  
  334. insert
  335. petal6
  336. 145,50
  337. 1
  338.  
  339. 0
  340. array
  341. l
  342.  
  343. p
  344. 145,50
  345. 20
  346. 360
  347. y
  348. color
  349. bylayer
  350. ; Draw a flock of birds using a circular array of blocks, not rotated.
  351. layer
  352. s
  353. bluearray
  354.  
  355. arc
  356. 45,80
  357. 49,81
  358. 52,79
  359. mirror
  360. 52,79
  361.  
  362. 52,80
  363. 52,78
  364. n
  365. block
  366. bird
  367. 52,79
  368. 45,80
  369. 59,80
  370.  
  371. insert
  372. bird
  373. 52,79
  374. 1
  375.  
  376. 0
  377. array
  378. l
  379.  
  380. p
  381. 100,0
  382. 7
  383. -30
  384. n
  385. ; Draw the seventh flower
  386. color
  387. blue
  388. line
  389. 170,50
  390. 170,52
  391.  
  392. color
  393. magenta
  394. line
  395. 170,52.5
  396. 170,54
  397.  
  398. color
  399. red
  400. line
  401. 170,54.5
  402. 170,56
  403.  
  404. color
  405. yellow
  406. line
  407. 170,56.5
  408. 170,60
  409.  
  410. array
  411. 170,51
  412. 170,53
  413. 170,55
  414. 170,57
  415.  
  416. p
  417. 170,50
  418. 40
  419. 360
  420. y
  421. color
  422. bylayer
  423. ; Draw some grass using a rectangular array of blocks (made of arcs & lines).
  424. layer
  425. s
  426. greenarray
  427.  
  428. pline
  429. 13,9
  430. 12,17
  431. 13.1,9
  432. 13.5,19
  433. 13.2,9
  434.  
  435. arc
  436. 13,9
  437. 12,12
  438. 10,13
  439.  
  440. 14,9
  441. 15,10
  442. 18,22
  443. line
  444. 14,9
  445. 18,16
  446.  
  447. block
  448. grass
  449. 13,9
  450. 12,17
  451. 10,13
  452. 18,22
  453. 18,16
  454.  
  455. insert
  456. grass
  457. 13,9
  458. 1
  459.  
  460. 0
  461. array
  462. 18,22
  463.  
  464. r
  465. 1
  466. 7
  467. 25
  468. setvar
  469. cmdecho
  470. 0
  471. ;----------------------------------------------------------------------
  472. ;Now for the grand finale
  473. text
  474. 123,105,0
  475. 5
  476.  
  477. Done!
  478. ;----------------------------------------------------------------------
  479.