Select text Value and convert to attribute block value

Select text Value and convert to attribute block value

taitrongsong
Enthusiast Enthusiast
264 Views
1 Reply
Message 1 of 2

Select text Value and convert to attribute block value

taitrongsong
Enthusiast
Enthusiast

I have text object and block attribute, how select text and match value to attribute block quickly ? Tks all.

taitrongsong_0-1671785667539.png

 

0 Likes
Accepted solutions (1)
265 Views
1 Reply
Reply (1)
Message 2 of 2

ВeekeeCZ
Consultant
Consultant
Accepted solution
(defun c:Text2Att ( / x a)
  (and (setq x (car (entsel "Text: " )))
       (setq a (car (entsel "Att: ")))
       (setpropertyvalue (entnext a) "TextString" (strcat "+" (getpropertyvalue x "TextString"))))
  (princ)
  )
0 Likes