Changing the type of numbers

Hi,
I’m struggling with fitting a polynomial line to a profile in C3D by using a Python script. I managed to get the fitted elevations in each station, but I can’t generate a new profile with them, because their type is probably incorrect. They seem to be ordinary doubles, but their type is DSCPython.DynamoCPythonHandle. How can I transform them to System.Double type?



hossz-szelveny_polinom_illesztese.dyn (27.3 KB)

Hi,
try string from object, then string to number. Or skip the string from object node and convert the output to string within the python script.

1 Like

Hi @kovacsv,
Thanks a lot, the conversion was succesful! Unfortunately, the new profile doesn’t appear in the profile view :rage: