I want to separate numbers and strings

Is there a way to convert the text selected in Civil3D to String as String and not Convert as Number to double?

Yes, you can use the String.ToNumber. The downside is that when you pass an actual word into it, it will give you an error.

But luckily, there is a way around getting errors in Dynamo. See below how to parse String numbers in actual number, and keeping words as strings


I wanted to know how to avoid that error!
thank you!