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

  1. ;---------------------------------------------
  2. ;File name: MoveCopyOffsetScale.SCR
  3. ;Purpose: Demonstrate Move, Copy, Offset and Scale 
  4. ;
  5. ;Last Modified: 3/18/98
  6. ;---------------------------------------------
  7. CMDECHO
  8. 0
  9. PICKBOX
  10. 3
  11. APERTURE
  12. 10
  13. ;
  14. GRID
  15. ASPECT
  16. 10
  17. 10
  18. ;Turn off blips
  19. blipmode
  20. off
  21. ;Erase everything that's already there
  22. Erase
  23. all
  24.  
  25. ; Setting all the other necessary system variables:
  26. vpoint
  27. 0,0,1
  28. elev
  29. 0
  30. 0
  31. gridmode
  32. 0
  33. fillmode
  34. 1
  35. snapmode
  36. 0
  37. linetype
  38. s
  39. bylayer
  40.  
  41. layer
  42. s
  43. 0
  44.  
  45. color
  46. bylayer
  47. color
  48. red
  49. grid
  50. on
  51. snap
  52. on
  53. snap
  54. 2
  55. limits
  56. 0,0
  57. 200,200
  58. zoom
  59. window
  60. 0,0
  61. 200,200
  62. line
  63. 0.0000,200.0000
  64. 200.0000,200.0000
  65. 200.0000,2.0000
  66. 0.0000,2.0000
  67. 0.0000,200.0000
  68.  
  69. offset
  70. 34
  71. 0.0000,80.0000
  72. 24.0000,82.0000
  73. 34.0000,76.0000
  74. 66.0000,78.0000
  75. 68.0000,74.0000
  76. 98.0000,78.0000
  77. 102.0000,76.0000
  78. 134.0000,78.0000
  79. 136.0000,74.0000
  80. 174.0000,78.0000
  81. 28.0000,200.0000
  82. 28.0000,184.0000
  83. 30.0000,166.0000
  84. 30.0000,110.0000
  85. 28.0000,132.0000
  86. 28.0000,104.0000
  87. 28.0000,98.0000
  88. 28.0000,70.0000
  89. 30.0000,64.0000
  90. 30.0000,26.0000
  91.  
  92. ;       move portion
  93. color
  94. yellow
  95. LINE
  96. 4.0000,196.0000
  97. 30.0000,196.0000
  98.  
  99. ;draw entities in box 1 (section 1)
  100. line
  101. 4.0000,192.0000
  102. 30.0000,192.0000
  103.  
  104. PLINE
  105. 4.0000,184.0000
  106. 6.0000,188.0000
  107. 10.0000,184.0000
  108. 14.0000,188.0000
  109. 18.0000,184.0000
  110. 22.0000,188.0000
  111. 26.0000,184.0000
  112. 30.0000,188.0000
  113.  
  114. ARC
  115. 2.0000,176.0000
  116. 16.0000,182.0000
  117. 30.0000,176.0000
  118. ;
  119. ;draw entities in box 2 (section 2)
  120. CIRCLE
  121. 44.0000,190.0000
  122. 50.0000,186.0000
  123. ELLIPSE
  124. 44.0000,190.0000
  125. 52.0000,178.0000
  126. 60.0000,194.0000
  127. ZOOM
  128. EXTENTS
  129. RECTANG
  130. 48.0000,180.0000
  131. 62.0000,170.0000
  132. hatch
  133. u
  134. 0
  135. 1
  136. NO
  137. 42.0000,174.0000
  138. 42.0000,184.0000
  139.  
  140. ;draw entities in box 3 (section 3)
  141. POLYGON
  142. 6
  143. 76.0000,192.0000
  144. i
  145. 76.0000,188.0000
  146. DONUT
  147. 86.0000,182.0000
  148. 92.0000,176.0000
  149. 94.0000,174.0000
  150. 84.0000,186.0000
  151. 90.0000,190.0000
  152.  
  153. SOLID
  154. 72.0000,178.0000
  155. 72.0000,168.0000
  156. 90.0000,178.0000
  157. 84.0000,172.0000
  158. 96.0000,170.0000
  159.  
  160.  
  161. ;draw entities in box 4 (section 4)
  162. TRACE
  163. 106.0000,192.0000
  164. 116.0000,192.0000
  165. 130.0000,184.0000
  166. 110.0000,176.0000
  167.  
  168. text
  169. 108.0000,188.0000
  170. 108.0000,196.0000
  171. 116.0000,192.0000
  172. hi
  173. text
  174. 2.0000,168.0000
  175. 2.0000,170.0000
  176. 0
  177. line,arc, pline
  178. text
  179. 38.0000,168.0000
  180. 2
  181. 0
  182. circle,ellipse,rect
  183. text
  184. 74.0000,168.0000
  185. 2
  186. 0
  187. pgon,donut,face
  188. text
  189. 106.0000,168.0000
  190. 2
  191. 0
  192. text,trace
  193. ;moving everything in box 1 (section 5)
  194. zoom
  195. extents
  196. move
  197. 18.0000,196.0000
  198. 20.0000,192.0000
  199. 14,188
  200. end
  201. 30.0000,176.0000
  202. 14.0000,168.0000
  203.  
  204. 16.0000,172.0000
  205. 184.0000,138.0000
  206. ;move everything in box 2 (section 6)
  207. move
  208. c
  209. 60,142
  210. 64,144
  211. nea
  212. 62.0000,176.0000
  213. 56,168
  214.  
  215. 46.0000,180.0000
  216. 148.0000,146.0000
  217. ;Move everything in box 3 (section 7)
  218. Move
  219. 16.0000,170.0000
  220. 14.0000,168.0000
  221. 76.0000,188.0000
  222. 94.0000,182.0000
  223. 92.0000,176.0000
  224. 80.0000,178.0000
  225. 88.0000,168.0000
  226. ;80.0000,172.0000
  227.  
  228. 80.0000,178.0000
  229. 116.0000,146.0000
  230. ;move everything in box 4 (section 8)
  231. move
  232. 108.0000,192.0000
  233. ;104.0000,196.0000
  234. 120.0000,190.0000
  235. 108.0000,196.0000
  236. c
  237. 122.0000,190.0000
  238. 106.0000,196.0000
  239. 130.0000,184.0000
  240. 118.0000,170.0000
  241.  
  242. 108.0000,170.0000
  243. 76.0000,136.0000
  244. ;      ------------------------copy portion
  245. redraw
  246. ;copy from box 1 (section 1)
  247. copy
  248. 188.0000,162.0000
  249. 190.0000,158.0000
  250. 178.0000,150.0000
  251. end
  252. 198.0000,142.0000
  253.  
  254. 184.0000,144.0000
  255. 184.0000,180.0000
  256. text
  257. 172.0000,168.0000
  258. 2
  259. 0
  260. Copy
  261. ;copy from box 2 (section 2)
  262. copy
  263. c
  264. 164.0000,164.0000
  265. 148.0000,142.0000
  266.  
  267. 148.0000,138.0000
  268. 148.0000,172.0000
  269. ;copy from box 3 (section 3)
  270. copy
  271. 120.0000,152.0000
  272. 114.0000,156.0000
  273. 118.0000,146.0000
  274. ;130.0000,142.0000
  275.  
  276. 118.0000,146.0000
  277. 118.0000,178.0000
  278. ;copy from box 4 (section 4)
  279. copy
  280. 94.0000,154.0000
  281. 82.0000,160.0000
  282.  
  283. 86.0000,152.0000
  284. 86.0000,186.0000
  285. ;copy the copy text across (section 5)
  286. copy
  287. 176.0000,170.0000
  288.  
  289. 176.0000,168.0000
  290. 142.0000,168.0000
  291. copy
  292. 144.0000,168.0000
  293.  
  294. 142.0000,168.0000
  295. 108.0000,168.0000
  296. copy
  297. 106.0000,170.0000
  298.  
  299. 106.0000,170.0000
  300. 72.0000,170.0000
  301. ;
  302. ;  -----------------------------------offset portion
  303. ;draw all the shapes to offset (section 1)
  304. line
  305. 4.0000,196.0000
  306. 4.0000,168.0000
  307.  
  308. line
  309. 8.0000,196.0000
  310. 28.0000,196.0000
  311.  
  312. line
  313. 10.0000,188.0000
  314. 26.0000,172.0000
  315.  
  316. arc
  317. 38.0000,184.0000
  318. 52.0000,196.0000
  319. 64.0000,184.0000
  320. arc
  321. c
  322. 50.0000,170.0000
  323. 44.0000,178.0000
  324. 60.0000,172.0000
  325. pline
  326. 4.0000,162.0000
  327. w
  328. 0
  329. 0
  330. 8.0000,156.0000
  331. 4.0000,150.0000
  332. 10.0000,146.0000
  333. 4.0000,140.0000
  334. 10.0000,134.0000
  335.  
  336. pline
  337. 24.0000,164.0000
  338. 26.0000,156.0000
  339. a
  340. 22.0000,146.0000
  341. 26.0000,136.0000
  342.  
  343. pline
  344. 40.0000,158.0000
  345. 48.0000,152.0000
  346. 44.0000,150.0000
  347. a
  348. 48.0000,144.0000
  349. 50.0000,138.0000
  350. l
  351. 42.0000,136.0000
  352.  
  353. circle
  354. 14.0000,116.0000
  355. 24.0000,112.0000
  356. polygon
  357. 6
  358. 48.0000,120.0000
  359. i
  360. 54.0000,114.0000
  361. rectang
  362. 50.0000,110.0000
  363. 64.0000,104.0000
  364. ellipse
  365. 14.0000,88.0000
  366. 14.0000,74.0000
  367. 30.0000,82.0000
  368. donut
  369. 44.0000,86.0000
  370. 52.0000,86.0000
  371. 40.0000,86.0000
  372. 56.0000,86.0000
  373. 50.0000,84.0000
  374.  
  375. pline
  376. 56.0000,158.0000
  377. w
  378. 1
  379. 3
  380. 62.0000,142.0000
  381.  
  382. ;print text for each box (section  2)
  383. text
  384. 6.0000,168.0000
  385.  
  386.  
  387. offset lines
  388. text
  389. 36.0000,170.0000
  390. 2
  391. 0
  392. offset arcs
  393. text
  394. 4.0000,136.0000
  395. 2
  396. 0
  397. offset polylines
  398. text
  399. 38.0000,134.0000
  400. 2
  401. 0
  402. offset polylines
  403. text
  404. 4.0000,100.0000
  405. 2
  406. 0
  407. offset circle
  408. text
  409. 36.0000,102.0000
  410. 2
  411. 0
  412. offset polygons & rect
  413. text
  414. 2.0000,66.0000
  415. 2
  416. 0
  417. offset ellipse
  418. text
  419. 38.0000,66.0000
  420. 2
  421. 0
  422. offset donut
  423. color
  424. green
  425. ;
  426. ;start offsetting things (section 3)
  427. offset
  428. 4
  429. 22.0000,196.0000
  430. 22.0000,192.0000
  431. 20.0000,178.0000
  432. 16.0000,178.0000
  433. 4.0000,176.0000
  434. 6.0000,176.0000
  435. 50.0000,196.0000
  436. 50.0000,190.0000
  437. 50.0000,160.0000
  438. 50.0000,168.0000
  439. 50.0000,164.0000
  440. 50.0000,170.0000
  441. 54.0000,190.0000
  442. 54.0000,182.0000
  443. 56.0000,196.0000
  444. 56.0000,198.0000
  445. 60.0000,148.0000
  446. 62.0000,152.0000
  447. 58.0000,146.0000
  448. 56.0000,146.0000
  449. 44.0000,148.0000
  450. 40.0000,150.0000
  451. 22.0000,146.0000
  452. 20.0000,150.0000
  453. 4.0000,152.0000
  454. 16.0000,150.0000
  455. 22.0000,124.0000
  456. 20.0000,120.0000
  457. 22.0000,122.0000
  458. 24.0000,124.0000
  459. 50.0000,128.0000
  460. 50.0000,124.0000
  461. 56.0000,110.0000
  462. 58.0000,108.0000
  463. 16.0000,88.0000
  464. 18.0000,92.0000
  465. 18.0000,84.0000
  466. 18.0000,82.0000
  467. 58.0000,80.0000
  468. 66.0000,82.0000
  469. 54.0000,82.0000
  470. 52.0000,84.0000
  471.  
  472. ;
  473. ;draw and offset strange plines
  474. pline
  475. 74.0000,126.0000
  476. 96.0000,126.0000
  477. width
  478. 0
  479.  
  480. arc
  481. 92.0000,118.0000
  482. 80.0000,114.0000
  483. 92.0000,110.0000
  484.  
  485. redraw
  486. ;More offsets (section  4)
  487. offset
  488. 4
  489. 92.0000,118.0000
  490. 86.0000,114.0000
  491. 82.0000,118.0000
  492. 76.0000,118.0000
  493.  
  494. pline
  495. 78.0000,94.0000
  496. 90.0000,88.0000
  497. 74.0000,80.0000
  498. 92.0000,68.0000
  499. 96.0000,80.0000
  500. 74.0000,88.0000
  501. 92.0000,94.0000
  502.  
  503. offset
  504. 4
  505. 94.0000,74.0000
  506. 94,74
  507. ;b
  508.  
  509. pline
  510. 112.0000,118.0000
  511. 130.0000,126.0000
  512. 146.0000,120.0000
  513. 156.0000,126.0000
  514. a
  515. 176.0000,122.0000
  516. 192.0000,122.0000
  517.  
  518. copy
  519. 152.0000,124.0000
  520.  
  521. 152.0000,122.0000
  522. 152.0000,104.0000
  523. copy
  524. 146.0000,102.0000
  525.  
  526. 156.0000,110.0000
  527. 156.0000,80.0000
  528. ;-------------------taper with Pedit
  529. ;pedit
  530. ;164.0000,128.0000
  531. ;taper
  532. ;0
  533. ;5
  534. regen
  535. offset
  536. 4
  537. 146,118
  538. ;b
  539. 146,118
  540.  
  541. ;--------------------scale portion
  542. ;scale 3 arcs
  543. scale
  544. 58.0000,198.0000
  545. 58.0000,194.0000
  546. 56.0000,190.0000
  547.  
  548. 50.0000,184.0000
  549. .5
  550. ;scale the lines
  551. scale
  552. 16.0000,192.0000
  553. 16.0000,196.0000
  554. 8.0000,178.0000
  555. 4.0000,180.0000
  556. 18.0000,180.0000
  557. 14.0000,178.0000
  558.  
  559. 26.0000,172.0000
  560. 24.0000,174.0000
  561. ;scale the plines with width
  562. scale
  563. 62.0000,142.0000
  564.  
  565. 58.0000,140.0000
  566. 58.0000,142.0000
  567.  
  568. 66.0000,148.0000
  569.  
  570. 60.0000,160.0000
  571. 1.2
  572. ;-----------------------------------------------
  573. scale
  574. 148.0000,122.0000
  575.  
  576. 114.0000,120.0000
  577. 112.0000,120.0000
  578. grid
  579. off
  580. ;Now for the grand finale
  581. color green
  582. text
  583. 172,24,0
  584. 3
  585. 0
  586. Done!
  587. ;----------------------------------------------------------------------
  588. REDRAW
  589. ;----------------------------------------------------------------------
  590.