Are you sure, that by testing for the area, it will allow you to get the duplicates?.... what happen when one room it is equal to another and it is not a duplicate?... or in your particular case, that never going to happen?
Post a simple drawing if you can, and also, have you tried to use the autocad built-in command overkill and eliminate the duplicates? - i think the word is OVERLAP instead of duplicates....
You are correct. This is a flaw in the searching for true duplicates. I have ran into the routine finding duplicate areas but not duplicate lwpolylines.
This is a problem that I did not think of. Therefore, the routine I made will not work for what I am trying to get accomplished. As for overkill command, I cannot
use this because our lwpolylines have "smart" information attached via XDATA and if there are 2 lwpolylines occupying the same space I do not know which lwpolyline
has the XDATA attached to it, hence my problem. I was going to use this routine to "locate" the lwpolylines and the user would have to manually check to see which needs
to be deleted. I hope I clarified this.