Jump to content

Recommended Posts

Posted
 (setq ss3 (ssget "C" pt1 pt2 '((0 . "text" ))))

How can I add to this set (ss3) mtext also.

Posted

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.

Posted

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.

Posted
Same with ARCTEXT :)

 

Oh yeah, that one too. Man, I haven't used ARCTEXT in 10+ years.

Posted

Thanks a lot for your valuable advices.

And can we develop this to select texts only inside a circle ?

Posted

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)))))))))

Posted

Yes it is nice. But I need multiple selection.

I mean all the text inside several circles selected by a window.

Posted

So, do your multiple selection and go same way,

sorry I can be more help

Posted

Ok Sir I will try . thans for your valuable codes and your time spend for me.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...