Ηι Tharwat. I want to ask something else about layers thats way i didnt change post.
I am using a simple command for purge ,audit and overkill. The problem is i have sone spesific layers with close polylines the most of the times are overlap and i want them. If i use the overkill command i loose parts of them
If i wright the code like bellow the code search to find the same time in the drawing all this layers TEST1,TEST2,TEST3,TEST4,TEST5,TEST6.
I want not to find all of them just one of them (TEST1 or TEST2 or TEST3 or TEST4 or TEST5 or TEST6), because in the drawing i will have one or two or thee of them etc.
The question is how to filter if find one or more of this 6 layers then
(COMMAND "-PURGE" "A" "*" "N" "_AUDIT" "Y" "" "")
unless
(COMMAND "-PURGE" "A" "*" "N" "_AUDIT" "Y" "-overkill" "all" "" "")
(if (not (tblsearch "LAYER" "TEST1" "TEST2" "TEST3" "TEST4" "TEST5" "TEST6")) (COMMAND "-PURGE" "A" "*" "N" "_AUDIT" "Y" "-overkill" "all" "" "")) (COMMAND "-PURGE" "A" "*" "N" "_AUDIT" "Y" "" "") )
)