CAD Boundary around the text or point

CAD Boundary around the text or point

vishalghuge2500
Enthusiast Enthusiast
393 Views
2 Replies
Message 1 of 3

CAD Boundary around the text or point

vishalghuge2500
Enthusiast
Enthusiast

vishalghuge2500_0-1707210127788.png

can we create a boundaries as shown with red lines from the left side drawing by using text base points 

 

0 Likes
Accepted solutions (1)
394 Views
2 Replies
Replies (2)
Message 2 of 3

ВeekeeCZ
Consultant
Consultant
Accepted solution

You can use this simple automation to help.

But - of course - you need to fix your drawing first. Seems like the FLATTEN fixed the most of it.

 

(vl-load-com)

(defun c:BoundaryT ( / s i p)

  (if (setq s (ssget '((0 . "TEXT"))))
    (repeat (setq i (sslength s))
      (setq p (cdr (assoc 10 (entget (ssname s (setq i (1- i)))))))
      (vl-catch-all-apply 'bpoly (list p))))
  (princ)
  )

 

Message 3 of 3

calderg1000
Mentor
Mentor

Regards @vishalghuge2500 

Try this code, it should work if all the numbered areas had no unclosed encounters. Verify this first by zooming in on all the joints between lines that make up the vertices of the polygon to be obtained.

;;;___
(defun c:bop (/ x p)
  (foreach x
	     (vl-remove-if 'listp (mapcar 'cadr (ssnamex (ssget '((0 . "*text")))))
	     )
    (setq p (cdr (assoc 10 (entget x)))
	  p (mapcar '- p (list 0. 0. (caddr p)))
    )
    (command "_.boundary" "_non" p "")
  )
)

 

 


Carlos Calderon G
EESignature
>Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

0 Likes