How do i "node to code" this?

Hi,

I’d like to use DesignScript for the Element.SetParameterByName node.
I have a lot of similar parameters to set, so, to keep it clean im looking at DesignScript.

I am seeing an extra input beeing generated above the a,b,c, inputs in my first attempt.
I tried DSCore.Set.ParameterByName, Revit.Set.ParameterByName and Autodesk.Set.ParametrByName to no avail.

Thnx in advance,
Marcel

Hi @m.rijsmus ,

it goes like this in design script:
element.SetParameterByName(ParameterName,Value);

The great Node to code functionality can help you figure it out :

6 Likes

+1 to Mostafa, and they’ve also made lots of designscript functions more forgiving regarding syntax. One can also write like this:

Can’t remember since what version, though.

3 Likes

Hi,

Result:

Marcel

1 Like