Visual LISP, AutoLISP and General Customization
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Find Overlappin g Text
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
What would be the ideal way to find out the overlapping text. Thanks in Advance....
Thanks & Regards
Re: Find Overlappin g Text
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
test this code maybe can help you.
[code]
; cdt is stand for Check Duplicate Text
; Design by : Adesu
; Email : mteybid@yuasabattery.co.id
; Homepage : http://www.yuasa-battery.co.id
; Create : 02 May 2007
; Program no.: 0571/05/2007
; Edit by :
(defun c:cdt (/ ep sp ss sse2 ssl ssn1 ssn2 th)
(princ "\nUse window to catch an object")
(if
(setq ss (ssget (list (cons 0 "TEXT"))))
(progn
(setq ssl (sslength ss))
(if
(= ssl 2)
(progn
(setq ssn1 (ssname ss 0))
(command "change" ssn1 "" "p" "c" 1 "")
(setq ssn2 (ssname ss 1))
(setq sse2 (entget ssn2))
(setq sp (cdr (assoc 10 sse2)))
(setq th (cdr (assoc 40 sse2)))
(setq ep (polar sp (* pi 1.5) th))
(command "change" ssn2 "" "p" "c" 2 "")
(command "_move" ssn2 "" sp ep "")
) ; progn
(alert "\nThat string over 2 entities")
) ; if
) ; progn
) ; if
(princ)
) ; defun
[/code]
Hi All,
What would be the ideal way to find out the overlapping text.
Thanks in Advance....
Thanks & Regards
Find Overlappin g Text with objects in a differnt layer
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Can somebody suggest identifying overlapping text with objects in a different layer
Re: Find Overlappin g Text with objects in a differnt layer
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
What about the OVERKILL command , did you try it ?
Re: Find Overlappin g Text with objects in a differnt layer
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
bireshwar.mallick wrote:Can somebody suggest identifying overlapping text with objects in a different layer
That is a strange code. Select on screen, then only if theres two object selected it will change the color and move the other one down . but in your case , all you wwant to is change the layer of the "overlap text".
What constitue an overlap? Exact duplicate of the TEXT entity? i.e string/insertion point/ layer......
Re: Find Overlappin g Text with objects in a differnt layer
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Is there a tool or a lisp to identify the following overlaps in a different layer color for identification purpose (Not deleting the duplicates' by an Overkill command) in a shop drawing using an entire window slection :-
1. Text with text overlap
2. Text and object overlap
Re: Find Overlappin g Text with objects in a differnt layer
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
bireshwar.mallick wrote:Is there a tool or a lisp to identify the following overlaps in a different layer color for identification purpose (Not deleting the duplicates' by an Overkill command) in a shop drawing using an entire window slection :-
1. Text with text overlap
2. Text and object overlap
Wow.... That could be daunting. The first thing that comes to mind is to find the bounding boxes of things and check whether any of their corners fall within the bounding boxes of other things. That probably isn't too hard as an individual comparison, but you would have to check every single object against every other single object. That could add up to a whole lot of comparisons. And iffy possibilities come to mind -- for instance, in the attached image, would you consider the red Text object to "overlap" the yellow Line? Their bounding boxes [blue] do overlap, but not their "content". I guess there must be a way to determine whether the Line itself goes through the bounding box of the Text, but would the basis of comparison need to be something entirely different for different entity types? What would you check for an Arc? Etc., etc....
Re: Find Overlappin g Text with objects in a differnt layer
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hi Kent
.. lets go for a particular case where we can identify text and object overlap.Is there a tool or a lisp.I am new to this issue.
Thanks and regards
Bireshwar
Re: Find Overlappin g Text with objects in a differnt layer
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
bireshwar.mallick wrote:....lets go for a particular case where we can identify text and object overlap.Is there a tool or a lisp....
Try putting overlap into the Search window. A bunch of threads come up, some of which may have what you're after. If they don't, I think the first order of business is to define exactly what constitutes "overlap" for your purposes [e.g. in my earlier image, do the Text and Line overlap?].
Re: Find Overlappin g Text with objects in a differnt layer
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Morning Kent!! yes in your attached image the line box and the text box do overlap.But what I am seeking is a tool that can resolve the cases that I have attached showing basic cases of overlaps in CAD shopdrawings.
Thanks and good wishes


