TJ
Sorry about that, try this one.
(defun c:equip-co (/ pb1 pt1 pt2 lay scl ply agl rtd ang)
(setq pb1 (getvar "PICKBOX"))
(setvar "CMDECHO" 0)
(setq pt1 (getpoint "\nFrom Point: ")
pt2 (getpoint pt1 "\nTo Point: ")
lay (getvar "CLAYER")
scl (getvar "DIMSCALE")
ply (* scl 0.2806)
agl (angle pt1 pt2)
rtd (/ 180 pi)
ang (* rtd agl)
)
(command "COLOR" "bylayer")
(setq pt0 (polar pt2 (angle pt2 pt1) ply))
(command ".POLYGON" "6" PT2 "I" PLY)
(setq ent (entlast))
(command ".qleader" "_non" pt1 "_nea" pt0 ^c ^c); create leader only
(entdel ent)
(command "INSERT" "meinarw" pt1 scl "" ang)
(setq att (getstring "\nEquip_type: "))
(setq att2 (getstring "\nEquip_number: "))
(command "INSERT" "M-Text-EquipDesig1" pt2 scl "" "" att att2)
(command "SETVAR" "PICKBOX" pb1)
(setvar "CMDECHO" 1)
(pickbox "4")
(princ)
)