thank you very much for the reply. I have gone through the feature effects class and here is a sample that implements it:
The feature effects class is querying features to a buffered area or any desired area and its not clipping to that area. here's a snapshot of the class results:
What i am looking for is to have any number of features showing in this buffer zone or any area and then setting the outside boundary of this area to white like shown below:
As for the definition query, I have about 20 to 30 layers making a whole map and to implement so many queries is going to be difficult and also for line layers line national and state highways, the lines don't have any village or mandal or district specifications in their attributes.