Automated Counting in AutoCAD

I have been Googling methods to auto-count objects in AutoCAD to populate a Bill of Material (BOM) and update accordingly as objects are added or deleted. I found some ways to accomplish this, such as this one example of a method. However, I am seeking a method where this is accomplished by objects being placed on the correct layer (assuming layers are pre-defined by the CAD operator).

Perhaps a SD CAD operator may know of such a method where layer placement is critical to auto-counting? I was under the impression placing objects on the correct layers is key to auto-counting objects vs. auto-counting object attributes (which I wager is the alternative?). In short, perhaps the question becomes is auto-inventorying by layer even a “thing” in recent versions of AutoCAD? What are the facts on this?

You can talk to Autocad users at

On the same website there are:

  1. a useful forum called “drafting techniques” :
    Sign in

2. Other forums for earlier versions of Autocad : AutoCAD Forums - Autodesk Community