Setting diameter(Trade Size)

So, i created a routine to set the diameter of conduits following some parameters…
but when i set the diameter in the end
Revit Bugs and most of the conduits must be deleted and the few ones left are of huge diameter

I Just noted that when i get the outside diameter values for conduits i get a value that is different in dynamo of that one in revit i think i just need to convert these values

@ramoon.bandeira,
I think erfajo is right, I had the same issue with pipes, try converting from feet to millimetres

I’ve done that but it didn’t work
look at what it did with my project :joy::joy::joy:

Managed to find the solution
It turns out that i need to convert the unit from milimiter to feet
it worked perfectly after it

Thank you all for your reply