Tool.RunMe for Hide/Unhide All Elements in View

Hi everyone!

After similar topics research (credits to Stop running a branch of script if list is empty, How to change workflow path or stop it, Managing worksets in revit links with dynamo)

I am still failing to switch between 2 codes (HideElements/UnhideElements) by using Tool.RunMe as they cancel each other. Separately they work fine, my goal is to incorporate them in one script branching nodes execution (not just picking the relevant data).

Is it possible?

Thanks
Select - Hide ALL (DEV).dyn (29.9 KB)

hello…could an if help you here

Revit_UbvTMhWyIu

2 Likes

You can’t really prevent a branch from running. You have to control the data that you provide instead. You can write your logic to get all elements and then send those elements to one node (and an empty list to the other) depending on which function you’d like to apply.

1 Like