Variable definition from element

An alternative would be to do the same as suggested in this thread. However, I would stick to the easy fix if your graph is not too complicated :slight_smile:

https://forum.dynamobim.com/t/in-dynamo-code-block-can-i-return-a-variable-input-by-functions/22118/6