home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HomeWare 14
/
HOMEWARE14.bin
/
autocad
/
geomtol.arj
/
TAPHOLE.LSP
< prev
next >
Wrap
Text File
|
1993-06-11
|
1KB
|
34 lines
; CREATED BY ANTONE M. SILVIA - 06/10/93
(DEFUN C:TAPHOLE(/ DIA DEEP ANGLE INP P1 P2 P3 P4 P5 P6 P7 P8
P9 P10 P11)
(SETQ DIA (GETREAL "PLEASE ENTER DIAMETER: "))
(SETQ DEEP (GETREAL "PLEASE ENTER HOLE DEPTH: "))
(SETQ ANGLE (GETREAL "PLEASE ENTER ROTATION ANGLE: "))
(SETQ INP (GETPOINT "PLEASE PICK INSERTION POINT: "))
(SETQ ANGLE (/ (* ANGLE PI) 180))
(SETQ P1 (POLAR INP (- ANGLE (/ PI 2)) (/ DIA 2)))
(SETQ P2 (POLAR P1 ANGLE DEEP))
(SETQ P3 (POLAR P2 (+ ANGLE (* (/ PI 6) 2)) (* DIA 0.57735)))
(SETQ P4 (POLAR P2 (+ ANGLE (/ PI 2)) DIA))
(SETQ P5 (POLAR P4 (+ ANGLE PI) DEEP))
(SETQ P6 (POLAR P1 (+ ANGLE (/ PI 2)) 0.06))
(SETQ P7 (POLAR P2 (+ ANGLE (/ PI 2)) 0.06))
(SETQ P8 (POLAR P4 (- ANGLE (/ PI 2)) 0.06))
(SETQ P9 (POLAR P5 (- ANGLE (/ PI 2)) 0.06))
(SETQ P10 (POLAR INP (+ ANGLE PI) 0.25))
(SETQ P11 (POLAR INP ANGLE (+ DEEP (+ 0.25 (* DIA 0.29)))))
(COMMAND "LINE" P1 P2 P4 P5 "")
(COMMAND "LINE" P2 P3 P4 "")
(COMMAND "LINE" P6 P7 "")
(COMMAND "LINE" P8 P9 "")
(COMMAND "LINE" P10 P11 "")
(COMMAND "CHANGE" "L" "" "P" "LA" "CEN" ""))
(DEFUN C:PTHOLE(/ INP NOM)
(SETQ NOM (GETREAL "PLEASE ENTER THE NOMINAL SIZE: "))
(SETQ INP (GETPOINT "PLEASE PICK THE CENTER POINT: "))
(COMMAND "CIRCLE" INP "D" (- NOM 0.09))
(COMMAND "CIRCLE" INP "D" NOM)
(COMMAND "CHANGE" "L" "" "P" "LA" "HID" ""))