Choose the line around the article

Choose the line around the article

Anonymous
Not applicable
946 Views
6 Replies
Message 1 of 7

Choose the line around the article

Anonymous
Not applicable

Choose the line around the article
Hello there
When I select more than one font, how can I select the polyline that is enclosed in each of the surrounding areas?
Do not look up for English. Google translate

0 Likes
947 Views
6 Replies
Replies (6)
Message 2 of 7

dbroad
Mentor
Mentor

Is there some reason that the rectangles and numbers are not part of a block?  The numbers could be attributes. Is there some variation in design of the rectangles?

Architect, Registered NC, VA, SC, & GA.
0 Likes
Message 3 of 7

Anonymous
Not applicable

when i select the text, it automatically select the polyline enclosed by

Ekran Alıntısı.JPG

 

0 Likes
Message 4 of 7

hgasty1001
Advisor
Advisor

Hi,

 

This may help to start, need more error checking:

 

(vl-load-com)

(defun c:GetEnclosingPoly(/ txt dxf ptxt pl px ss)
  (setq txt (car(entsel"\Select Text:")))
  (setq dxf (entget txt))
  (if (=(cdr (assoc 0 dxf)) "TEXT")
    (progn
      (setq ptxt (cdr (assoc 10 dxf)))
      (command "-boundary" ptxt "")
      (setq pl (entlast))
      (setq px (vlax-curve-getClosestPointTo pl ptxt))
      (entdel (entlast))
      (setq ss (ssget px '((0 . "LWPOLYLINE"))))
      (sssetfirst nil ss)
    )
  )
(princ)
)  

Gaston Nunez

0 Likes
Message 5 of 7

Anonymous
Not applicable

hi

thanx Gaston

can i use this with multiple selection

0 Likes
Message 6 of 7

hgasty1001
Advisor
Advisor

Hi,

 

Please explain what you mean with "multiple selection". If i understood correctly, you are talking about selecting multiple enclosed text objects, but i'm not sure, so please explain the use case.

 

Gaston Nunez

0 Likes
Message 7 of 7

Anonymous
Not applicable

Yes you are right
Could you help

0 Likes