i would like to hide and unhide an element in a given time (kind of blinking). I’ve tried to solve that taks by using a for-loop (see picture attched). Unfortunately i’m not able to get the changing “return-variable” during the loop is running.
I have a counter node which uses periodic updating, using the method described by @jacob.small you should be able to get the functionality you are after.
NOTE: be careful when using periodic updating and redrawing revit graphics. Revit can take several seconds to update the graphics depending on the complexity of the view, therefore, setting a periodic interval of less than the refresh graphics time will cause a stack that never actually empties. Yoiu can get around this by having a kill switch where if the count from the counter is greater than say 5000 then return a null to stop execution.
ps. make sure to unblock the .dll by right clicking and going to properties and checking the Unblock Checkbox.