Overwriting project parameters for some elements

Hello!

I’ve been trying to create a new parameter for my floor elements. I can do this just fine, but if I run the script again, another set of project parameters is added to the elements. I need it to simply overwrite these parameters, unless they’ve been assigned a value.

I tried by adding a 4th parameter with a checkbox, to be able to filter out elements which does not have this box checked. The idea is, you fill the three other parameters and then check the box so that there is an easy way of telling whether or not the element has been assigned values. Filtering out the elements is easy enough, however the node only takes in a category as input to create parameters, and not single elements.

Does anyone have a way of working around this?


Thank you! :slight_smile:

If statements can be used to only assign a new value when the condition isn’t yet assigned. I’m out of the office so this might not be perfect but it is a start:

A==""? A.SetParameterByName("ParameterName",NewValue):
A