home *** CD-ROM | disk | FTP | other *** search
-
- ; ******* ParaDraft Application ********
- ; Parametric Geomtry Program generated by PgPg!
- ; Authored by : User
- ; Application name : Flange
- ; Dated : Monday , 20-5-1991
- ; Started at : -- 15:07:01
- ; Finished at : -- 15:10:07
- ; ****************************************
- (princ "\nParaDraft application generated on Monday , 20-5-1991 with Professional Version 1.0P")
- (mode 0)(command "VSLIDE"(strcat *pgpg-dir* *pg-name*))
- (setq rad15 nil L1 nil L2 nil L3 nil L4 nil L5 nil L6 nil L7 nil L8 nil L9 nil L10 nil L11 nil L12 nil L13 nil L14 nil )
- (take-value 'rad15 "rad15" 7.92750179)
- (take-value 'L1 "L1" 98.60333)
- (take-value 'L2 "L2" 8.0272)
- (take-value 'L3 "L3" 8.02725)
- (take-value 'L4 "L4" 129.824487)
- (take-value 'L5 "L5" 162.042641)
- (take-value 'L6 "L6" 201.78947)
- (take-value 'L7 "L7" 16.8033)
- (take-value 'L8 "L8" 16.803314)
- (take-value 'L9 "L9" 127.642263)
- (take-value 'L10 "L10" 13.7333)
- (take-value 'L11 "L11" 66.01699958)
- (take-value 'L12 "L12" 21.12253096)
- (take-value 'L13 "L13" 3.16683096)
- (take-value 'L14 "L14" 136.04389)
- (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 L16 (/ L1 2.0) )
- (setq L17 L16 )
- (setq L18 (/ L4 2.0) )
- (setq L19 L18 )
- (setq L20 (/ L5 2.0) )
- (setq L21 L20 )
- (setq L22 (/ L6 2.0) )
- (setq L23 L22 )
- (setq L24 (/ L9 2.0) )
- (setq L25 L24 )
- (setq L26 (/ L14 2.0) )
- (setq L27 L26 )
- (setq L28 (/ L8 2.0) )
- (setq L29 L28 )
- (setq L30 (/ L7 2.0) )
- (setq L31 L30 )
- (setq L32 rad15 )
- (setq L33 rad15 )
-
- (setq pt1(delta refpt
- 0.0
- 0.0
- ))
- (setq pt4(delta refpt
- (x-of pt1)
- ( + (y-of pt1) L11)
- ))
- (setq pt53(polar
- pt1
- 0.0
- L20
- ))
- (setq pt11(delta refpt
- ( + (x-of pt1) L16)
- ( + (y-of pt1) L11)
- ))
- (setq pt12(delta refpt
- ( + (x-of pt1) L18)
- (y-of pt1)
- ))
- (setq pt13(delta refpt
- ( + (x-of pt1) L26)
- ( + (y-of pt1) L13)
- ))
- (setq pt49(polar
- pt1
- 1.57079633
- L13
- ))
- (setq pt50(polar
- pt1
- 1.57079633
- L12
- ))
- (setq pt54(polar
- pt1
- 0.0
- L16
- ))
- (setq pt22(delta refpt
- ( + (x-of pt1) L22)
- ( + (y-of pt1) L12)
- ))
- (setq pt25(delta refpt
- ( + (x-of pt1) L22)
- ( + (y-of pt1) L13)
- ))
- (setq pt30(delta refpt
- ( + (x-of pt1) ( - L23 ))
- ( + (y-of pt1) L12)
- ))
- (setq pt31(delta refpt
- ( + (x-of pt1) ( - L23 ))
- ( + (y-of pt1) L13)
- ))
- (setq pt32(delta refpt
- ( + (x-of pt1) ( - L17 ))
- ( + (y-of pt1) L11)
- ))
- (setq pt33(delta refpt
- ( + (x-of pt1) ( - L19 ))
- (y-of pt1)
- ))
- (setq pt34(delta refpt
- ( + (x-of pt1) ( - L27 ))
- ( + (y-of pt1) L13)
- ))
- (setq pt55(polar
- pt1
- 0.0
- ( - L17 )
- ))
- (setq pt56(polar
- pt1
- 0.0
- ( - L21 )
- ))
- (setq pt43(delta refpt
- ( + (x-of pt1) ( - L25 ))
- ( + (y-of pt1) L12)
- ))
- (setq pt44(delta refpt
- ( + (x-of pt1) L24)
- ( + (y-of pt1) L12)
- ))
- (setq pt51(delta refpt
- ( + (x-of pt1) L20)
- ( + (y-of pt1) L12)
- ))
- (setq pt52(delta refpt
- ( + (x-of pt1) ( - L21 ))
- ( + (y-of pt1) L12)
- ))
- (setq pt45(delta refpt
- ( + (x-of pt1) L16)
- ( + ( - L10 ) (y-of pt4))
- ))
- (setq pt46(delta refpt
- ( + (x-of pt1) ( - L17 ))
- ( + ( - L10 ) (y-of pt4))
- ))
- (setq pt14(delta refpt
- ( + ( - L29 ) (x-of pt53))
- ( + (y-of pt1) L13)
- ))
- (setq pt15(delta refpt
- ( + ( - L29 ) (x-of pt53))
- ( + (y-of pt1) L12)
- ))
- (setq pt23(delta refpt
- ( + L28 (x-of pt53))
- ( + (y-of pt1) L12)
- ))
- (setq pt24(delta refpt
- ( + L28 (x-of pt53))
- ( + (y-of pt1) L13)
- ))
- (setq pt5(delta refpt
- ( + ( - L3 ) (x-of pt11))
- ( + (y-of pt1) L11)
- ))
- (setq pt8(polar
- pt32
- 0.0
- L2
- ))
- (setq pt26(delta refpt
- ( + L30 (x-of pt56))
- ( + (y-of pt1) L13)
- ))
- (setq pt27(delta refpt
- ( + ( - L31 ) (x-of pt56))
- ( + (y-of pt1) L13)
- ))
- (setq pt28(delta refpt
- ( + L30 (x-of pt56))
- ( + (y-of pt1) L12)
- ))
- (setq pt29(delta refpt
- ( + ( - L31 ) (x-of pt56))
- ( + (y-of pt1) L12)
- ))
- (setq pt57(polar
- pt50
- 1.57079633
- L32
- ))
- (setq pt58(polar
- pt43
- (chg-quad (+ 1.5707963(calc-angle pt43 pt46 )))
- L33
- ))
- (setq pt6(intersect
- (make-line pt1 0.0 )
- (make-line pt5 1.57079633 )
- Nil
- ))
- (setq pt7(intersect
- (make-line pt1 0.0 )
- (make-line pt8 1.57079633 )
- Nil
- ))
- (princ "Computed points\n")(gc)
- (make_layer "cen" 1)
- (make_layer "0" 1)
- (make_layer "dim" 1)
- (make_layer "0" 1)
- (command "LINE" pt4 pt5 "" )
- (command "LINE" pt6 pt1 "" )
- (command "LINE" pt7 pt1 "" )
- (command "LINE" pt8 pt7 "" )
- (command "LINE" pt4 pt8 "" )
- (command "LINE" pt11 pt5 "" )
- (setq ent1 (entlast))(command "LINE" pt5 pt6 "" )
- (setq ent2 (entlast))(command "LINE" pt6 pt12 "" )
- (setq ent3 (entlast))(command "LINE" pt12 pt13 "" )
- (setq ent4 (entlast))(command "LINE" pt13 pt14 "" )
- (setq ent5 (entlast))(command "LINE" pt14 pt15 "" )
- (setq ent6 (entlast))(command "LINE" pt15 pt44 "" )
- (setq ent7 (entlast))(setq ent7 (entlast))(command "LINE" pt44 pt45 "" )
- (setq ent8 (entlast))(setq ent8 (entlast))(command "LINE" pt45 pt11 "" )
- (setq ent9 (entlast))(setq ent9 (entlast))(command "LINE" pt22 pt23 "" )
- (setq ent10 (entlast))(command "LINE" pt23 pt24 "" )
- (setq ent11 (entlast))(command "LINE" pt24 pt25 "" )
- (setq ent12 (entlast))(command "LINE" pt25 pt22 "" )
- (setq ent13 (entlast))(command "LINE" pt15 pt23 "" )
- (command "LINE" pt14 pt24 "" )
- (command "LINE" pt26 pt27 "" )
- (command "LINE" pt28 pt29 "" )
- (command "LINE" pt30 pt29 "" )
- (setq ent14 (entlast))(command "LINE" pt29 pt27 "" )
- (setq ent15 (entlast))(command "LINE" pt27 pt31 "" )
- (setq ent16 (entlast))(command "LINE" pt31 pt30 "" )
- (setq ent17 (entlast))(command "LINE" pt32 pt8 "" )
- (setq ent18 (entlast))(command "LINE" pt8 pt7 "" )
- (setq ent19 (entlast))(command "LINE" pt7 pt33 "" )
- (setq ent20 (entlast))(command "LINE" pt33 pt34 "" )
- (setq ent21 (entlast))(command "LINE" pt34 pt26 "" )
- (setq ent22 (entlast))(command "LINE" pt26 pt28 "" )
- (setq ent23 (entlast))(command "LINE" pt28 pt43 "" )
- (setq ent24 (entlast))(setq ent24 (entlast))(command "LINE" pt43 pt46 "" )
- (setq ent25 (entlast))(setq ent25 (entlast))(command "LINE" pt46 pt32 "" )
- (setq ent26 (entlast))(setq ent26 (entlast))
- (command "FILLET""R"rad15
- "FILLET"( ssadd ent7 ( ssadd ent8 ( ssadd))) )
- (setq ent27 (entlast))
- (setq ent28 (entlast))
-
- (command "FILLET""R"rad15
- "FILLET"( ssadd ent8 ( ssadd ent9 ( ssadd))) )
- (setq ent29 (entlast))
- (setq ent30 (entlast))
-
- (command "FILLET""R"rad15
- "FILLET"( ssadd ent24 ( ssadd ent25 ( ssadd))) )
- (setq ent31 (entlast))
- (setq ent32 (entlast))
-
- (command "FILLET""R"rad15
- "FILLET"( ssadd ent25 ( ssadd ent26 ( ssadd))) )
- (setq ent33 (entlast))
- (setq ent34 (entlast))
-
- (draw-cline pt4 178.21888 1.57079633 )
- (draw-cline pt51 93.48006 1.57079633 )
- (draw-cline pt52 95.46461 1.57079633 )
- (setq *detailing* T) (init refpt)
- (setq L34 19.02159868 )
- (command "DIM1""HORIZ" pt32 pt11 (setq pt59(polar
- pt11
- 1.57079633
- L34
- )) "")
- (setq L35 7.92740031 )
- (command "DIM1""HORIZ" pt32 pt8 (setq pt60(polar
- pt8
- 1.57079633
- L35
- )) "")
- (setq L36 8.98300031 )
- (command "DIM1""HORIZ" pt5 pt11 (setq pt61(polar
- pt11
- 1.57079633
- L36
- )) "")
- (setq L37 16.37228826 )
- (command "DIM1""HORIZ" pt33 pt12 (setq pt62(polar
- pt33
- 1.57079633
- ( - L37 )
- )) "")
- (setq L38 35.92176 )
- (command "DIM1""HORIZ" pt56 pt53 (setq pt63(polar
- pt53
- 1.57079633
- ( - L38 )
- )) "")
- (setq L39 47.5334613 )
- (command "DIM1""HORIZ" pt31 pt25 (setq pt64(polar
- pt31
- 1.57079633
- ( - L39 )
- )) "")
- (setq L40 22.18850035 )
- (command "DIM1""HORIZ" pt29 pt28 (setq pt65(polar
- pt28
- 1.57079633
- L40
- )) "")
- (setq L41 8.97266829 )
- (command "DIM1""HORIZ" pt43 pt44 (setq pt66(polar
- pt43
- 1.57079633
- ( - L41 )
- )) "")
- (setq L42 5.28322 )
- (command "DIM1""VERT" pt11 pt45 (setq pt67(polar
- pt45
- 0.0
- L42
- )) "")
- (setq L43 54.702753 )
- (command "DIM1""VERT" pt11 pt12 (setq pt68(polar
- pt12
- 0.0
- L43
- )) "")
- (setq L44 12.99187 )
- (command "DIM1""VERT" pt12 pt22 (setq pt69(polar
- pt22
- 0.0
- L44
- )) "")
- (setq L45 15.87408 )
- (command "DIM1""VERT" pt12 pt25 (setq pt70(polar
- pt25
- 0.0
- L45
- )) "")
- (setq L46 29.57775818 )
- (command "DIM1""HORIZ" pt34 pt13 (setq pt71(polar
- pt34
- 1.57079633
- ( - L46 )
- )) "")
-
- (command "DIM1""radius" (list ent32 pt43 )(strcat "R" (rtos rad15 2) " TYP."))
-
- (command "DIM1""DIMASZ" 3.0 )
- (command "DIM1""DIMTXT" 3.0 )
- (command "DIM1""UPDATE"(getset) "" )
- ( command "CHANGE""P" "" "LAYER" *dim-layer* )
-
- (command "PEDIT"(list ent1 pt1 ) "Y""J"
- ent1
- ent2
- ent3
- ent4
- ent5
- ent6
- ent7
- ent27
- ent8
- ent29
- ent9 "" "X")
- (setq ent35 (entlast))
- (command "PEDIT"(list ent10 pt1 ) "Y""J"
- ent10
- ent11
- ent12
- ent13 "" "X")
- (setq ent36 (entlast))
- (command "PEDIT"(list ent14 pt1 ) "Y""J"
- ent14
- ent15
- ent16
- ent17 "" "X")
- (setq ent37 (entlast))
- (command "PEDIT"(list ent18 pt1 ) "Y""J"
- ent18
- ent19
- ent20
- ent21
- ent22
- ent23
- ent24
- ent31
- ent25
- ent33
- ent26 "" "X")
- (setq ent38 (entlast))(command "SELECT" ent35 ent36 ent37 ent38 "" )
- (command "HATCH""U""45.0" "2.0" "" "P" "" )
-
-
-
- (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
- pt32 nil
- pt33 nil
- pt34 nil
- pt35 nil
- pt36 nil
- pt37 nil
- pt38 nil
- pt39 nil
- pt40 nil
- pt41 nil
- pt42 nil
- pt43 nil
- pt44 nil
- pt45 nil
- pt46 nil
- pt48 nil
- pt49 nil
- pt50 nil
- pt51 nil
- pt52 nil
- pt53 nil
- pt54 nil
- pt55 nil
- pt56 nil
- pt57 nil
- pt58 nil
- pt59 nil
- pt60 nil
- pt61 nil
- pt62 nil
- pt63 nil
- pt64 nil
- pt65 nil
- pt66 nil
- pt67 nil
- pt68 nil
- pt69 nil
- pt70 nil
- pt71 nil
- L1 nil
- L2 nil
- L3 nil
- L4 nil
- L5 nil
- L6 nil
- L7 nil
- L8 nil
- L9 nil
- L10 nil
- L11 nil
- L12 nil
- L13 nil
- L14 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
- L35 nil
- L36 nil
- L37 nil
- L38 nil
- L39 nil
- L40 nil
- L41 nil
- L42 nil
- L43 nil
- L44 nil
- L45 nil
- L46 nil
- )
- (gc) (princ) ; Program generated at : -- 15:10:20
-