@pink_floid23 Try this
(defun c:splittext ( / string_to_list e ent p1 cont nt del )
(defun string_to_list ( str del / pos )
(if (setq pos (vl-string-search del str))
(cons (substr str 1 pos) (string_to_list (substr str (+ pos 1 (strlen del))) del))
(list str)))
(setq e (car (entsel "\nSelect text >")))
(setq ent (entget e))
(setq p1 (cdr (assoc 10 ent)))
(setq cont (string_to_list (cdr (assoc 1 ent)) "-"))
(setvar 'cmdecho 0)
(while cont
(setq nt (car cont) cont (cdr cont))
(setq del (* 1.2(caadr(textbox ent))))
(command "_.copy" e "" p1 (setq p1 (polar p1 0 del)) "")
(setq e (entlast) ent (entget e))
(setq ent(subst (cons 1 nt) (assoc 1 ent) ent))
(setq ent(entmod ent))
)
(setvar 'cmdecho 1)
(princ)
)
Miljenko Hatlak

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.