I am a novice in lisp and cannot figure out how to tweak the lisp to get the desired results ,so i need your help to get this workingI am attaching a dwg file with the blocks that we are dealing with.Each block has following 8 attributes.

STA. (Station /Controller)SIZE IM GPM PR PSIAREAHYDZ (Hydrozone)

We need to select blocks first by "STA." (wild card selection) and then refine the list with second attribute called "HYDZ" then display no of blocks selected and the sum of "AREA" attribute of the selected blocks.

I found this lisp on the internet that enables me to select the blocks with one attribute and works with wildcard entry , We need to add second selection criteria to refine the results