wimal Posted May 23, 2013 Posted May 23, 2013 (setq ss3 (ssget "C" pt1 pt2 '((0 . "text" )))) How can I add to this set (ss3) mtext also. Quote
MSasu Posted May 23, 2013 Posted May 23, 2013 May use either (setq ss3 (ssget "[color=red]_[/color]C" pt1 pt2 '((0 . "text[color=magenta],mtext[/color]" )))) or (setq ss3 (ssget "[color=red]_[/color]C" pt1 pt2 '((0 . "[color=magenta]*[/color]text" )))) For rules to build complex filters please check the WCMATCH function. Quote
alanjt Posted May 23, 2013 Posted May 23, 2013 I'd advise against using "*TEXT" over just typing "MTEXT,TEXT". While not used as much, RText exists and doesn't read like MText and Text does. Could cause the routine to throw an error. Quote
alanjt Posted May 23, 2013 Posted May 23, 2013 Same with ARCTEXT Oh yeah, that one too. Man, I haven't used ARCTEXT in 10+ years. Quote
wimal Posted May 27, 2013 Author Posted May 27, 2013 Thanks a lot for your valuable advices. And can we develop this to select texts only inside a circle ? Quote
fixo Posted May 27, 2013 Posted May 27, 2013 Probably something like this (if (setq cs (ssget "_:S" '((0 . "CIRCLE")))) (progn (setq circ (ssname cs 0)) (setq pts (list (vlax-curve-getpointatparam circ (* (vlax-curve-getendparam circ)0.5)) (vlax-curve-getpointatparam circ (+ 0.5 (vlax-curve-getstartparam circ))))) (if (setq ts (ssget "_F" pts '((0 . "TEXT")))) (progn (alert (cdr (assoc 1 (entget (ssname ts 0))))))))) Quote
wimal Posted May 27, 2013 Author Posted May 27, 2013 Yes it is nice. But I need multiple selection. I mean all the text inside several circles selected by a window. Quote
fixo Posted May 27, 2013 Posted May 27, 2013 So, do your multiple selection and go same way, sorry I can be more help Quote
wimal Posted May 27, 2013 Author Posted May 27, 2013 Ok Sir I will try . thans for your valuable codes and your time spend for me. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.