Fill only the empty values

Hello,
i created a dynamo script to rename my structural elements i want to know if it’s possible: if the elements has a name already it ignores it and goes to the next element that doesn’t have a name thank you in advance.

@nizarmalek10 ,

you can use a codeblock like …

x == ""? "Empty" : x #copy into codeblock

Prefilter your values - test it!

KR

Andreas

2 Likes

Push your filtered list into another get parameter value by name node and use the codeblock that @Draxl_Andreas is showing to filter that list based on the parameter being empty or not. Then push that filtered list into the set parameter by name node.

2 Likes