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

  1. ;---------------------------------------------
  2. ;File name: Layers.SCR
  3. ;Purpose: Demonstrate Layers 
  4. ;
  5. ;Last Modified: 3/18/98
  6. ;---------------------------------------------
  7. CMDECHO
  8. 0
  9. PICKBOX
  10. 3
  11. APERTURE
  12. 10
  13. ;
  14. ; Erase anything that's there already.
  15. erase
  16. all
  17.  
  18. ; Turn blips off
  19. blipmode
  20. off
  21. ; Set the current layer to zero.
  22. layer
  23. s
  24. 0
  25.  
  26. color
  27. bylayer
  28. ; Setting all the other necessary system variables:
  29. vpoint
  30. 0,0,1
  31. ; Zoom to a window at least 100 x 100 (if it were square).
  32. zoom
  33. c
  34. 54,54
  35. 100
  36. elev
  37. 0
  38. 0
  39. gridmode
  40. 0
  41. fillmode
  42. 1
  43. snapmode
  44. 0
  45. linetype
  46. s
  47. bylayer
  48.  
  49. ; Draw a rectangle using distances and angles.
  50. line
  51. 20,20
  52. @10<0
  53. @5<90
  54. @10<180
  55. @5<270
  56.  
  57. ; Make a layer named red, that is red.
  58. layer
  59. m
  60. redlayers
  61. c
  62. red
  63.  
  64.  
  65. ; Draw a rectangle using distances and angles.
  66. line
  67. 35,20
  68. @10<0
  69. @5<90
  70. @10<180
  71. @5<270
  72.  
  73. ; Make a layer named blue, that is blue.
  74. layer
  75. m
  76. bluelayers
  77. c
  78. blue
  79.  
  80.  
  81. ; Draw a rectangle using distances and angles.
  82. line
  83. 50,20
  84. @10<0
  85. @5<90
  86. @10<180
  87. @5<270
  88.  
  89. layer
  90. m
  91. cyanlayers
  92. c
  93. cyan
  94.  
  95.  
  96. ; Draw a rectangle using distances and angles.
  97. line
  98. 65,20
  99. @10<0
  100. @5<90
  101. @10<180
  102. @5<270
  103.  
  104. layer
  105. m
  106. magentalayers
  107. c
  108. magenta
  109.  
  110.  
  111. ; Draw a rectangle using distances and angles.
  112. line
  113. 80,20
  114. @10<0
  115. @5<90
  116. @10<180
  117. @5<270
  118.  
  119. layer
  120. s
  121. magentalayers
  122.  
  123. ; Draw a rectangle using distances and angles.
  124. line
  125. 20,40
  126. @10<0
  127. @5<90
  128. @10<180
  129. @5<270
  130.  
  131. layer
  132. s
  133. bluelayers
  134.  
  135. ; Draw a rectangle using distances and angles.
  136. line
  137. 35,40
  138. @10<0
  139. @5<90
  140. @10<180
  141. @5<270
  142.  
  143. layer
  144. m
  145. greenlayers
  146. c
  147. green
  148.  
  149.  
  150. ; Draw a rectangle using distances and angles.
  151. line
  152. 50,40
  153. @10<0
  154. @5<90
  155. @10<180
  156. @5<270
  157.  
  158. layer
  159. s
  160. magentalayers
  161.  
  162. ; Draw a rectangle using distances and angles.
  163. line
  164. 65,40
  165. @10<0
  166. @5<90
  167. @10<180
  168. @5<270
  169.  
  170. layer
  171. s
  172. bluelayers
  173.  
  174. ; Draw a rectangle using distances and angles.
  175. line
  176. 80,40
  177. @10<0
  178. @5<90
  179. @10<180
  180. @5<270
  181.  
  182. layer
  183. s
  184. greenlayers
  185.  
  186. ; Draw a rectangle using distances and angles.
  187. line
  188. 20,60
  189. @10<0
  190. @5<90
  191. @10<180
  192. @5<270
  193.  
  194. layer
  195. s
  196. magentalayers
  197.  
  198. ; Draw a rectangle using distances and angles.
  199. line
  200. 35,60
  201. @10<0
  202. @5<90
  203. @10<180
  204. @5<270
  205.  
  206. layer
  207. s
  208. redlayers
  209.  
  210. ; Draw a rectangle using distances and angles.
  211. line
  212. 50,60
  213. @10<0
  214. @5<90
  215. @10<180
  216. @5<270
  217.  
  218. layer
  219. s
  220. 0
  221.  
  222. ; Draw a rectangle using distances and angles.
  223. line
  224. 65,60
  225. @10<0
  226. @5<90
  227. @10<180
  228. @5<270
  229.  
  230. layer
  231. s
  232. bluelayers
  233.  
  234. ; Draw a rectangle using distances and angles.
  235. line
  236. 80,60
  237. @10<0
  238. @5<90
  239. @10<180
  240. @5<270
  241.  
  242. layer
  243. s
  244. magentalayers
  245.  
  246. ; Draw a rectangle using distances and angles.
  247. line
  248. 20,80
  249. @10<0
  250. @5<90
  251. @10<180
  252. @5<270
  253.  
  254. layer
  255. s
  256. cyanlayers
  257.  
  258. ; Draw a rectangle using distances and angles.
  259. line
  260. 35,80
  261. @10<0
  262. @5<90
  263. @10<180
  264. @5<270
  265.  
  266. layer
  267. s
  268. redlayers
  269.  
  270. ; Draw a rectangle using distances and angles.
  271. line
  272. 50,80
  273. @10<0
  274. @5<90
  275. @10<180
  276. @5<270
  277.  
  278. layer
  279. s
  280. bluelayers
  281.  
  282. ; Draw a rectangle using distances and angles.
  283. line
  284. 65,80
  285. @10<0
  286. @5<90
  287. @10<180
  288. @5<270
  289.  
  290. ; Flash the red layer to test Layer Off and Layer On
  291. layer
  292. off
  293. redlayers
  294.  
  295. layer
  296. on
  297. redlayers
  298.  
  299. layer
  300. off
  301. redlayers
  302.  
  303. layer
  304. on
  305. redlayers
  306.  
  307. ; Test Set Layer Color by changing the color of the blue layer
  308. layer
  309. c
  310. 1
  311. bluelayers
  312.  
  313. layer
  314. c
  315. 2
  316. bluelayers
  317.  
  318. layer
  319. c
  320. 3
  321. bluelayers
  322.  
  323. layer
  324. c
  325. 4
  326. bluelayers
  327.  
  328. layer
  329. c
  330. 5
  331. bluelayers
  332.  
  333. layer
  334. c
  335. 6
  336. bluelayers
  337.  
  338. layer
  339. c
  340. 7
  341. bluelayers
  342.  
  343. layer
  344. c
  345. 8
  346. bluelayers
  347.  
  348. layer
  349. c
  350. 9
  351. bluelayers
  352.  
  353. layer
  354. c
  355. 10
  356. bluelayers
  357.  
  358. layer
  359. c
  360. 11
  361. bluelayers
  362.  
  363. layer
  364. c
  365. blue
  366. bluelayers
  367.  
  368. layer
  369. s
  370. greenlayers
  371.  
  372. setvar
  373. cmdecho
  374. 0
  375. ;----------------------------------------------------------------------
  376. ;Now for the grand finale
  377. text
  378. 22,15,0
  379. 3
  380.  
  381. Done!
  382. ;----------------------------------------------------------------------
  383.