Remove units (mm) from the list not working

Hallo everyone. i want to remove the units from the list. but it is showing some error. Can someone please tell me what i am doing wrong. Thanks in advance

Can you show the error message? Hover your mouse over the little message-icon on the yellow node.

Otherwise, I would not create a list before plugging it in.

it shows the following error

Warning: Element.SetParameterByName operation failed.
The parameter’s storage type is not a string

This means that the error is not with removing the mm but with the fact you are feeding a string into (likely) an integer or number parameter.

Check the parameter storage type in project parameters.

If it is a number or integer you are not going to be able to assign that parameter value to said parameter as it contains letters.

If you decide to remove the letters you could simply use the String.ToNumber node.

Also, just a small thing

It looks like you are leaving an empty character after the DN size.

You are removing “mm” instead of " mm" which will leave a ‘spacebar character’ in that value.

Thanks it worked. I changed the parameter type to text in Revit and now its working.

1 Like