-
Yes that is possible you would add another node on the end like this, with an extra input for the radius or list of radii.
-
Ahh i see, yes with that data set it can be problematic to determine if a cut value exists.
A hotfix as it were, is to add this node that checks for a null return when casting from string to number and substitutes the default cut value in.
A more elegant solution most likely requires a regular expression to find “Cut_” and extract any “digit digit decimal digit digit” that comes after and stops at the next _ or the end of string.
Likely have to use some python code like at the end of this thread
Regular expressions in Dynamo - Packages - Dynamo (dynamobim.com)
Along with this Regex:
(?<=Cut_)(\d)+(.)(\d)+
It has a Positive Lookbehind to find “Cut_” and then matches any number of digits followed by a “.” and any number of subsequent digits that follows after it.
In the python code you would edit this statement to have a false action that appends the defaultCutValue.