Thanks Mr Crank for your reply, i write like this;
(defun c:bol( / lne z1 z2 z3 z4 strt end1)
;(setq lne (entsel "\nSelect Line..:"))
(setq lne (entget (car (entsel "\nSelect Line..:"))))
(setq z1 (cdr (assoc 10 lne)))
(setq z2 (cdr (assoc 11 lne)))
(setq strt (assoc 10 lne))
(setq end1 (assoc 11 lne))
(setq z3 (cddr z1)) ;start point z value
(setq z4 (cddr z2)) ;end point z value
(command "text" "j" "tl" strt "1" "0" z3) ;
(command "text" "j" "tl" end1 "1" "0" z4) ;
)
I want to write at the start point , z coordinate and location of end point, z coordinat too.