Hi Everybody,
I have a tricky request, I am not sure it is doable, but I’d like your opinion on this
@Kulkul wrote a Python script for highlighting elements on the active view (Highlight elements in active view).
I would like to do something somehow really similar and different haha
I have a list with dropdown menus like in the picture below, And I would like to be able to click one by one on each line and (on a button for example) and highlight the corresponding element in the active view.
Do you think that it is doable, maybe by combining the python script of data-shape from @Mostafa_El_Ayoubi and the one from @Kulkul … It would be awesome !!
I have adapted my strategy, and I am on a good way. I think it is easier to make every drop down input be displayed one by one, each window poping up after the previous one has been closed. Then no need of a button or so, I just have to give a list of elements to highlight, and highlight them one by one with the correponding input. So I thought it could be done in the same loop as the inputs display.
Then, I have tried to put a piece of Kulkul code in the code of “MultipleInputFormm++” line 924, where the code detects the dropdown inputs.
It seems to work, the only issue is that the python code doesnt work with a list of sublist (with or without my added coded lines):
(so it works well with only 1 input, or 1 list of input, but not with a list of sublist with inputs in it).
That is weird because the custom node works perfectly with such an input list. Aren’t the custom node and the python node of this custom node supposed to work in the exact same way, Could there be differences ?
If anyone could have an idea it would be marvelous !!
PS: Oh I just thought, maybe I can edit the custom node, save it as, and see what happens !
Ok I found a solution that works. I am editing this costum node to a new one.
Here is the result (instead of A,B,C…) I have the rooms on each side of the door:
Dont hesitate to ask question
Sorry for the monolog ! Hope it can be useful to anyone
1 Like
Won’t have the player UX that you have here, but clicking on the green highlight in a watch node or preview is effectively performing a ‘show element’ command in Revit.
Hello @baud.dem. I know this is an old post, but I just came across a need for your highlight function. I was wondering if you could provide the full code of your python script? I want to use this in conjunction with a checkbox list instead of a dropdown list. Hopefully that’s doable. Thanks in advance.
@baud.dem Please disregard my previous request. After reading your post again, I understand what you did. Thanks.
1 Like