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

  1. ;---------------------------------------------
  2. ;File name: Misc.SCR
  3. ;Purpose: Demonstrate Aperture, textscr, graphscr, etc 
  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. 68,40
  35. 130
  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. ;----------------------------------------------------------------------
  50. ;Aperture
  51. aperture
  52. 25
  53. circle
  54. 5,5
  55. 10
  56. line
  57. 35,5
  58. tan
  59. 5,15
  60.  
  61. line
  62. 35,5
  63. tan
  64. 5,-5
  65.  
  66. text
  67. 4,-10
  68. 1.5
  69.  
  70. Aperture Done
  71. ;
  72. ;----------------------------------------------------------------------
  73. ;Oops and Erase
  74. color
  75. magenta
  76. rectang
  77. 72,36
  78. 90,50
  79.  
  80. w
  81. 0
  82. 84,46
  83. 102,60
  84. text
  85. 72,30
  86. 2.0
  87.  
  88. Erase/Oops
  89. erase
  90. 72,36
  91. 84,46
  92.  
  93. redraw
  94. delay
  95. 500
  96. oops
  97. delay
  98. 500
  99. erase
  100. 72,36
  101. 84,46
  102.  
  103. redraw
  104. delay
  105. 500
  106. oops
  107. delay
  108. 500
  109. erase
  110. 72,36
  111. 84,46
  112.  
  113. redraw
  114. delay
  115. 500
  116. oops
  117. delay
  118. 500
  119. erase
  120. 72,36
  121. 84,46
  122.  
  123. redraw
  124. delay
  125. 500
  126. oops
  127. ;
  128. ;----------------------------------------------------------------------
  129. ;Graphscr/Textscr
  130. textscr
  131. delay
  132. 500
  133. graphscr
  134. delay
  135. 500
  136. textscr
  137. delay
  138. 500
  139. graphscr
  140. delay
  141. 500
  142. textscr
  143. delay
  144. 500
  145. graphscr
  146. delay
  147. 1500
  148. ;
  149. ;----------------------------------------------------------------------
  150. ;dblist
  151. dblist
  152. graphscr
  153. ;
  154. ;Testing Elev
  155. elev
  156. 1
  157.  
  158. circle
  159. 4,50
  160. d
  161. 16
  162. elev
  163. 5
  164.  
  165. circle
  166. 4,50
  167. d
  168. 13
  169. elev
  170. 10
  171.  
  172. circle
  173. 4,50
  174. d
  175. 10
  176. elev
  177. 16
  178.  
  179. circle
  180. 4,50
  181. d
  182. 7
  183. text
  184. -4,36
  185. 2.0
  186.  
  187. To see Elev, change views.
  188. ;
  189. ;Testing Thickness using the Elev command
  190. elev
  191.  
  192. 16
  193. circle
  194. 24,50
  195. d
  196. 7
  197. elev
  198.  
  199. 10
  200. circle
  201. 24,50
  202. d
  203. 10
  204. elev
  205.  
  206. 5
  207. circle
  208. 24,50
  209. d
  210. 13
  211. elev
  212.  
  213. 1
  214. circle
  215. 24,50
  216. d
  217. 16
  218. ;Changing elevation and thickness back to 0.
  219. elev
  220. 0
  221. 0
  222. ;
  223. ;----------------------------------------------------------------------
  224. ;Using Fill with pline and solid
  225. color
  226. green
  227. fill
  228. on
  229. pline
  230. -4,76
  231. w
  232. 1
  233. 1
  234. 14,104
  235. 30,76
  236. -4,96
  237. 32,96
  238. c
  239. solid
  240. 42,96
  241. 42,80
  242. 54,92
  243. 54,84
  244. 64,84
  245. 64,92
  246.  
  247. text
  248. -4,70
  249. 2.0
  250.  
  251. Fill OFF/ON
  252. fill
  253. off
  254. redraw
  255. delay
  256. 50
  257. fill
  258. on
  259. redrawall
  260. delay
  261. 50
  262. fill
  263. off
  264. regen
  265. delay
  266. 50
  267. fill
  268. on
  269. regenall
  270. delay
  271. 50
  272. fill
  273. off
  274. redraw
  275. delay
  276. 50
  277. fill
  278. on
  279. regen
  280. ;
  281. ;----------------------------------------------------------------------
  282. ;Using ortho
  283. text
  284. 72,-10
  285. 2.0
  286.  
  287. Ortho (endpts are not perp)
  288. ortho
  289. on
  290. snap
  291. 2
  292. line
  293. 72,-4
  294. 104,-10
  295. 108,14
  296. 72,20
  297. 76,0
  298. 100,-2
  299. 96,10
  300. 76,6
  301. 80,4
  302. 96,2
  303.  
  304. ortho
  305. off
  306. snap
  307. off
  308. ;
  309. ;----------------------------------------------------------------------
  310. ;Using ltscale by loading and setting a linetype
  311. ;then drawing lines using different linetype scales.
  312. color
  313. blue
  314. linetype
  315. load
  316. dot
  317. icad.lin
  318. set
  319. dot
  320.  
  321. text
  322. 71,73
  323. 2.0
  324.  
  325. ltscale = 0
  326. line
  327. 71,76
  328. 113,76
  329.  
  330. ltscale
  331. 5
  332. text
  333. 71,78
  334. 2.0
  335.  
  336. ltscale = 5
  337. line
  338. 71,81
  339. 113,81
  340.  
  341. ltscale
  342. 10
  343. text
  344. 71,83
  345. 2.0
  346.  
  347. ltscale = 10
  348. line
  349. 71,86
  350. 113,86
  351.  
  352. ltscale
  353. 20
  354. text
  355. 71,88
  356. 2.0
  357.  
  358. ltscale = 20
  359. line
  360. 71,91
  361. 113,91
  362.  
  363. ;
  364. ;Using base
  365. base
  366. 2,1
  367. ;
  368. ;Using ID
  369. color
  370. white
  371. pdsize
  372. 3
  373. pdmode
  374. 2
  375. point
  376. 71,100
  377. text
  378. 76,100
  379. 2.0
  380.  
  381. ID Point
  382. delay
  383. 1000
  384. id
  385. 71,100
  386. ;
  387. ;Testing Units
  388. lunits
  389. 1
  390. id
  391. 52,52
  392. lunits
  393. 2
  394. id
  395. 52,52
  396. lunits
  397. 3
  398. id
  399. 52,52
  400. lunits
  401. 4
  402. id
  403. 52,52
  404. lunits
  405. 5
  406. id
  407. 52,52
  408. units
  409. 1
  410.  
  411.  
  412.  
  413.  
  414.  
  415. id
  416. 52,52
  417. units
  418. 2
  419.  
  420.  
  421.  
  422.  
  423.  
  424. id
  425. 52,52
  426. units
  427. 3
  428.  
  429.  
  430.  
  431.  
  432.  
  433. id
  434. 52,52
  435. units
  436. 4
  437.  
  438.  
  439.  
  440.  
  441.  
  442. id
  443. 52,52
  444. units
  445. 5
  446.  
  447.  
  448.  
  449.  
  450.  
  451. id
  452. 52,52
  453. graphscr
  454. ;
  455. ;----------------------------------------------------------------------
  456. ;Using Rename
  457. layer
  458. m
  459. layer1
  460.  
  461. rename
  462. la
  463. layer1
  464. layer2
  465. rename
  466. la
  467. layer2
  468. layer3
  469. rename
  470. lt
  471. dot
  472. dotty
  473. rename
  474. lt
  475. dotty
  476. dot
  477. ;----------------------------------------------------------------------
  478. ;Using viewres
  479. viewres
  480.  
  481. 100
  482. viewres
  483.  
  484. 50
  485. viewres
  486. n
  487. 20
  488. ;
  489. ;-------------------------
  490. ;Using ucsicon
  491. ucsicon
  492. off
  493. redraw
  494. ucsicon
  495. on
  496. redraw
  497. ucsicon
  498. off
  499. redraw
  500. ;ucsicon
  501. ;o
  502. ;redraw
  503. ucsicon
  504. n
  505. redraw
  506. ucsicon
  507. on
  508. redraw
  509. aperture
  510. 10
  511. ;
  512. ;----------------------------------------------------------------------
  513. ;Now for the grand finale
  514. text
  515. 42,4,0
  516. 3
  517.  
  518. Done!
  519. ;----------------------------------------------------------------------
  520.