Hi,
Here's one for all you budding LISP writers, if you fancy a challenge.......?
Auto-delete overlapping text.
In the past I have looked at addressing the drawing as a whole and all text on all layers using some form of weighting. However, I feel this may be too complicated. Instead, I suggest addressing a layer at a time.
The way I see it is:
- user isolates layer
- user selects multiple text entries on that layer
- the routine would then:
- gives all text items a label as 't1' 't2' 't3' etc
- draws bounding boxes around all text entries
- selects text item 't1'
- create a search area around text 't1' of radii 2x size of bounding box
- name every piece of text within this search as 's1' 's2' 's3' s4' etc
- check each in turn to see if bounding box of 's1' overlaps with box of 't1'
- if 's1' overlaps with 't1' then delete 's1'. If not, ignore
- if 's2' overlaps with 't1' then delete 's2'. if not, ignore
- repeat for all 's' items.
- return to main loop and check for item 't2'.
- repeat until all entries in selection have been checked.
I think that this is how it would work. I just haven't a clue how to write LISP.
What do ya think?
BIG thanks!
Rroger_D