Block count LISP with symbols and using attributes for the columns

aridzv
edited December 2021 in LISP Codes
Hi.
I need help with LSP that will count blocks by selection and then will put them in to a table with the block symbol.
I need the columns headers to be of selected attributes, in this case,in addition to the block Symbol I need 2 more columns that will take the data from 2 attributes (Tag Names) "ITEM_DESCRIPTION" and "ORDER".
I found A greate LISP from Lee Mac (see attached .LSP File) that do almost what I need,but I can't find a way to replace the block name column data with "ITEM_DESCRIPTION" attribute and the count column with "ORDER" attribute.
I need to sort the table by the "ORDER" field,but since the lisp already allow to sort by the count column I guess that it will allow me to do so on the replaced column.
I also attached a screenshot showing the original LISP result and the modification that I'm trying to get.
I'll appreciate any help on that...
thanks,
Ari.