What I am trying to do is create a selection set of the "y" values of text. I've started by pulling out all the text on the drawing, but I need it to continue to grab only the "y" values of the text on the drawing.
(setq alltext (ssget "_x" (list '(0 . "TEXT"))
)
)
I've tried a bunch of different things but I am still new to lisp.
Try it like this ..
(setq alltext (ssget "_x" (list '(0 . "TEXT") (cons 1 "*y*"))))
@gcsjlewis wrote:What I am trying to do is create a selection set of the "y" values of text. I've started by pulling out all the text on the drawing, but I need it to continue to grab only the "y" values of the text on the drawing.
(setq alltext (ssget "_x" (list '(0 . "TEXT"))
)
)
I've tried a bunch of different things but I am still new to lisp.
manamalewis,
"create a selection set of the "y" values of text"
Do you mean a list with all the "y" values from each text insertion point?
if I understood correctly, perhaps something like this
(if (setq alltext (ssget "_X" (list (cons 0 "TEXT") (cons 410 (getvar "CTAB")))) ) (progn (setq itm 0 num (sslength alltext) );; setq (while (< itm num) (setq texty (caddr (assoc 10 (entget (ssname alltext itm))))) (setq alltexty (append alltexty (list texty))) (setq itm (1+ itm)) );; while );; progn );; if
hope that helps
Henrique
@gcsjlewis wrote:What I am trying to do is create a selection set of the "y" values of text. I've started by pulling out all the text on the drawing, but I need it to continue to grab only the "y" values of the text on the drawing.
"y" values.. <-- i wonder what that is?
@gcsjlewis wrote:
Nope, I get
; error: bad argument type: lselsetp nil
That error message is not belong to my line of code but related to the iteration of of your code , so post your code
to allow us to check it out for you .
Tharwat