Issue with unit conversion and set parameter

Hi All,

Trying to change the Diameter of the pipes using Element.SetParameterByName
Tried unit conversion, still I’m getting error. Can someone help me to figure out what the the problem is…?

Thanks in advance…

Do you have strings in there?

1 Like

Aw you beat me to it. Convert what you read from excel to integer/double first. That error only shows when using strings.

1 Like


1 Like

That Worked…!!! Thank you :slight_smile:

No problem, @salvatoredragotta had the same solution first. Make sure you mark the post as solved by choosing a response as the solution.

1 Like

Yea, I had… I changed them to integer…!! Thank you :slight_smile: