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

  1. ;---------------------------------------------
  2. ;File name: Fillet.SCR
  3. ;Purpose: Demonstrate Fillet and options 
  4. ;
  5. ;Last Modified: 3/18/98
  6. ;---------------------------------------------
  7. CMDECHO
  8. Off
  9. PICKBOX
  10. 3
  11. APERTURE
  12. 10
  13. ; Erase anything that's there already.
  14. erase
  15. all
  16.  
  17. ; Turn blips off
  18. blipmode
  19. off
  20. ;set pickbox
  21. pickbox
  22. 3
  23. ; Set the current layer to zero.
  24. layer
  25. s
  26. 0
  27.  
  28. color
  29. bylayer
  30. ; Setting all the other necessary system variables:
  31. vpoint
  32. 0,0,1
  33. ; Zoom to a window at least 100 x 100 (if it were square).
  34. zoom
  35. c
  36. 84,54
  37. 120
  38. elev
  39. 0
  40. 0
  41. gridmode
  42. 0
  43. fillmode
  44. 1
  45. snapmode
  46. 0
  47. linetype
  48. s
  49. bylayer
  50.  
  51. linetype
  52. s
  53. continuous
  54.  
  55. ; ***************************************************************************************
  56. ;         LINES
  57. ; ***************************************************************************************
  58. ; Draw some lines to fillet - 2 sets of each, for Trim and No trim
  59. ; Upside-down U shape with a little line across the opening:
  60. line
  61. 0,80
  62. 0,100
  63. 10,100
  64. 10,80
  65.  
  66. line
  67. 3,80
  68. 7,80
  69.  
  70. line
  71. 60,80
  72. 60,100
  73. 70,100
  74. 70,80
  75.  
  76. line
  77. 63,80
  78. 67,80
  79.  
  80. ; Little crosses to be sure the lines fillet and trim in the right direction:
  81. line
  82. 20,80
  83. 20,84
  84.  
  85. line
  86. 20,85
  87. 20,89
  88.  
  89. line
  90. 20,90
  91. 20,94
  92.  
  93. line
  94. 20,95
  95. 20,99
  96.  
  97. line
  98. 15,97
  99. 25,97
  100.  
  101. line
  102. 15,92
  103. 25,92
  104.  
  105. line
  106. 15,87
  107. 25,87
  108.  
  109. line
  110. 15,82
  111. 25,82
  112.  
  113. ; Another set of crosses for testing No trim.
  114. line
  115. 80,80
  116. 80,84
  117.  
  118. line
  119. 80,85
  120. 80,89
  121.  
  122. line
  123. 80,90
  124. 80,94
  125.  
  126. line
  127. 80,95
  128. 80,99
  129.  
  130. line
  131. 75,97
  132. 85,97
  133.  
  134. line
  135. 75,92
  136. 85,92
  137.  
  138. line
  139. 75,87
  140. 85,87
  141.  
  142. line
  143. 75,82
  144. 85,82
  145.  
  146. ; Non-intersecting lines, for testing with trim:
  147. line
  148. 30,80
  149. 30,89
  150.  
  151. line
  152. 30,91
  153. 30,95
  154.  
  155. line
  156. 30,96
  157. 30,100
  158.  
  159. line
  160. 33,82
  161. 35,82
  162.  
  163. line
  164. 33,88
  165. 35,88
  166.  
  167. line
  168. 33,92
  169. 35,92
  170.  
  171. line
  172. 33,99
  173. 35,99
  174.  
  175. ; Non-intersecting lines, for testing with No trim:
  176. line
  177. 90,80
  178. 90,89
  179.  
  180. line
  181. 90,91
  182. 90,95
  183.  
  184. line
  185. 90,96
  186. 90,100
  187.  
  188. line
  189. 93,82
  190. 95,82
  191.  
  192. line
  193. 93,88
  194. 95,88
  195.  
  196. line
  197. 93,92
  198. 95,92
  199.  
  200. line
  201. 93,99
  202. 95,99
  203.  
  204. ; Draw two sets of lines that will intersect way off the screen if they are extended.
  205. line
  206. 40,80
  207. 40.05,85
  208.  
  209. line
  210. 44,80
  211. 43.95,85
  212.  
  213. line
  214. 100,80
  215. 100.05,85
  216.  
  217. line
  218. 104,80
  219. 103.95,85
  220.  
  221. ; Draw some lines on different layers 
  222. ; The horizontal lines are white, on layer "0".
  223. layer
  224. s
  225. 0
  226.  
  227. line
  228. 45,80
  229. 55,80
  230.  
  231. line
  232. 45,85
  233. 55,85
  234.  
  235. line
  236. 45,90
  237. 55,90
  238.  
  239. line
  240. 48,95
  241. 52,95
  242.  
  243. line
  244. 48,100
  245. 52,100
  246.  
  247. line
  248. 105,80
  249. 115,80
  250.  
  251. line
  252. 105,85
  253. 115,85
  254.  
  255. line
  256. 105,90
  257. 115,90
  258.  
  259. line
  260. 108,95
  261. 112,95
  262.  
  263. line
  264. 108,100
  265. 112,100
  266.  
  267. ; The vertical lines are red, on layer "red".
  268. layer
  269. m
  270. redfillet
  271. c
  272. red
  273.  
  274.  
  275. line
  276. 46,79
  277. 46,86
  278.  
  279. line
  280. 55,80
  281. 55,85
  282.  
  283. line
  284. 46,88
  285. 46,92
  286.  
  287. line
  288. 55,88
  289. 55,92
  290.  
  291. line
  292. 45,93
  293. 45,97
  294.  
  295. line
  296. 55,93
  297. 55,97
  298.  
  299. line
  300. 45,98
  301. 45,102
  302.  
  303. line
  304. 55,98
  305. 55,102
  306.  
  307. line
  308. 106,79
  309. 106,86
  310.  
  311. line
  312. 115,80
  313. 115,85
  314.  
  315. line
  316. 106,88
  317. 106,92
  318.  
  319. line
  320. 115,88
  321. 115,92
  322.  
  323. line
  324. 105,93
  325. 105,97
  326.  
  327. line
  328. 115,93
  329. 115,97
  330.  
  331. line
  332. 105,98
  333. 105,102
  334.  
  335. line
  336. 115,98
  337. 115,102
  338.  
  339. text
  340. 119,96
  341. 2.0
  342.  
  343. Filleting Lines
  344. text
  345. 119,93
  346. 2.0
  347.  
  348. Trim / No Trim
  349. ; Fillet Lines using radius=1 and trim on.
  350. fillet
  351. radius
  352. 1.0
  353.  
  354. trim
  355. trim
  356. ; Fillet upside-down U - should end up as a rounded rectangle.
  357. 0,90
  358. 5,100
  359.  
  360. 7,100
  361. 10,90
  362.  
  363. 0,90
  364. 5,80
  365.  
  366. 10,90
  367. 5,80
  368.  
  369. ; Fillet crosses - should end up a L shapes in all four orientations.
  370. 15,82
  371. 20,80
  372.  
  373. 25,87
  374. 20,85
  375.  
  376. 15,92
  377. 20,94
  378.  
  379. 25,97
  380. 20,99
  381. ; Fillet non-intersecting lines using Trim and radius of 2
  382. fillet
  383. trim
  384. trim
  385. radius
  386. 2
  387. fillet
  388. 35,82
  389. 30,84
  390.  
  391. 30,86
  392. 35,88
  393.  
  394. 30,94
  395. 35,92
  396.  
  397. 30,97
  398. 35,99
  399. ; Fillet the almost parallel lines so they are extended and filleted.
  400. fillet
  401. radius
  402. .05
  403. fillet
  404. 40.05,85
  405. 43.95,85
  406. ;
  407. ;
  408. ; Fillet the red and white lines on different layers using Trim and radius 1.
  409. fillet
  410. trim
  411. trim
  412. radius
  413. 1
  414. fillet
  415. 46,82
  416. 48,80
  417.  
  418. 52,80
  419. 55,83
  420.  
  421. 55,83
  422. 53,85
  423.  
  424. 48,85
  425. 46,83
  426.  
  427. 46,88
  428. 48,90
  429.  
  430. 52,90
  431. 55,92
  432.  
  433. 45,93
  434. 48,95
  435.  
  436. 55,92
  437. 52,95
  438.  
  439. 48,100
  440. 45,102
  441.  
  442. 52,100
  443. 55,102
  444. ; Fillet 2nd set of Lines using radius=1 and No trim.
  445. fillet
  446. radius
  447. 1.0
  448.  
  449. trim
  450. No
  451. ; Fillet upside-down U - should end up open on bottom with rounded corners.
  452. 60,90
  453. 65,100
  454.  
  455. 67,100
  456. 70,90
  457.  
  458. 60,90
  459. 65,80
  460.  
  461. 70,90
  462. 65,80
  463.  
  464. ; Fillet crosses - should remain crosses with a curved line in each of 4 corners.
  465. 75,82
  466. 80,80
  467.  
  468. 85,87
  469. 80,85
  470.  
  471. 75,92
  472. 80,94
  473.  
  474. 85,97
  475. 80,99
  476. ; Fillet non-intersecting lines using No trim and radius of 2
  477. fillet
  478. trim
  479. no
  480. radius
  481. 2
  482. fillet
  483. 95,82
  484. 90,84
  485.  
  486. 90,86
  487. 95,88
  488.  
  489. 90,94
  490. 95,92
  491.  
  492. 90,97
  493. 95,99
  494. ; Fillet almost parallel lines at a point way off the screen.
  495. fillet
  496. radius
  497. .05
  498. fillet
  499. trim
  500. no
  501.  
  502. fillet
  503. 100.05,85
  504. 103.95,85
  505. ; Fillet the lines on different layers using No trim, radius 1.
  506. fillet
  507. trim
  508. no
  509. radius
  510. 1
  511. fillet
  512. 106,82
  513. 108,80
  514.  
  515. 112,80
  516. 115,83
  517.  
  518. 115,83
  519. 113,85
  520.  
  521. 108,85
  522. 106,83
  523.  
  524. 106,88
  525. 108,90
  526.  
  527. 112,90
  528. 115,92
  529.  
  530. 105,93
  531. 108,95
  532.  
  533. 115,92
  534. 112,95
  535.  
  536. 108,100
  537. 105,102
  538.  
  539. 112,100
  540. 115,102
  541. ; *********************************************************************************
  542. ;      ARCS
  543. ; *********************************************************************************
  544. ; Draw some arcs to fillet
  545. layer
  546. m
  547. arcsfillet
  548. c
  549. blue
  550.  
  551.  
  552. ; Two arcs, one above the other, facing each other.
  553. arc
  554. 3,72
  555. 5,78
  556. 7,72
  557. arc
  558. 3,68
  559. 5,62
  560. 7,66
  561. ; Four round arcs, with flat arcs through the open side.
  562. arc
  563. 20,78
  564. 12,75
  565. 20,72
  566. arc
  567. 15,72
  568. 20,75
  569. 25,72
  570. arc
  571. 40,78
  572. 32,75
  573. 40,72
  574. arc
  575. 35,72
  576. 40,75
  577. 45,72
  578. arc
  579. 20,68
  580. 12,65
  581. 20,62
  582. arc
  583. 15,62
  584. 20,65
  585. 25,62
  586. arc
  587. 40,68
  588. 32,65
  589. 40,62
  590. arc
  591. 35,62
  592. 40,65
  593. 45,62
  594. ; Draw duplicates of the above on the right side of the screen.
  595. ; The first ones, one above the other.
  596. arc
  597. 63,72
  598. 65,78
  599. 67,72
  600. arc
  601. 63,68
  602. 65,62
  603. 67,66
  604. ; Four round arcs, with flat arcs through the open side.
  605. arc
  606. 80,78
  607. 72,75
  608. 80,72
  609. arc
  610. 75,72
  611. 80,75
  612. 85,72
  613. arc
  614. 100,78
  615. 92,75
  616. 100,72
  617. arc
  618. 95,72
  619. 100,75
  620. 105,72
  621. arc
  622. 80,68
  623. 72,65
  624. 80,62
  625. arc
  626. 75,62
  627. 80,65
  628. 85,62
  629. arc
  630. 100,68
  631. 92,65
  632. 100,62
  633. arc
  634. 95,62
  635. 100,65
  636. 105,62
  637. ;
  638. text
  639. 119,72
  640. 2.0
  641.  
  642. Filleting Arcs
  643. text
  644. 119,69
  645. 2.0
  646.  
  647. Trim / No Trim
  648. ; Fillet the arcs on the left using Trim
  649. fillet
  650. trim
  651. trim
  652. radius
  653. 4
  654. ; Connect the first two arcs.
  655. fillet
  656. 3,68
  657. 3,72
  658.  
  659. 7,66
  660. 7,72
  661. ; Fillet the 4 sets of arcs using half the available combinations:
  662. fillet
  663. radius
  664. 1
  665. fillet
  666. 20,78
  667. 25,72
  668.  
  669. 40,78
  670. 35,72
  671.  
  672. 20,62
  673. 25,62
  674.  
  675. 35,62
  676. 40,62
  677. ; Fillet the arcs on the right using No trim.
  678. fillet
  679. trim
  680. no
  681. radius
  682. 4
  683. fillet
  684. 63,68
  685. 63,72
  686.  
  687. 67,66
  688. 67,72
  689. ; Fillet the 4 sets of arcs using half the available combinations, with No trim
  690. fillet
  691. radius
  692. 1
  693. fillet
  694. 80,78
  695. 85,72
  696.  
  697. 100,78
  698. 95,72
  699.  
  700. 80,62
  701. 85,62
  702.  
  703. 95,62
  704. 100,62
  705. ;
  706. ; *********************************************************************************
  707. ;     CIRCLES
  708. ; *********************************************************************************
  709. ; Draw some circles to fillet
  710. layer
  711. m
  712. circlesfillet
  713. c
  714. yellow
  715.  
  716.  
  717. circle
  718. 5,45
  719. 3
  720.  
  721. 5,55
  722. 3
  723.  
  724. 15,46
  725. 4
  726.  
  727. 15,54
  728. 4
  729.  
  730. 25,48
  731. 4
  732.  
  733. 25,52
  734. 4
  735. ; Add a few lines and arcs for filleting with the circles.
  736. line
  737. 32,52
  738. 40,50
  739. 32,48
  740.  
  741. ; Another set for testing with No trim:
  742. circle
  743. 65,45
  744. 3
  745.  
  746. 65,55
  747. 3
  748.  
  749. 75,46
  750. 4
  751.  
  752. 75,54
  753. 4
  754.  
  755. 85,48
  756. 4
  757.  
  758. 85,52
  759. 4
  760. ; Add a few lines and arcs for filleting with the circles.
  761. line
  762. 92,52
  763. 100,50
  764. 92,48
  765.  
  766. text
  767. 119,53
  768. 2.0
  769.  
  770. Filleting Circles
  771. text
  772. 119,50
  773. 2.0
  774.  
  775. Trim / No Trim
  776. ; Now fillet those circles on the left using Trim
  777. fillet
  778. trim
  779. trim
  780. radius
  781. 5
  782. fillet
  783. 2,45
  784. 2,55
  785.  
  786. 8,45
  787. 8,55
  788.  
  789. 11,46
  790. 11,54
  791.  
  792. 19,46
  793. 19,54
  794.  
  795. 21,48
  796. 21,52
  797.  
  798. 29,48
  799. 29,52
  800. fillet
  801. radius
  802. 1
  803. fillet
  804. 21,48
  805. 25,48
  806.  
  807. 29,48
  808. 25,48
  809.  
  810. 21,52
  811. 25,52
  812.  
  813. 29,52
  814. 25,52
  815.  
  816. 25,56
  817. 32,52
  818.  
  819. 24,44
  820. 32,48
  821. ; Now fillet those circles on the right using No trim
  822. fillet
  823. trim
  824. no
  825. radius
  826. 5
  827. fillet
  828. 62,45
  829. 62,55
  830.  
  831. 68,45
  832. 68,55
  833.  
  834. 71,46
  835. 71,54
  836.  
  837. 79,46
  838. 79,54
  839.  
  840. 81,48
  841. 81,52
  842.  
  843. 89,48
  844. 89,52
  845. fillet
  846. radius
  847. 1
  848. fillet
  849. 81,48
  850. 85,48
  851.  
  852. 89,48
  853. 85,48
  854.  
  855. 81,52
  856. 85,52
  857.  
  858. 89,52
  859. 85,52
  860.  
  861. 85,56
  862. 92,52
  863.  
  864. 84,44
  865. 92,48
  866. ; *********************************************************************************
  867. ;      PLINES
  868. ; *********************************************************************************
  869. ; Draw some plines to fillet
  870. layer
  871. m
  872. plinesfillet
  873. c
  874. magenta
  875.  
  876.  
  877. ; First, a vertical zig-zag for testing with Trim.
  878. pline
  879. 10,40
  880. 0,36
  881. 10,32
  882. 0,28
  883. 10,24
  884. 0,20
  885.  
  886. ; Draw a shepherd's hook and a slanted pline for testing with Trim.
  887. pline
  888. 12,20
  889. 12,30
  890. arc
  891. 20,30
  892.  
  893. line
  894. 28,35
  895. 21,31
  896.  
  897. ; Draw the same thing, but with a line instead of a pline.
  898. pline
  899. 32,20
  900. 32,30
  901. arc
  902. 40,30
  903.  
  904. line
  905. 48,35
  906. 41,31
  907.  
  908. ; Now a vertical zig-zag for testing with No trim.
  909. pline
  910. 70,40
  911. 60,36
  912. 70,32
  913. 60,28
  914. 70,24
  915. 60,20
  916.  
  917. ; Draw a shepherd's hook and a slanted pline for testing with No trim.
  918. pline
  919. 72,20
  920. 72,30
  921. arc
  922. 80,30
  923.  
  924. line
  925. 88,35
  926. 81,31
  927.  
  928. ; Draw the same thing.
  929. pline
  930. 92,20
  931. 92,30
  932. arc
  933. 100,30
  934.  
  935. line
  936. 108,35
  937. 101,31
  938.  
  939. ;*******************************FILLETING**********************
  940. text
  941. 119,33
  942. 2.0
  943.  
  944. Filleting Plines
  945. text
  946. 119,30
  947. 2.0
  948.  
  949. Trim / No Trim
  950. ; Fillet the zig=zag on the left using Trim.
  951. fillet
  952. trim
  953. trim
  954. radius
  955. 2
  956.  
  957. 5,22
  958. 5,26
  959.  
  960. 5,26
  961. 5,30
  962.  
  963. 5,30
  964. 5,34
  965.  
  966. 5,34
  967. 5,38
  968. ; Fillet the shepherd's hook thing and the slanted LINE next to it.
  969. Fillet
  970. trim
  971. trim
  972. radius
  973. 2
  974. fillet
  975. 12,20
  976. 28,35
  977. ; Fillet the shepherd's hook thing and the slanted LINE next to it.
  978. fillet
  979. 35,33.8
  980. 48,35
  981. ; Now fillet the zig-zag on the right using No trim.
  982. fillet
  983. trim
  984. no
  985. radius
  986. 2
  987.  
  988. 65,22
  989. 65,26
  990.  
  991. 63.5,26.5
  992. 65,30
  993.  
  994. 65.5,30.5
  995. 65,34
  996.  
  997. 63.5,34.5
  998. 65,38
  999. ; Fillet the shepherd's hook thing and the slanted LINE next to it. (No trim)
  1000. Fillet
  1001. trim
  1002. no
  1003. radius
  1004. 2
  1005. fillet
  1006. 72,20
  1007. 88,35
  1008. ; Fillet the shepherd's hook thing and the slanted LINE next to it.
  1009. fillet
  1010. 99.5,32
  1011. 108,35
  1012. ;
  1013. ; *********************************************************************************
  1014. ;      COMBINATIONS OF ENTITIES
  1015. ; *********************************************************************************
  1016. ;
  1017. setvar
  1018. cmdecho
  1019. 0
  1020. ;----------------------------------------------------------------------
  1021. ;Now for the grand finale
  1022. text
  1023. 32,15,0
  1024. 6
  1025.  
  1026. Done!
  1027. ;----------------------------------------------------------------------
  1028. r
  1029.