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

  1. ;---------------------------------------------
  2. ;File name:TabSurf.SCR
  3. ;Purpose: Demonstrate Tabsurf 
  4. ;
  5. ;Last Modified: 3/18/98
  6. ;---------------------------------------------
  7. ;this script runs best when IntelliCAD is maximized
  8. CMDECHO
  9. 0
  10. PICKBOX
  11. 3
  12. APERTURE
  13. 10
  14. ; settings 
  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. ;---------------------------------------------
  27. color
  28. bylayer
  29. ; Setting all the other necessary system variables:
  30. vpoint
  31. 0,0,1
  32. ; Zoom to a window at least 100 x 100 (if it were square).
  33. zoom
  34. c
  35. 100,100
  36. 220
  37. elev
  38. 0
  39. 0
  40. gridmode
  41. 0
  42. fillmode
  43. 1
  44. snapmode
  45. 0
  46. linetype
  47. s
  48. bylayer
  49.  
  50. ; *********************
  51. ; Draw a grid for reference
  52. ;*********************
  53. layer
  54. m
  55. splinegrid
  56. c
  57. white
  58.  
  59.  
  60. line
  61. 0,0
  62. 0,250
  63. 250,250
  64. 250,0
  65. 0,0
  66.  
  67. line
  68. 0,50
  69. 250,50
  70.  
  71. line
  72. 0,100
  73. 250,100
  74.  
  75. line
  76. 0,150
  77. 250,150
  78.  
  79. line
  80. 50,0
  81. 50,250
  82.  
  83. line
  84. 100,0
  85. 100,250
  86.  
  87. line
  88. 150,0
  89. 150,250
  90.  
  91. line
  92. 0,200
  93. 250,200
  94.  
  95. line
  96. 0,200
  97. 250,200
  98.  
  99. line
  100. 200,250
  101. 200,0
  102.  
  103. layer
  104. s
  105. 0
  106.  
  107. ; this is where I zoom in  grid
  108. zoom
  109. w
  110. -14,250
  111. 277,-2.84
  112. layer
  113. m
  114. Revsurf
  115. c
  116. blue
  117.  
  118.  
  119. surftab1
  120. 6
  121. ; ******************************
  122. ; Tabsurf using lines with a line
  123. text
  124. 1.5805,201.4442
  125. 2.5
  126.  
  127. 1) Line & Line
  128. line
  129. 15.1411,241.6887
  130. 8.5795,229.8778
  131.  
  132.  
  133. 16.8909,221.1290
  134. 46.1993,225.9408
  135.  
  136. tabsurf
  137. 11.6416,236.0019
  138. 36.1382,223.7536
  139. ; ******************************
  140. ; Tabsurf using arcs with a line
  141. text
  142. 51.0111,201.0068
  143.  
  144.  
  145. 2) Arc & Line
  146. arc
  147. 53.6358,225.9408
  148. 60.1974,230.3152
  149. 66.3215,226.3783
  150. line
  151. 85.5689,229.8778
  152. 87.3186,215.4423
  153.  
  154. tabsurf
  155. 59.3225,230.3152
  156. 86.0063,229.0029
  157. line
  158. 10.7667,229.4403
  159. 16.8909,240.3763
  160.  
  161. tabsurf
  162. 15.1411,236.4394
  163. 17.7657,222.0039
  164. arc
  165. 52.3235,228.5655
  166. 59.3225,233.8147
  167. 67.1964,228.5655
  168. tabsurf
  169. 61.5097,233.8147
  170. 87.7561,216.3172
  171. ; ******************************
  172. ; Tabsurf using circles with a line
  173. text
  174. 102.6290,201.4442
  175.  
  176.  
  177. 3) Circle & Line
  178. circle
  179. 108.7531,231.6275
  180. 112.6901,230.3152
  181.  
  182. 107.4408,222.4413
  183. 111.3778,222.8788
  184. line
  185. 138.4990,242.5635
  186. 138.0616,222.4413
  187.  
  188. tabsurf
  189. 113.1275,230.7527
  190. 138.0616,223.7536
  191.  
  192. 110.5029,219.3792
  193. 138.9365,240.8138
  194. ; ******************************
  195. ; Tabsurf using ellipse with a line
  196. text
  197. 152.9345,201.8817
  198.  
  199.  
  200. 4) Ellipse
  201. ellipse
  202. 169.1198,232.9399
  203. 169.1198,219.8167
  204. 168.6824,228.5655
  205.  
  206. 176.1188,232.5024
  207. 176.1188,219.8167
  208. 175.2439,223.7536
  209. line
  210. 164.3080,237.7517
  211. 180.9307,237.7517
  212.  
  213. ; ******************************
  214. ; Tabsurf using 2Dpline with a line
  215. text
  216. 201.4903,201.4442
  217.  
  218.  
  219. 5) 2D pline & Line
  220. pline
  221. 204.9898,218.9418
  222. 209.8017,225.5034
  223. a
  224. 206.3021,233.3773
  225. 207.1770,229.0029
  226. l
  227. 215.4884,239.0640
  228.  
  229. copy
  230. 212.8637,235.1271
  231.  
  232. 209.3642,230.7527
  233. 232.1111,216.7546
  234. line
  235. 209.0000,244.0000
  236. 230.0000,244.0000
  237.  
  238. tabsurf
  239. 214.0000,237.0000
  240. 209.0000,244.0000
  241.  
  242. 233.0000,212.0000
  243. 231.0000,244.0000
  244. ; ******************************
  245. ; Tabsurf using 3D plines with a line
  246. text
  247. 2.0000,152.0000
  248.  
  249.  
  250. 6) 3D pline
  251. 3dpoly
  252. 2.0000,184.0000
  253. 5,188,5
  254. 11,187,10
  255. 13.0000,194.0000
  256.  
  257. copy
  258. 8.0000,187.0000
  259.  
  260. 9.0000,187.0000
  261. 42.0000,157.0000
  262. line
  263. 23.0000,190.0000
  264. 40.0000,175.0000
  265.  
  266. tabsurf
  267. 9.0000,187.0000
  268. 23.0000,189.0000
  269.  
  270. 46.0000,162.0000
  271. 41.0000,175.0000
  272. ; *******************************
  273. ; Tabsurf using lines with a line
  274. text
  275. 52.0000,152.0000
  276.  
  277.  
  278. 7) Splined pline
  279. pline
  280. 52.0000,173.0000
  281. 52.0000,180.0000
  282. 61.0000,175.0000
  283. 61.0000,183.0000
  284. 68.0000,179.0000
  285. 68.0000,188.0000
  286.  
  287. pedit
  288. 69.0000,184.0000
  289. s
  290.  
  291. copy
  292. 63.0000,180.0000
  293.  
  294. 63.0000,180.0000
  295. 89.0000,162.0000
  296. line
  297. 78.0000,187.0000
  298. 92.0000,175.0000
  299.  
  300. tabsurf
  301. 61.0000,180.0000
  302. 78.0000,186.0000
  303.  
  304. 93.0000,165.0000
  305. 78.0000,187.0000
  306. u
  307. tabsurf
  308. 86.0000,161.0000
  309. 92.0000,175.0000
  310. layer
  311. make
  312. pline
  313. c
  314. green
  315.  
  316.  
  317. ; ******************************
  318. ; Tabsurf using lines with a pline
  319. text
  320. 102.0000,152.0000
  321.  
  322.  
  323. 8) Lines & Pline
  324. line
  325. 123.0000,193.0000
  326. 120.0000,181.0000
  327.  
  328. line
  329. 127.0000,192.0000
  330. 123.0000,180.0000
  331.  
  332. pline
  333. 108.0000,160.0000
  334. 114.0000,168.0000
  335. 117.0000,161.0000
  336. 108.0000,167.0000
  337. 122.0000,170.0000
  338. 122.0000,162.0000
  339. 117.0000,171.0000
  340. 130.0000,167.0000
  341. 135.0000,162.0000
  342.  
  343. tabsurf
  344. 122.0000,189.0000
  345. 134.0000,163.0000
  346.  
  347. 124.0000,185.0000
  348. 108.0000,159.0000
  349. ; ******************************
  350. ; Surftab1
  351. text
  352. 151.0000,156.0000
  353.  
  354.  
  355. Surftab1 = 12, ST2=6
  356. text
  357.  
  358. 9) Arc & Pline
  359. arc
  360. 163.0000,179.0000
  361. 172.0000,177.0000
  362. 173.0000,171.0000
  363. arc
  364. 171.0000,183.0000
  365. 170.0000,175.0000
  366. 176.0000,174.0000
  367. pline
  368. 158.0000,184.0000
  369. 154.0000,194.0000
  370. 161.0000,197.0000
  371. 168.0000,191.0000
  372.  
  373. surftab1
  374. 12
  375. surftab2
  376. 6
  377. tabsurf
  378. 164.0000,179.0000
  379. 167.0000,192.0000
  380.  
  381. 170.0000,182.0000
  382. 158.0000,184.0000
  383. ; ******************************
  384. ; 2Dpline & pline
  385. text
  386. 202.0000,151.0000
  387.  
  388.  
  389. 10) 2DPLINE & PLINE
  390. pline
  391. 206.0000,175.0000
  392. a
  393. 206.0000,169.0000
  394. 209.0000,163.0000
  395. 212.0000,159.0000
  396.  
  397. pline
  398. 203.0000,184.0000
  399. 209.0000,190.0000
  400. 202.0000,192.0000
  401. 210.0000,186.0000
  402. a
  403. 212.0000,190.0000
  404. 215.0000,194.0000
  405. 221.0000,192.0000
  406.  
  407. copy
  408. 206.0000,167.0000
  409.  
  410. 209.0000,167.0000
  411. 240.0000,188.0000
  412. tabsurf
  413. 206.0000,174.0000
  414. 202.0000,184.0000
  415.  
  416. 237.0000,195.0000
  417. 220.0000,191.0000
  418. layer
  419. m
  420. elevation
  421. c
  422. cyan
  423.  
  424.  
  425. ; ******************************
  426. ; Elevation = 10
  427. text
  428. 3.0000,102.0000
  429.  
  430.  
  431. 11) Elevation = 10
  432. elevation 10
  433. line
  434. 8.0000,146.0000
  435. 4.0000,137.0000
  436.  
  437. line
  438. 4.0000,108.0000
  439. 37.0000,108.0000
  440.  
  441. arc
  442. 8.0000,132.0000
  443. 3.0000,129.0000
  444. 8.0000,123.0000
  445. circle
  446. 6.0000,114.0000
  447. 10.0000,115.0000
  448. tabsurf
  449. 6.0000,145.0000
  450. 6.0000,107.0000
  451.  
  452. 6.0000,130.0000
  453. 6.0000,107.0000
  454.  
  455. 6.0000,118.0000
  456. 5.0000,107.0000
  457. ; ******************************
  458. ; Elevation = 10
  459. text
  460. 52.0000,101.0000
  461.  
  462.  
  463. 12) Elevation = 10
  464. ellipse
  465. 90.0000,145.0000
  466. 91.0000,134.0000
  467. 93.0000,139.0000
  468. pline
  469. 86.0000,133.0000
  470. 95.0000,129.0000
  471. 93.0000,124.0000
  472. 86.0000,127.0000
  473. c
  474. polygon
  475. 5
  476. 90.0000,114.0000
  477. i
  478. 90.0000,120.0000
  479. line
  480. 72.0000,107.0000
  481. 55.0000,111.0000
  482.  
  483. tabsurf
  484. 88.0000,110.0000
  485. 72.0000,107.0000
  486.  
  487. 92.0000,124.0000
  488. 72.0000,107.0000
  489. ; ******************************
  490. ; Elevation = 10
  491. text
  492. 102.0000,102.0000
  493.  
  494.  
  495. 13) Elevation = 10
  496. 3dpoly
  497. 125.0000,142.0000
  498. 137.0000,143.0000
  499. 131,136,5
  500. 139.0000,138.0000
  501. 137,128,0
  502.  
  503. line
  504. 141.0000,123.0000
  505. 126.0000,110.0000
  506.  
  507. tabsurf
  508. 135.0000,136.0000
  509. 140.0000,124.0000
  510. elevation
  511. 0
  512. layer
  513. m
  514. 3D
  515. c
  516. magenta
  517.  
  518.  
  519. ; ******************************
  520. ; 3D Lines
  521. text
  522. 152.0000,102.0000
  523.  
  524.  
  525. 14) 3D Lines
  526. line
  527. 156,137,5
  528. 164,145,10
  529.  
  530. line
  531. 155.0000,125.0000
  532. 171.0000,112.0000
  533.  
  534. tabsurf
  535. 159.0000,140.0000
  536. 156.0000,125.0000
  537. ; ******************************
  538. ; 3D Circles
  539. text
  540. 202.0532,101.5367
  541. 2.5
  542. 0
  543. 15) 3D Circle
  544. circle
  545. 223,130,5
  546. 224.0000,133.0000
  547. circle
  548. 223,123,10
  549. 224.0000,120.0000
  550. pline
  551. 239.0000,136.0000
  552. 243.0000,132.0000
  553. 241.0000,128.0000
  554. 244.0000,125.0000
  555.  
  556. tabsurf
  557. 224.0000,133.0000
  558. 244.0000,126.0000
  559. tabsurf
  560. 225.0000,125.0000
  561. 239.0000,136.0000
  562. ; ******************************
  563. ; 3D Arcs
  564. text
  565. 2.0000,52.0000
  566.  
  567.  
  568. 16) 3D arc
  569. arc
  570. 16,75,5
  571. 17.0000,80.0000
  572. 24.0000,80.0000
  573.  
  574. 18,71,10
  575. 21.0000,75.0000
  576. 26.0000,75.0000
  577. line
  578. 33.0000,89.0000
  579. 39.0000,76.0000
  580.  
  581. tabsurf
  582. 20.0000,81.0000
  583. 38.0000,76.0000
  584. tabsurf
  585. 24.0000,75.0000
  586. 33.0000,89.0000
  587. ; ******************************
  588. ; 3D Ellipse
  589. text
  590. 52.0000,52.0000
  591.  
  592.  
  593. 17) 3D Ellipse
  594. ellipse
  595. 72,81,5
  596. 72,70.0000
  597. 75.0000,75.0000
  598. ellipse
  599. 78,81,10
  600. 78.0000,70.0000
  601. 81.0000,75.0000
  602. line
  603. 63.0000,93.0000
  604. 75.0000,93.0000
  605.  
  606. ; ******************************
  607. ; 3D 2Dpline
  608. text
  609. 102.0000,52.0000
  610.  
  611.  
  612. 18) 3D 2dpline
  613. pline
  614. 112,83,5
  615. 120.0000,80.0000
  616. a
  617. 118.0000,76.0000
  618. 119.0000,73.0000
  619. l
  620. 126.0000,68.0000
  621.  
  622. line
  623. 108.0000,87.0000
  624. 124.0000,96.0000
  625.  
  626. tabsurf
  627. 115.0000,81.0000
  628. 111.0000,87.0000
  629. ; ******************************
  630. ; 3D splined pline
  631. text
  632. 152.0000,52.0000
  633.  
  634.  
  635. 19) 3D splined pline
  636. pline
  637. 155,81,10
  638. 159.0000,88.0000
  639. 167.0000,84.0000
  640. 172.0000,96.0000
  641. 180.0000,88.0000
  642. 189.0000,92.0000
  643.  
  644. pedit
  645. 185.0000,90.0000
  646. s
  647.  
  648. line
  649. 185.0000,84.0000
  650. 191.0000,71.0000
  651.  
  652. tabsurf
  653. 169.0000,90.0000
  654. 185.0000,84.0000
  655. layer
  656. m
  657. 3dline
  658. c
  659. red
  660.  
  661.  
  662. ; ******************************
  663. ; 3D Line
  664. text
  665. 203.0000,52.0000
  666.  
  667.  
  668. 20) 3D line
  669. line
  670. 208.0000,74.0000
  671. 218.0000,79.0000
  672.  
  673. line
  674. 211.0000,71.0000
  675. 219.0000,76.0000
  676.  
  677. line
  678. 229,91,10
  679. 235.0000,81.0000
  680.  
  681. tabsurf
  682. 217.0000,79.0000
  683. 235.0000,81.0000
  684. tabsurf
  685. 215.0000,74.0000
  686. 230.0000,91.0000
  687. ; ******************************
  688. ; 3D line with arcs
  689. text
  690. 2.0000,2.0000
  691.  
  692.  
  693. 21) 3D line with arcs
  694. arc
  695. 12.0000,13.0000
  696. 15.0000,20.0000
  697. 23.0000,20.0000
  698. line
  699. 33,15,10
  700. 41.0000,31.0000
  701.  
  702. tabsurf
  703. 18.0000,21.0000
  704. 33.0000,15.0000
  705. ; ******************************
  706. ; 3D Line with circle
  707. text
  708. 52.0000,2.0000
  709.  
  710.  
  711. 3D line with circle
  712. circle
  713. 61.0000,15.0000
  714. 65.0000,15.0000
  715.  
  716. 60,38,5
  717. 61.0000,40.0000
  718. line
  719. 87,39,5
  720. 75.0000,34.0000
  721.  
  722. tabsurf
  723. 61.0000,40.0000
  724. 76.0000,34.0000
  725.  
  726. 61.0000,19.0000
  727. 75.0000,34.0000
  728. ; ******************************
  729. ; 3D Line with ellipse
  730. text
  731. 102.0000,2.0000
  732.  
  733.  
  734. 23) 3D line with ellipse
  735. ellipse
  736. 105,13,10
  737. 117.0000,13.0000
  738. 114.0000,14.0000
  739. line
  740. 135,11,10
  741. 135.0000,36.0000
  742.  
  743. ; ******************************
  744. ; Mirror tabsurf
  745. text
  746. 152.0000,2.0000
  747.  
  748.  
  749. 24) Mirror tabsurf
  750. 3dpoly
  751. 153,43,10
  752. 159.0000,33.0000
  753. 154,23,5
  754.  
  755. line
  756. 154.0000,15.0000
  757. 163.0000,15.0000
  758.  
  759. tabsurf
  760. 156.0000,38.0000
  761. 154.0000,16.0000
  762. mirror
  763. 167.0000,36.0000
  764.  
  765. 174.0000,46.0000
  766. 174.0000,20.0000
  767.  
  768. ; ******************************
  769. ; Array tabsurf
  770. text
  771. 202.0000,2.0000
  772.  
  773.  
  774. 25) Array tabsurf
  775. circle
  776. 208.0000,41.0000
  777. 209.0000,44.0000
  778. line
  779. 205.0000,36.0000
  780. 211.0000,31.0000
  781.  
  782. tabsurf
  783. 212.0000,41.0000
  784. 204.0000,37.0000
  785. array
  786. 209.0000,40.0000
  787.  
  788. p
  789. 225.0000,28.0000
  790. 6
  791.  
  792.  
  793. zoom
  794. all
  795. ;----------------------------------------------------------------------
  796. ;Now for the grand finale
  797. TEXT
  798. -39.8278,152
  799. 3
  800. 0
  801. Done!
  802. Zoom
  803. E
  804. ;----------------------------------------------------------------------
  805.