you can try it too:
;| MSLOT, short for Milled SLOT
Copyright © 1998 Ronald W. Leigh
Requests width and two center points.
Draws a polyline with two straight and two arc segments.
Variables:
a/b Centers
a1/a2 Endpoints of arc around a
b1/b2 Endpoints of arc around b
ang Angle of slot centerline
obm Old blipmode setting, 0 or 1
r Radius of arcs
w Width of slot |;
(defun c:mslot (/ a a1 a2 ang b b1 b2 obm r w) ;line 1
(setq obm (getvar "blipmode"

) ;line 2
(initget 7) ;line 3
(setq w (getreal "\nWidth of slot: "

) ;line 4
(setq r (/ w 2)) ;line 5
(setvar "blipmode" 1) ;line 6
(initget 1) ;line 7
(setq a (getpoint "\nLocate first center: "

) ;line 8
(initget 1) ;line 9
(setq b (getpoint a "\nLocate second center: "

) ;line 10
(setvar "blipmode" 0) ;line 11
(setq ang (angle a b)) ;line 12
(setq a1 (polar a (- ang (/ pi 2)) r)) ;line 13
(setq a2 (polar a (+ ang (/ pi 2)) r)) ;line 14
(setq b1 (polar b (- ang (/ pi 2)) r)) ;line 15
(setq b2 (polar b (+ ang (/ pi 2)) r)) ;line 16
(setvar "cmdecho" 0) ;line 17
(command ".pline" a1 b1 "A" b2 "L" a2 "A" "CL"

;line 18
(setvar "cmdecho" 1) ;line 19
(setvar "blipmode" obm) ;line 20
(princ) ;line 21
) ;line 22
If you need further asistance please contac me at k281969@hotmail.com
Pardal