Automatically count up parameter after pick order (integer)

I want to count up a specific parameter after selecting.
User input: Start value, select elements, target parameter.
My script works, but it doesn’t sort the families according to pick order, but according to ID.

A PYthon version should look something like this

Hello @Mops33 not sure if it could help but spring have a select node guess the name is "select element in order or something

I tried with that. The selection is always “Null”. Does not work how intended

that one is written for ironpython 2.7 maybe thats why…try this one here for cpython 3 or pythonnet 3 and remember hit ESC after selection
select order.dyn (4.7 KB)

Like @sovitek said. It should work.

yes but unfortunately it doesnt. Do i have to edit the SelectElements node?

do you have ironpython 2.7 version 2.5 installled, try the one ishared then you dont need that

No.

Which Revit version and springs version?

Also do you have the IronDynamo packages installed?

I was on Revit 2025 with :backhand_index_pointing_down:

best avoid ironpython 2.7 imo, if you can :wink: pS could probably work with ironpython 3 as well but havent tried

OK i realised it myself. I fixed it, now works perfectly. Tahnk you both :slight_smile: