I know how to scan the block table and count the number of blocks with a certain attribute tag value. What I am having trouble with is scanning the blocks, and counting the number of *different* values when I actually have no idea what the values might be. For example I have a drawing with 80 instances of a block named P-FIXT-F that has an attribute tag of TYPE. Of the 80, there may be 15 with the TYPE value of "L1", 23 with "P1", 42 with "G2" and 20 with "H1". I'm trying to come up with a routine that will look at the TYPE value and create a separate count for each different value it comes across. But without knowing all the possible TYPEs to evaluate against and including them in the code, I can't seem to get it to work... Does this make any sense? Any help would be greatly appreciated! Thanks!