I am trying to assign room numbers in order on selecting them. Everything works fine.
but i want dynamo to highlight the room on selection of it before hitting escape to complete the operation.
Purpose is that any room should not get missed by the user to select.
I have searched for this topic and found this in python script ,
“Node for Picking Elements in Order with Revit UI”
I am new to dynamo and python is far away for me. I have tried using that python code but its not working for Rooms
You would have to modify the python code to add each room to the active selection but I’m still not sure you could make it update as you make your selections.
Why do you need the rooms ordered? Is this for renumbering? Have you looked into renumbering rooms by spline/polycurve? That may be a better solution for you.
Thank you very much for addressing it.
Well, i have script which assigns room number on picking the rooms i.e 001, 002…ans so on…
Sometimes few rooms get missed therefore i want it to get highlighted on selection. So that i wont miss any room. May be there is other way around as per your suggestion. I might be restricting my thinking to getting it highlighted only.
I shall take a look at the scripts you suggested and will get back to you soon.
Thanks again.
Sorry for delayed response.
I have checked those scripts of room numbering with spline but those are not useful for me. or I might be not getting clear idea about it.
I am briefing it again.
My purpose is to assign room number in order by picking rooms, I have dynamo script for it and it works fine.
The problem is while picking rooms if user misses any room then that wont get to notice. so i was wondering is it possible to highlight the room once picked.
I have added room color to script as well but with that i will have to escape the script and then it highlights the room.
You were talking about some python code. can you please suggest something on this?
I haven’t used python code before.
Why does the spline option not seem like a good fit for you? This is a common solution for numbering objects in order. You just draw the spline starting with the first room and then intersecting the rest of the rooms in order.
The python suggestion was to click to add elements to your selection, but all the nodes I’ve seen don’t actually update the active selection at that point. You could look into it and see if it’s possible but I’m not sure it’s a great option if you’re new to python.
Another option would be to pick all the rooms first, then highlight them, and then renumber them if all rooms have been selected.