Hi,
I have an ObjectIdCollection (of block references). I don't know how to sort and count block references via ObjectIdCollection.
Anyone can help me?
Thanks!
-Kin-
Solved! Go to Solution.
Solved by _gile. Go to Solution.
@_gile wrote:Hi,
You should ellaborate what you mean with: "sort and count block references"
Hi _gile,
I mean that:
- Sort ascending follow the name of blocks (alpha, beta)
- Count: is the number of each type of block
I want to display a list name (sorted) and quantity of each block.
Example:
A1 : 10
A5 : 2
B3 : 2
C12 : 7
It looks like magic. You run the command, select everything and hit enter. Watch! There is a list of all blocks, sorted by name, including quantity. So what is this magic word? think.
The BCOUNT team is part of Express Tools, so if you are using AutoCAD LT you will not have any fun because the Express tools are not.
This can also be done in a more declarative way using Linq queries (GroupBy, Count, ...).
Can't find what you're looking for? Ask the community or share your knowledge.