Issue with unit conversion and set parameter

dynamo
units

#1

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…


#2

Do you have strings in there?


#3

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


#4

:grin:


#5

That Worked…!!! Thank you :slight_smile:


#6

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


#7

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