Error when changing column parameter

Hi, I have a problem when creating a column. The way I create it is from two points, then with that I create a curve and from this I create the column.
This column is created as a slanted column, and when i try to change it to a vertical setting using SetParameterByName. I get a fatal error.
I check the name of the parameter and that’s fine, the zero is because it is modified from a drop-down list and is the value to the “vertical”.

1 Like

Hi @emmagotte90 !
I try your script, it get the same error but it works fine if i run the script in two times :
1.create the column
2.set the parameter to vertical