pull value of text string

pull value of text string

Travis.Biddle
Advocate Advocate
449 Views
1 Reply
Message 1 of 2

pull value of text string

Travis.Biddle
Advocate
Advocate

I have a text item that I select with a selection set, lets say it reads "test" (but will vary).  How can I store the value "test" to use later on in the lisp.  I want to (setq a "value of the text from the selection set")

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

Kent1Cooper
Consultant
Consultant
Accepted solution

One way:

 

(setq a (cdr (assoc 1 (entget (car (entsel "\nText/Mtext object to pull text content from: "))))))

Kent Cooper, AIA
0 Likes