PDA

View Full Version : Help with using entsel or nentselp


MWKINCAID1
2007-03-09, 07:00 PM
I'm trying to use entsel or nentselp to pick a line based on predetermined point(s) that are set q's. i can't figure out the solution.. please help


(SETQ TXG "4970.50")
(SETQ TXH "4250.00")
(setQ CMA ",")
(SETQ TXJ (STRCAT TXG CMA TXH)
(setq TX1A (nentselp txj ))

T.Willey
2007-03-09, 07:23 PM
NEntSelP = nested entity select point

So you should supply a point, not a string. Try this as your last line

(nentselp (list (distof txg) (distof txh)))

ps: In your post you missed one ' ) '

MWKINCAID1
2007-03-09, 11:21 PM
Thanks, that worked out great.

T.Willey
2007-03-10, 01:10 AM
You're welcome.