Variable definition from element

Hi!

Iโ€™m trying to make a variable from the length of a curve to use it in some design script later in the graph.

I read some other post and it seems that this is not possible?

if it is not possible do you have any suggestions?

Thanks!

Capture|690x330

Hi!

I think it should work if you just set the Code Block as โ€œxโ€, whithout involving a function L().

Great! itโ€™s gonna put a couple additional crossing wires in my graph but not a bad solution!

Thanks!

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