Item Type Expression - Self reporting count

For that geometrically based element numbering, I have already scripted for "along path", "bottom to top", "by nearest neighbour", "by distance from", etc to sequentially number the instances of a kind of element in a model, and write the unique instance value to an Item Type Property. However, I wonder if it is possible to get an Item Type Expression to self report it's own instance's "count so far" value.

While each element obviously has a unique Element ID in the file, I would want to count each element of it own kind with its own sequence number without resorting to code. 
eg. Item Type "Parking Bay" 1,2,3,4,... Item Type "Tree cell" 1,2,3,4,...

I realise this is not ideal for every situation (eg. where the sequence of numbering is governed by some geometric relationship, and not necessarily the order of element as stored in the file) but I can see where it would be useful to apply a natural increment.

Regards

Robert

Parents Reply Children