Find/Replace or If/Then?


#1

I am using Dynamo to concatenate multiple parameters related to Revit pipes and I have that part working. One of the parameters is “Size”. What I’d like to do is a find/replace to change the size format in my concatenated parameter.

Revit size --> Desired output

8" --> 08

12" --> 12

30" --> 30

etc…

Is there a way to create an if/then or find/replace type of code to modify these values in my concatenated parameter value? I could easily create a list of all of the possible sizes, but not sure how to go about this in Dynamo.

 

Thank you,

Jason


#2


#3

Hi Jason, Below is another method.


#4

Thank you Vikram and Kulkul! I’ll see if I can get this to work.