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

  1. ;---------------------------------------------
  2. ;File name: Circles
  3. ;Purpose: Demonstrate Circles an options 
  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. 75,50
  35. 110
  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 red grid for reference
  50. layer
  51. m
  52. redcircle
  53. c
  54. red
  55.  
  56.  
  57. line
  58. 0,0
  59. 0,100
  60. 150,100
  61. 150,0
  62. 0,0
  63.  
  64. line
  65. 0,50
  66. 150,50
  67.  
  68. line
  69. 50,0
  70. 50,100
  71.  
  72. line
  73. 100,0
  74. 100,100
  75.  
  76. layer
  77. s
  78. 0
  79.  
  80. ;Drawing a circle with Center/Diameter
  81. layer
  82. m
  83. yellowcircle
  84. c
  85. yellow
  86.  
  87.  
  88. text
  89. 1,50
  90. 2.5
  91.  
  92. Center/Diameter
  93. color
  94. red
  95. circle
  96. 24,66
  97. d
  98. 40,63
  99. color
  100. bylayer
  101. circle
  102. 24,80,-10
  103. d
  104. 12
  105. color
  106. green
  107. circle
  108. 24,90,10
  109. d
  110. 8
  111. ;Drawing a circle with Center/Radius
  112. thickness
  113. 0
  114. color
  115. blue
  116. text
  117. 51,50
  118. 2.5
  119.  
  120. Center/Radius
  121.  
  122. 51,55
  123. 1.5
  124.  
  125. Change view to see thickness
  126. thickness
  127. 7
  128. circle
  129. 74,76
  130. 2
  131. thickness
  132. 6
  133. circle
  134. 74,76,10
  135. 4
  136. thickness
  137. 5
  138. circle
  139. 74,76,20
  140. 86,96
  141. circle
  142. 74,76,20
  143. 65,93
  144. thickness
  145. 4
  146. circle
  147. 74,76,30
  148. 8
  149. thickness
  150. 3
  151. circle
  152. 74,76,-10
  153. 10
  154. thickness
  155. 2
  156. circle
  157. 74,76
  158. 12
  159. thickness
  160. 1
  161. circle
  162. 74,76
  163. 14
  164. thickness
  165. 0
  166. circle
  167. 74,76
  168. 71,59
  169. ;Drawing circles with 3Points
  170. thickness 0
  171. color
  172. magenta
  173. text
  174. 101,50
  175. 2.5
  176.  
  177. 3 Points
  178. circle
  179. 3p
  180. 106,70
  181. 116,80
  182. 124,76
  183. circle
  184. 3p
  185. 116,72
  186. 120,76
  187. 126,72
  188. circle
  189. 3p
  190. 126,70,8
  191. 132,80
  192. 144,76
  193. circle
  194. 3p
  195. 136,72,-5
  196. 132,76
  197. 126,72
  198. ;Drawing circles with 2 Points
  199. color
  200. green
  201. text
  202. 1,0
  203. 2.5
  204.  
  205. 2 Points
  206. text
  207. 1,5
  208. 1.5
  209.  
  210. Change view to see thickness
  211. thickness
  212. 3
  213. circle
  214. 2p
  215. 6,40,10
  216. 18,26
  217. circle
  218. 2p
  219. 18,40,8
  220. 30,26
  221. circle
  222. 2p
  223. 30,40,-10
  224. 42,26
  225. circle
  226. 2p
  227. 12,30
  228. 24,16
  229. circle
  230. 2p
  231. 24,16
  232. 36,30
  233. ;Drawing circles with Tangent/Tangent/Radius
  234. color
  235. yellow
  236. thickness
  237. 0
  238. text
  239. 51,0
  240. 2.5
  241.  
  242. Tangent/Tangent/Radius
  243. Thickness 3
  244. circle
  245. 62,38
  246. 8
  247. circle
  248. 88,38
  249. 8
  250. circle
  251. ttr
  252. 70,38
  253. 80,38
  254. 5
  255. line
  256. 54,26,3
  257. 60,6,3
  258. 88,6,3
  259. 94,26,3
  260.  
  261. circle
  262. ttr
  263. tan
  264. 58,12
  265. tan
  266. 66,6
  267. 3
  268. circle
  269. ttr
  270. tan
  271. 80,6
  272. tan
  273. 92,20
  274. 3
  275. circle
  276. ttr
  277. 80,6
  278. 92,20
  279. 4
  280. circle
  281. ttr
  282. 80,6
  283. 92,20
  284. 7
  285. ;Change vpoint
  286. vpoint
  287. 1,-1,1
  288. ;----------------------------------------------------------------------
  289. ;grand finale
  290. thickness
  291. 0
  292. text
  293. 115,21
  294. 4
  295.  
  296. Done!
  297. ;----------------------------------------------------------------------
  298.