I’m a long time lurker, and this forum has been fundamental to getting me into Dynamo. Thank you to all who participate.
I’m creating a script to label all my interior elevations once created with the room number and orientation, i.e. 101N. I thought I had it until I realized that my list of view names has the possibility of duplicates, and, as we all know, no duplicate view names.
Normally I can power through an issue like this, but I’m having trouble even conceptualizing how to solve this. What I need is: I have a list of values (room names) [101N, 101E, 101S…110N…] but for any duplicates, I need to append my list from [101N, 101N, 101N, 101E, 101S] to [101N, 101N_1, 101N_2, 101E, 101S]. Some obvious constraints- I need the list to remain the same length, and it has to stay in the same order.
I can’t figure out how to step through a list and append duplicate values by adding a unique identifier (_1, _2). Any advice would be greatly appreciated. Thanks again to the forum as a whole!!