Alex, I am not a lisp guru by any means, but you will need to have a block defined called something like wire_number. The block will consist of an attribute named something like wirenum and an insertion point. Then your lisp program needs to scan the drawing for all occurences of the wire_number block and extract the text from the wirenum attribute. As I said, I'm not a lisp expert, but hopefully that will steer you in the right direction. Maybe someone else here has more experience with lisp.