home *** CD-ROM | disk | FTP | other *** search
-
- ; ******* ParaDraft Application ********
- ; Parametric Geomtry Program generated by PgPg!
- ; Authored by : User
- ; Application name : A round base plate with a cutout
- ; Dated : Monday , 20-5-1991
- ; Started at : -- 15:05:10
- ; Finished at : -- 15:06:23
- ; ****************************************
- (princ "\nParaDraft application generated on Monday , 20-5-1991 with Professional Version 1.0P")
- (mode 0)(command "VSLIDE"(strcat *pgpg-dir* *pg-name*))
- (setq rad2 nil rad3 nil rad4 nil rad5 nil rad10 nil rad11 nil ang12 nil ang13 nil ang14 nil ang15 nil L1 nil L6 nil L7 nil L8 nil L9 nil )
- (take-value 'rad2 "rad2" 69.70227894)
- (take-value 'rad3 "rad3" 5.53267178)
- (take-value 'rad4 "rad4" 6.2259894)
- (take-value 'rad5 "rad5" 6.21063284)
- (take-value 'rad10 "rad10" 17.68474515)
- (take-value 'rad11 "rad11" 14.15228577)
- (take-value 'ang12 "ang12" 44.33812998)
- (take-value 'ang13 "ang13" 47.34525428)
- (take-value 'ang14 "ang14" 21.99003602)
- (take-value 'ang15 "ang15" 23.50091384)
- (take-value 'L1 "L1" 86.71286)
- (take-value 'L6 "L6" 34.53981178)
- (take-value 'L7 "L7" 19.82967412)
- (take-value 'L8 "L8" 12.95807805)
- (take-value 'L9 "L9" 35.77494521)
- (command "REDRAW")
- (initget 1)
- (setq refpt (getpoint "\nInsertion point :"))
- (setq refangle (getval "\nInsertion angle:" 0.0))
-
- (princ "Computing points ..please wait")
-
- (setq *en*
- (init refpt))(setq *dim-layer* "dim")(setq *cen-layer* "cen")
- (setq err 0.0)
- (command "COLOR""BYLAYER")
- (command "DIM1""DIMASZ" 0.01 )
- (command "DIM1""DIMTXT" 0.01 )
- (setvar "CMDECHO" 0)(MAKE_LAYER "CEN" 2)(setq ANG12(D2R ANG12 ))
- (setq ANG13(D2R ANG13 ))
- (setq ANG14(D2R ANG14 ))
- (setq ANG15(D2R ANG15 ))
- (setq L16 (/ L1 2.0) )
- (setq L17 L16 )
- (setq L18 (/ L6 2.0) )
- (setq L19 L18 )
- (setq L20 (/ L8 2.0) )
- (setq L21 L20 )
-
- (setq pt1(delta refpt
- 0.0
- 0.0
- ))
- (setq pt3(delta refpt
- ( + (x-of pt1) rad2)
- (y-of pt1)
- ))
- (setq pt38(delta refpt
- ( + (x-of pt1) rad10)
- (y-of pt1)
- ))
- (setq pt8(delta refpt
- (x-of pt1)
- ( + (y-of pt1) ( - L16 ))
- ))
- (setq pt10(delta refpt
- (x-of pt1)
- ( + (y-of pt1) L17)
- ))
- (setq pt39(polar
- pt1
- (chg-quad (+ 1.5707963(chg-quad ( - 1.57079633 ANG12
- )) ))
- L19
- ))
- (setq pt21(polar
- pt1
- (chg-quad ( - 1.57079633 ANG12
- ))
- ( - L9 )
- ))
- (setq pt31(polar
- pt1
- (chg-quad ( - 1.57079633 ANG12
- ))
- ( - L7 )
- ))
- (setq pt40(polar
- pt1
- (chg-quad (+ 1.5707963(chg-quad ( - 1.57079633 ANG12
- )) ))
- ( - L18 )
- ))
- (setq pt41(delta refpt
- ( + (x-of pt21) rad11)
- (y-of pt21)
- ))
- (setq pt42(polar
- pt31
- (chg-quad ( - 1.57079633 ANG12
- ))
- L21
- ))
- (setq pt37(polar
- pt31
- (chg-quad ( - 1.57079633 ANG12
- ))
- ( - L20 )
- ))
- (setq pt15(intersect
- (make-arc pt1 pt8 )
- (make-line pt1 (chg-quad ( - (chg-quad ( + 1.57079633 ANG13
- )) ANG14
- )) )
- '-
- ))
- (setq pt43(delta refpt
- ( + (x-of pt15) rad5)
- (y-of pt15)
- ))
- (setq pt16(intersect
- (make-arc pt1 pt8 )
- (make-line pt1 (chg-quad ( + 1.57079633 ANG13
- )) )
- '-
- ))
- (setq pt17(intersect
- (make-arc pt1 pt8 )
- (make-line pt1 (chg-quad ( + (chg-quad ( + 1.57079633 ANG13
- )) ANG15
- )) )
- '-
- ))
- (setq pt44(delta refpt
- ( + (x-of pt16) rad4)
- (y-of pt16)
- ))
- (setq pt45(delta refpt
- ( + (x-of pt17) rad3)
- (y-of pt17)
- ))
- (setq pt18(intersect
- (make-arc pt1 pt38 )
- (make-line pt42 (chg-quad (+ 1.5707963(chg-quad ( - 1.57079633 ANG12
- )) )))
- '+
- ))
- (setq pt19(intersect
- (make-arc pt1 pt38 )
- (make-line pt42 (chg-quad (+ 1.5707963(chg-quad ( - 1.57079633 ANG12
- )) )))
- '-
- ))
- (setq pt20(intersect
- (make-line pt42 (chg-quad (+ 1.5707963(chg-quad ( - 1.57079633 ANG12
- )) )))
- (make-line pt39 (chg-quad ( - 1.57079633 ANG12
- )) )
- Nil
- ))
- (setq pt28(intersect
- (make-line pt42 (chg-quad (+ 1.5707963(chg-quad ( - 1.57079633 ANG12
- )) )))
- (make-line pt40 (chg-quad ( - 1.57079633 ANG12
- )) )
- Nil
- ))
- (setq pt26(intersect
- (make-line pt39 (chg-quad ( - 1.57079633 ANG12
- )) )
- (make-line pt31 (chg-quad (+ 1.5707963(chg-quad ( - 1.57079633 ANG12
- )) )))
- Nil
- ))
- (setq pt27(intersect
- (make-line pt39 (chg-quad ( - 1.57079633 ANG12
- )) )
- (make-line pt37 (chg-quad (+ 1.5707963(chg-quad ( - 1.57079633 ANG12
- )) )))
- Nil
- ))
- (setq pt29(intersect
- (make-line pt40 (chg-quad ( - 1.57079633 ANG12
- )) )
- (make-line pt31 (chg-quad (+ 1.5707963(chg-quad ( - 1.57079633 ANG12
- )) )))
- Nil
- ))
- (setq pt30(intersect
- (make-line pt40 (chg-quad ( - 1.57079633 ANG12
- )) )
- (make-line pt37 (chg-quad (+ 1.5707963(chg-quad ( - 1.57079633 ANG12
- )) )))
- Nil
- ))
- (setq pt22(intersect
- (make-arc pt21 pt41 )
- (make-line pt37 (chg-quad (+ 1.5707963(chg-quad ( - 1.57079633 ANG12
- )) )))
- '+
- ))
- (setq pt23(intersect
- (make-arc pt21 pt41 )
- (make-line pt37 (chg-quad (+ 1.5707963(chg-quad ( - 1.57079633 ANG12
- )) )))
- '-
- ))
- (princ "Computed points\n")(gc)
- (make_layer "0" 1)
- (make_layer "cen" 1)
- (make_layer "dim" 1)
- (make_layer "0" 1)
- (command "LINE" pt20 pt19 "" )
- (command "LINE" pt26 pt27 "" )
- (command "LINE" pt28 pt18 "" )
- (command "LINE" pt29 pt30 "" )
- (command "LINE" pt30 pt23 "" )
- (command "LINE" pt27 pt22 "" )
- (command "LINE" pt28 pt29 "" )
- (command "LINE" pt20 pt26 "" )
- (command "CIRCLE" pt1 rad2)
- (setq ent1 (entlast))(command "CIRCLE" pt15 rad5)
- (setq ent2 (entlast))(command "CIRCLE" pt16 rad4)
- (setq ent3 (entlast))(command "CIRCLE" pt17 rad3)
- (setq ent4 (entlast))(command "ARC""C" pt1 pt18 pt19)
- (setq ent5 (entlast))(command "ARC""C" pt21 pt22 pt23)
- (setq ent6 (entlast))
- (draw-cline pt3 332.7631 0.0 )
- (draw-cline pt1 127.02554872(chg-quad ( - 1.57079633 ANG12
- )) )
- (draw-cline pt26 110.79546524(chg-quad (+ 1.5707963(chg-quad ( - 1.57079633 ANG12
- )) )) ) (make-cline pt1 rad2)
- (make-cline pt15 rad5)
- (make-cline pt16 rad4)
- (make-cline pt17 rad3)
-
- (setq *detailing* T) (init refpt)
- (setq L22 128.86431583 )
- (command "DIM1""VERT" pt10 pt8 (setq pt46(polar
- pt10
- 0.0
- L22
- )) "")
- (setq L23 2.26173408 )
- (command "DIM1""ROTATED"(r2d (chg-quad (+ 1.5707963(chg-quad ( - 1.57079633 ANG12
- )) ))) pt27 pt30 (setq pt47(polar
- pt30
- (chg-quad ( - 1.57079633 ANG12
- ))
- L23
- )) "")
- (setq L24 31.07176287 )
- (command "DIM1""ROTATED"(r2d (chg-quad ( - 1.57079633 ANG12
- )) ) pt1 pt31 (setq pt48(polar
- pt31
- (chg-quad (+ 1.5707963(chg-quad ( - 1.57079633 ANG12
- )) ))
- ( - L24 )
- )) "")
- (setq L25 11.5115572 )
- (command "DIM1""ROTATED"(r2d (chg-quad ( - 1.57079633 ANG12
- )) ) pt20 pt27 (setq pt49(polar
- pt20
- (chg-quad (+ 1.5707963(chg-quad ( - 1.57079633 ANG12
- )) ))
- L25
- )) "")
- (setq L26 28.57708641 )
- (command "DIM1""ROTATED"(r2d (chg-quad ( - 1.57079633 ANG12
- )) ) pt1 pt21 (setq pt50(polar
- pt1
- (chg-quad (+ 1.5707963(chg-quad ( - 1.57079633 ANG12
- )) ))
- L26
- )) "")
-
- (command "DIM1""radius" (list ent1 (polar pt1 0.78539816 10.0))"")
-
- (command "DIM1""radius" (list ent4 (polar pt17 0.78539816 10.0))"")
-
- (command "DIM1""radius" (list ent3 (polar pt16 0.78539816 10.0))"")
-
- (command "DIM1""radius" (list ent2 (polar pt15 0.78539816 10.0))"")
-
- (command "DIM1""radius" (list ent5 (midpt pt18 pt19 ) )"")
-
- (command "DIM1""radius" (list ent6 (midpt pt22 pt23 ) )"")
- (setq L27 100.0 )
- (setq pt51(polar
- pt1
- (chg-quad ( - 1.57079633 ANG12
- ))
- L27
- )) (setq L28 100.0 )
- (setq pt52(polar
- pt1
- 1.57079633
- L28
- )) (command "LINE" pt1 pt51 "" )
- (setq ent7 (entlast))(command "LINE" pt1 pt52 "" )
- (setq ent8 (entlast))(command "DIM1""ANGULAR" (list ent7 pt51 ) (list ent8 pt52 ) (midpt pt51 pt52 ) "" "" )
- (setq L29 110.0 )
- (setq pt53(polar
- pt1
- 1.57079633
- L29
- )) (setq L30 110.0 )
- (setq pt54(polar
- pt1
- (chg-quad ( + 1.57079633 ANG13
- ))
- L30
- )) (command "LINE" pt1 pt53 "" )
- (setq ent8 (entlast))(command "LINE" pt1 pt54 "" )
- (setq ent9 (entlast))(command "DIM1""ANGULAR" (list ent8 pt53 ) (list ent9 pt54 ) (midpt pt53 pt54 ) "" "" )
- (setq L31 120.0 )
- (setq pt55(polar
- pt1
- (chg-quad ( - (chg-quad ( + 1.57079633 ANG13
- )) ANG14
- ))
- L31
- )) (setq L32 120.0 )
- (setq pt56(polar
- pt1
- (chg-quad ( + 1.57079633 ANG13
- ))
- L32
- )) (command "LINE" pt1 pt55 "" )
- (setq ent10 (entlast))(command "LINE" pt1 pt56 "" )
- (setq ent9 (entlast))(command "DIM1""ANGULAR" (list ent10 pt55 ) (list ent9 pt56 ) (midpt pt55 pt56 ) "" "" )
- (setq L33 130.0 )
- (setq pt57(polar
- pt1
- (chg-quad ( + 1.57079633 ANG13
- ))
- L33
- )) (setq L34 130.0 )
- (setq pt58(polar
- pt1
- (chg-quad ( + (chg-quad ( + 1.57079633 ANG13
- )) ANG15
- ))
- L34
- )) (command "LINE" pt1 pt57 "" )
- (setq ent9 (entlast))(command "LINE" pt1 pt58 "" )
- (setq ent11 (entlast))(command "DIM1""ANGULAR" (list ent9 pt57 ) (list ent11 pt58 ) (midpt pt57 pt58 ) "" "" )
-
- (command "DIM1""DIMASZ" 3.0 )
- (command "DIM1""DIMTXT" 3.0 )
- (command "DIM1""UPDATE"(getset) "" )
- ( command "CHANGE""P" "" "LAYER" *dim-layer* )
-
-
-
- (rotate-it refpt refangle)
- (princ "\n Drawing created by a ParaDraft application")(mode 1) ( setq refpt nil
- pt1 nil
- pt2 nil
- pt3 nil
- pt4 nil
- pt5 nil
- pt6 nil
- pt7 nil
- pt8 nil
- pt9 nil
- pt10 nil
- pt11 nil
- pt12 nil
- pt13 nil
- pt14 nil
- pt15 nil
- pt16 nil
- pt17 nil
- pt18 nil
- pt19 nil
- pt20 nil
- pt21 nil
- pt22 nil
- pt23 nil
- pt24 nil
- pt25 nil
- pt26 nil
- pt27 nil
- pt28 nil
- pt29 nil
- pt30 nil
- pt31 nil
- pt37 nil
- pt38 nil
- pt39 nil
- pt40 nil
- pt41 nil
- pt42 nil
- pt43 nil
- pt44 nil
- pt45 nil
- pt46 nil
- pt47 nil
- pt48 nil
- pt49 nil
- pt50 nil
- pt51 nil
- pt52 nil
- pt53 nil
- pt54 nil
- pt55 nil
- pt56 nil
- pt57 nil
- pt58 nil
- L1 nil
- L6 nil
- L7 nil
- L8 nil
- L9 nil
- L16 nil
- L17 nil
- L18 nil
- L19 nil
- L20 nil
- L21 nil
- L22 nil
- L23 nil
- L24 nil
- L25 nil
- L26 nil
- L27 nil
- L28 nil
- L29 nil
- L30 nil
- L31 nil
- L32 nil
- L33 nil
- L34 nil
- )
- (gc) (princ) ; Program generated at : -- 15:06:34
-