Count Block Instances
Windows only
Demonstrates how to count block instances using RhinoScript.
Sub CountAllInstancesOfAllBlocks
arrNames = Rhino.BlockNames(True)
If IsArray(arrNames) Then
For Each strName In arrNames
Rhino.Print strName & " = " & CStr(Rhino.BlockInstanceCount(strName))
Next
End If
End Sub