Populate an instance parameter with its host name

people, good morning!
*** Remembering that I use google translator…

For the fimilia of rebars I created a parameter with the name Stake ID.
Now I need to create a routine that takes the name of the host stake and inserts it into the Stake ID parameter.
I did some tests, but I didn’t succeed.
can anybody help me?

filling in the name of the stake on the rebar.dyn (25.0 KB)

1 Like

Hello,
Here is a possibility to find the elements in common

Cordially
christian.stan

If you remove the List.Sort and the List.Unique items nodes from the orange group, I believe you can get the host element’s name, id, or mark (Element.Name node, Element.Id, or Element.GetParameterValueByName with Mark as the name) and then use that to set the value of your StakeId parameter on the original rebar.