Jive this a go and let me know.
(defun c:Foo (/ int sel ent pts pt1 pt2 pt3 pt4 crs len ang dis str)
;; Tharwat - 29.Apr.2020 ;;
(and
(setq int -1
sel (ssget '((0 . "LWPOLYLINE") (90 . 4)))
)
(while (setq int (1+ int)
ent (ssname sel int)
)
(setq pts (mapcar 'cdr
(vl-remove-if-not
'(lambda (x)
(eq (car x) 10)
)
(entget ent)
)
)
)
(mapcar 'set '(pt1 pt2 pt3 pt4) pts)
(setq crs (inters pt1 pt3 pt2 pt4 nil))
(foreach grp (list (list pt1 pt2) (list pt2 pt3))
(setq len (distance (car grp) (cadr grp))
ang (angle (car grp) (cadr grp))
dis (/ len 10.0)
)
(entmake
(list '(0 . "LINE")
(cons 10 (setq str (polar crs ang (+ (/ len 2.0) dis))))
(cons 11 (polar str (+ ang pi) (+ len (* dis 2.))))
)
)
)
)
)
(princ)
)