Regards @Oliver_C3D
Since you already have a solution to do it by selecting several texts at the same time. Update my initial code to join the texts selecting two by two, consecutively.
In the case of texts that represent their elevation and it is possible that with this a TIN surface will be built, it surprises me that a fixed insertion point is not required.
(defun c:Jtext ( / s ltx i en tx ltx pins lay h tt)
(while
(setq s (ssget '((0 . "text"))))
(setq ltx ())
(repeat (setq i (sslength s))
(setq en (entget (ssname s (setq i (1- i))))
tx (cdr (assoc 1 en)))
(repeat 2
(setq tx(vl-string-subst "" " " tx)))
(setq ltx (cons tx ltx))
)
(setq pins (mapcar '+ (cdr (assoc 10 en)) '(3.18 0 0))
lay (cdr (assoc 8 en))
h (cdr (assoc 40 en))
tt (strcat (nth 0 ltx) (nth 1 ltx))
)
(setq pins (mapcar '+ pins (list 0. 0. (atof tt))))
(entmake
(list (cons 0 "text") (cons 8 lay) (cons 10 pins) (cons 40 h) (cons 1 tt)(cons 73 0))
)
(vl-cmdf "_erase" s "")
)
(princ)
)
Carlos Calderon G

>Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.